From bd0ff7cedf51e8e8aa063e379e7e3ce0abeaf276 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 24 Feb 2023 22:03:30 +0900 Subject: [PATCH] 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 --- copy_logs.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/copy_logs.sh b/copy_logs.sh index 3ba96964f..3f0f5df28 100755 --- a/copy_logs.sh +++ b/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