Add container logs to the build
Currently we don't have logs of what happened in the containers. This commit changes the lxc_container_create default bind mounts to ensure that the /var/log directory from the containers is bind mounted to /var/log/{{ inventory_hostname }} on the host. The tox configuration is also changed to ensure that links are not dereferenced in the log copy, and that the layout of the log storage is the same as that of the integrated gate. Change-Id: I56f5e422313c405d4f65feb8e445d4f4b0700566 Co-Authored-By: Jesse Pretorius <jesse.pretorius@rackspace.co.uk> Signed-off-by: Jean-Philippe Evrard <jean-philippe.evrard@rackspace.co.uk>
This commit is contained in:
parent
856f38ccfc
commit
5ad3a27798
@ -36,3 +36,5 @@
|
||||
host: "{{ ansible_host | default(inventory_hostname) }}"
|
||||
search_regex: OpenSSH
|
||||
delay: 1
|
||||
vars_files:
|
||||
- test-vars.yml
|
||||
|
@ -49,6 +49,13 @@ test_neutron_agent_host: "{{ hostvars[groups[test_neutron_agent_group][0]]['ansi
|
||||
test_swift_proxy_host: "{{ hostvars[groups[test_swift_proxy_group][0]]['ansible_host'] }}"
|
||||
test_ironic_api_host: "{{ hostvars[groups[test_ironic_api_group][0]]['ansible_host'] }}"
|
||||
|
||||
## LXC container default bind mounts
|
||||
lxc_container_default_bind_mounts:
|
||||
- host_directory: "/openstack/backup/{{ inventory_hostname }}"
|
||||
container_directory: "/var/backup"
|
||||
- host_directory: "/openstack/log/{{ inventory_hostname }}"
|
||||
container_directory: "/var/log"
|
||||
|
||||
# LXC Settings
|
||||
lxc_net_address: 10.100.100.1
|
||||
lxc_net_netmask: 255.255.255.0
|
||||
|
Loading…
Reference in New Issue
Block a user