Merge "Enable libvirt coredumps & save to logs"
This commit is contained in:
commit
a668a24036
|
@ -384,6 +384,9 @@ function setup_localrc {
|
|||
# set this until all testing platforms have libvirt >= 1.2.11
|
||||
# see bug #1501558
|
||||
localrc_set "$localrc_file" "EBTABLES_RACE_FIX" "True"
|
||||
# This will put libvirt coredumps into /var/core
|
||||
# https://bugs.launchpad.net/nova/+bug/1643911
|
||||
localrc_set "$localrc_file" DEBUG_LIBVIRT_COREDUMPS "True"
|
||||
|
||||
if [[ "$DEVSTACK_GATE_TOPOLOGY" == "multinode" ]] && [[ $DEVSTACK_GATE_NEUTRON -eq "1" ]]; then
|
||||
# Reduce the MTU on br-ex to match the MTU of underlying tunnels
|
||||
|
|
|
@ -834,6 +834,12 @@ function cleanup_host {
|
|||
fi
|
||||
save_file /etc/glusterfs/glusterd.vol glusterd.vol
|
||||
|
||||
# gzip and save any coredumps in /var/core
|
||||
if [ -d /var/core ]; then
|
||||
sudo gzip -r /var/core
|
||||
sudo cp -r /var/core $BASE/logs/
|
||||
fi
|
||||
|
||||
# Make sure the current user can read all the logs and configs
|
||||
sudo chown -RL $USER:$USER $BASE/logs/
|
||||
# (note X not x ... execute/search only if the file is a directory
|
||||
|
|
Loading…
Reference in New Issue