Merge "Collect more info from the gate for debug"

This commit is contained in:
Jenkins 2016-05-18 12:26:36 +00:00 committed by Gerrit Code Review
commit 51c132df3a
2 changed files with 9 additions and 5 deletions

@ -11,15 +11,18 @@ export KEEPALIVED_VIRTUAL_ROUTER_ID=$(shuf -i 1-255 -n 1)
function copy_logs { function copy_logs {
cp -rnL /var/lib/docker/volumes/kolla_logs/_data/* /tmp/logs/kolla/ cp -rnL /var/lib/docker/volumes/kolla_logs/_data/* /tmp/logs/kolla/
# NOTE(SamYaple): Fix permissions for log extraction in gate cp -rnL /etc/kolla/* /tmp/logs/kolla_configs/
cp -rvnL /var/log/* /tmp/logs/system_logs/
if [[ -x "$(command -v journalctl)" ]]; then if [[ -x "$(command -v journalctl)" ]]; then
journalctl --no-pager -u docker.service > /tmp/logs/kolla/docker.log journalctl --no-pager -u docker.service > /tmp/logs/system_logs/docker.log
else else
cp /var/log/upstart/docker.log /tmp/logs/kolla/docker.log cp /var/log/upstart/docker.log /tmp/logs/system_logs/docker.log
fi fi
chmod -R 777 /tmp/logs/kolla/ # NOTE(SamYaple): Fix permissions for log extraction in gate
chmod -R 777 /tmp/logs/kolla /tmp/logs/kolla_configs /tmp/logs/system_logs
} }
function sanity_check { function sanity_check {
@ -65,6 +68,7 @@ network_interface: "${PRIVATE_INTERFACE}"
neutron_external_interface: "fake_interface" neutron_external_interface: "fake_interface"
enable_horizon: "no" enable_horizon: "no"
enable_heat: "no" enable_heat: "no"
openstack_logging_debug: "True"
EOF EOF
mkdir /etc/kolla/config/nova mkdir /etc/kolla/config/nova

@ -119,7 +119,7 @@ function setup_logging {
# For ease of access we symlink that logs directory to a known path # For ease of access we symlink that logs directory to a known path
ln -s $(pwd)/logs /tmp/logs ln -s $(pwd)/logs /tmp/logs
mkdir -p /tmp/logs/{ansible,build,kolla} mkdir -p /tmp/logs/{ansible,build,kolla,kolla_configs,system_logs}
} }
setup_logging setup_logging