From e28167a8f51d06ca09b6dbd7b71e78a135731d7c Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Tue, 17 Dec 2019 06:24:10 -0800 Subject: [PATCH] Be a bit more verbose around tinyipa for rescue Seems we have no real way to grok if there was a rescue setup failure because we don't log any information to the console about the node once dhcp has occured. As such, added an additional line of text to be logged and added the ip addr command which should save a list of addresses by interface to the console to assist in CI job troubleshooting. Change-Id: Ib3f6e24d0687e9da8e551355fe04faf3f86ff582 --- tinyipa/build_files/bootlocal.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tinyipa/build_files/bootlocal.sh b/tinyipa/build_files/bootlocal.sh index 1d8102d..4e5b1e7 100755 --- a/tinyipa/build_files/bootlocal.sh +++ b/tinyipa/build_files/bootlocal.sh @@ -70,6 +70,8 @@ configure_dhcp_network() { pidfile="/var/run/udhcpc/${interface}.pid" /sbin/udhcpc -b -p ${pidfile} -i ${interface} -s /opt/udhcpc.script >> /var/log/udhcpc.log 2>&1 done + echo "Completed DHCP client restart" + ip addr && true } if [ -f /etc/ipa-rescue-config/ipa-rescue-password ]; then