Skip to content

Commit

Permalink
Temp hack to prevent unneccessary VM fencing
Browse files Browse the repository at this point in the history
  • Loading branch information
remibergsma committed Aug 17, 2016
1 parent b749f00 commit 4cdac7c
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 4cdac7c

Please sign in to comment.