From: garciadeblas Date: Fri, 2 Jun 2023 09:09:39 +0000 (+0200) Subject: Improve tracking of failure events in install_lxd.sh X-Git-Tag: release-v14.0-start~32 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=6003632d2c82a93d71a8826c6bcd182e22140bc3;p=osm%2Fdevops.git Improve tracking of failure events in install_lxd.sh Change-Id: I49bdaf5321912463ab287d7e2493951eee4a05e8 Signed-off-by: garciadeblas --- diff --git a/installers/install_lxd.sh b/installers/install_lxd.sh index 7395c731..0bf6d237 100755 --- a/installers/install_lxd.sh +++ b/installers/install_lxd.sh @@ -53,11 +53,11 @@ function install_lxd() { if [ -n "${OSM_DEFAULT_IF}" ]; then OSM_DEFAULT_IF=$(ip route list|awk '$1=="default" {print $5; exit}') [ -z "${OSM_DEFAULT_IF}" ] && OSM_DEFAULT_IF=$(route -n |awk '$1~/^0.0.0.0/ {print $8; exit}') - [ -z "${OSM_DEFAULT_IF}" ] && FATAL "Not possible to determine the interface with the default route 0.0.0.0" + [ -z "${OSM_DEFAULT_IF}" ] && FATAL_TRACK lxd "Not possible to determine the interface with the default route 0.0.0.0" fi DEFAULT_MTU=$(ip addr show ${OSM_DEFAULT_IF} | perl -ne 'if (/mtu\s(\d+)/) {print $1;}') OSM_DEFAULT_IP=`ip -o -4 a s ${OSM_DEFAULT_IF} |awk '{split($4,a,"/"); print a[1]; exit}'` - [ -z "$OSM_DEFAULT_IP" ] && FATAL "Not possible to determine the IP address of the interface with the default route" + [ -z "$OSM_DEFAULT_IP" ] && FATAL_TRACK lxd "Not possible to determine the IP address of the interface with the default route" # Configure LXD sudo usermod -a -G lxd `whoami`