Skip to content

Commit 5191625

Browse files
author
Ferenc Born
authored
Merge pull request #39 from schubergphilis/fix/rolling-reboot-bit-slower
Wait a bit after reboot before proceeding
2 parents a7e1969 + a6c37b6 commit 5191625

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

cloudstackops/xenserver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ def check_connect(self, host):
7474
# Remove progress indication
7575
sys.stdout.write("\033[F")
7676
print "Note: Host " + host.name + " is able to do XE stuff again! "
77+
print "Note: Waiting 30s to allow the hypervisor to connect.."
78+
time.sleep(30)
7779
return True
7880

7981
# Check if we can use xapi

xenserver_rolling_reboot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def handleArguments(argv):
164164
# Get poolmaster
165165
poolmaster_name = x.get_poolmaster(first_host)
166166
if not poolmaster_name:
167-
print "Error: unable to figure out the poolmaster while talking to " + first_hostname
167+
print "Error: unable to figure out the poolmaster while talking to " + first_host
168168
disconnect_all()
169169
sys.exit(1)
170170
print "Note: The poolmaster of cluster " + clustername + " is " + poolmaster_name

0 commit comments

Comments
 (0)