Andrew Bogott has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/370668 )

Change subject: bootstrap_vz firstboot: specify eth0 when refreshing dhcp
......................................................................


bootstrap_vz firstboot: specify eth0 when refreshing dhcp

I'm seeing an instance failure with messages like this:

 localhost rc.local[406]: + /sbin/dhclient -1^M
 localhost dhclient: No broadcast interfaces found - exiting.^M

There seems to be a bug in some releases where dhclient doesn't
work if the interface isn't specified.  On OpenStack we can
be pretty sure that eth0 is the right call here.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852173

Bug: T165555
Change-Id: I05faceb8c6f88c0b79650eb440bc8571eda1ec19
---
M modules/labs_bootstrapvz/files/firstboot.sh
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Andrew Bogott: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/labs_bootstrapvz/files/firstboot.sh 
b/modules/labs_bootstrapvz/files/firstboot.sh
index 8161478..b3c85f7 100644
--- a/modules/labs_bootstrapvz/files/firstboot.sh
+++ b/modules/labs_bootstrapvz/files/firstboot.sh
@@ -75,7 +75,7 @@
     echo `date`
     echo "Waiting for hostname to return the actual hostname."
     sleep 10
-    /sbin/dhclient -1
+    /sbin/dhclient -1 eth0
     hostname=`hostname`
 done
 

-- 
To view, visit https://gerrit.wikimedia.org/r/370668
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I05faceb8c6f88c0b79650eb440bc8571eda1ec19
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Andrew Bogott <abog...@wikimedia.org>
Gerrit-Reviewer: Andrew Bogott <abog...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to