From 7fdd2a244ef3d09e2b583ab7e8356458e8f0e713 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Wed, 14 Sep 2016 15:16:31 +0100 Subject: [PATCH] Add container logs to the build Currently we don't have logs of what happened in the containers. This commit uses the lxc_container_create ability to bind mount the /var/log directory from the containers inside the host on /var/log/{{ inventory_hostname}}. Change-Id: I836517f6a0e27c9554c54f01713f54a2b6384782 Signed-off-by: Jean-Philippe Evrard --- tests/group_vars/all_containers.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/group_vars/all_containers.yml b/tests/group_vars/all_containers.yml index 4cc97942..33f2c1ef 100644 --- a/tests/group_vars/all_containers.yml +++ b/tests/group_vars/all_containers.yml @@ -25,3 +25,6 @@ container_networks: physical_host: localhost properties: service_name: "{{ inventory_hostname }}" +lxc_container_bind_mounts: + - host_directory: "/openstack/log/{{ inventory_hostname }}" + container_directory: "/var/log" \ No newline at end of file