Skip to content

Commit

Permalink
Merge pull request #45 from schubergphilis/rolling_reboot_sleep_hack
Browse files Browse the repository at this point in the history
Temp hack to prevent unneccessary VM fencing
  • Loading branch information
neubauerf authored Aug 17, 2016
2 parents b749f00 + 4cdac7c commit a4e6cb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cloudstackops/xenserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ def host_evacuate(self, host):
break
time.sleep(5)
print "Note: Done evacuating host " + host.name + " @ " + time.strftime("%Y-%m-%d %H:%M")
print "Note: Sleeping 2 minutes to allow Cosmic to sync the state of VMs.."
time.sleep(120)
return True
except:
return False
Expand Down

0 comments on commit a4e6cb1

Please sign in to comment.