Rescue bug: tinyipa fails to acquire IP in multitenant env

It seems the udhcpc script is not executable and no sleeping
cause tinyipa fails to acquire IP in multi-tenant env.

Story: #2002024
Change-Id: I3a693d75bfa54fe905bd3cd0587bb139934c087c
This commit is contained in:
Dao Cong Tien 2018-05-04 17:32:08 +07:00
parent 7dbcaa69e5
commit 0889051159
3 changed files with 7 additions and 0 deletions

View File

@ -53,6 +53,8 @@ configure_dhcp_network() {
# NOTE(TheJulia): We may need to add a short wait here as
# network interface plugging actions may not be asynchronous.
echo "Sleeping 30 sec as network interface is being updated"
sleep 30
INTERFACES=$(ip -o link |grep "LOWER_UP"|cut -f2 -d" "|sed 's/://'|grep -v "lo")
for interface in $INTERFACES; do
pidfile="/var/run/udhcpc/${interface}.pid"

0
imagebuild/tinyipa/udhcpc.script Normal file → Executable file
View File

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes bug where TinyIPA fails to acquire IP address when
in RESCUE state and in multi-tenant environment.