Skip to content

Commit 4cdac7c

Browse files
committed
Temp hack to prevent unneccessary VM fencing
1 parent b749f00 commit 4cdac7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cloudstackops/xenserver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ def host_evacuate(self, host):
166166
break
167167
time.sleep(5)
168168
print "Note: Done evacuating host " + host.name + " @ " + time.strftime("%Y-%m-%d %H:%M")
169+
print "Note: Sleeping 2 minutes to allow Cosmic to sync the state of VMs.."
170+
time.sleep(120)
169171
return True
170172
except:
171173
return False

0 commit comments

Comments
 (0)