Andrew Bogott has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/196233

Change subject: Sleep in firstboot to avoid that NFS race condition.
......................................................................

Sleep in firstboot to avoid that NFS race condition.

Change-Id: I186cbd521b98ea8ac8d60115a1345e59acd1ab6a
---
M modules/labs_vmbuilder/files/firstboot.sh
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/33/196233/1

diff --git a/modules/labs_vmbuilder/files/firstboot.sh 
b/modules/labs_vmbuilder/files/firstboot.sh
index b5cb3fd..4d24e06 100644
--- a/modules/labs_vmbuilder/files/firstboot.sh
+++ b/modules/labs_vmbuilder/files/firstboot.sh
@@ -4,6 +4,11 @@
 echo 'daemon.* |/dev/console' > /etc/rsyslog.d/60-puppet.conf
 restart rsyslog
 
+# And, sleep some more.  This sucks but it helps avoid a race
+# with NFS volume creation -- give NFS plenty of time
+# to notice the new instance and set up exports.
+sleep 60
+
 # If we don't have a LVM volume group, we'll create it,
 # and allocate the remainder of the disk to it,
 if ! /sbin/vgdisplay -c vd

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I186cbd521b98ea8ac8d60115a1345e59acd1ab6a
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Andrew Bogott <abog...@wikimedia.org>

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

Reply via email to