ovn: Capture additional items
This adds the following two items to logs captured during CI. - the sysconfig/default file which contains ovn-northd command line options - the created remote connections of ovn nb/sb db Change-Id: Ia8024a2916c16d7067513cfa33565e3d6961b9cc
This commit is contained in:
parent
d4780c3823
commit
bd0ff7cedf
17
copy_logs.sh
17
copy_logs.sh
@ -179,12 +179,12 @@ if [ -d /etc/libvirt ]; then
|
||||
fi
|
||||
if uses_debs; then
|
||||
if [ -f /etc/default/libvirtd ]; then
|
||||
mkdir $LOG_DIR/etc/default
|
||||
mkdir -p $LOG_DIR/etc/default
|
||||
sudo cp /etc/default/libvirtd $LOG_DIR/etc/default/
|
||||
fi
|
||||
elif is_fedora; then
|
||||
if [ -f /etc/sysconfig/libvirtd ]; then
|
||||
mkdir $LOG_DIR/etc/sysconfig
|
||||
mkdir -p $LOG_DIR/etc/sysconfig
|
||||
sudo cp /etc/sysconfig/libvirtd $LOG_DIR/etc/sysconfig/
|
||||
fi
|
||||
fi
|
||||
@ -197,7 +197,20 @@ fi
|
||||
# ovn
|
||||
if [ -d /var/log/ovn ] ; then
|
||||
sudo ovn-nbctl show > $LOG_DIR/ovn-nbctl_show.txt
|
||||
sudo ovn-nbctl get-connection > $LOG_DIR/ovn-nbctl_get-connection.txt
|
||||
sudo ovn-sbctl show > $LOG_DIR/ovn-sbctl_show.txt
|
||||
sudo ovn-sbctl get-connection > $LOG_DIR/ovn-sbctl_get-connection.txt
|
||||
fi
|
||||
if uses_debs ; then
|
||||
if [ -f /etc/default/ovn-central ]; then
|
||||
mkdir -p $LOG_DIR/etc/default
|
||||
sudo cp /etc/default/ovn-central $LOG_DIR/etc/default/
|
||||
fi
|
||||
elif is_fedora; then
|
||||
if [ -f /etc/sysconfig/ovn-northd ]; then
|
||||
mkdir -p $LOG_DIR/etc/sysconfig
|
||||
sudo cp /etc/sysconfig/ovn-northd $LOG_DIR/etc/sysconfig/
|
||||
fi
|
||||
fi
|
||||
|
||||
# sudo config
|
||||
|
Loading…
x
Reference in New Issue
Block a user