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
|
fi
|
||||||
if uses_debs; then
|
if uses_debs; then
|
||||||
if [ -f /etc/default/libvirtd ]; 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/
|
sudo cp /etc/default/libvirtd $LOG_DIR/etc/default/
|
||||||
fi
|
fi
|
||||||
elif is_fedora; then
|
elif is_fedora; then
|
||||||
if [ -f /etc/sysconfig/libvirtd ]; 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/
|
sudo cp /etc/sysconfig/libvirtd $LOG_DIR/etc/sysconfig/
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -197,7 +197,20 @@ fi
|
|||||||
# ovn
|
# ovn
|
||||||
if [ -d /var/log/ovn ] ; then
|
if [ -d /var/log/ovn ] ; then
|
||||||
sudo ovn-nbctl show > $LOG_DIR/ovn-nbctl_show.txt
|
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 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
|
fi
|
||||||
|
|
||||||
# sudo config
|
# sudo config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user