From 4cdac7c7dd56b65ceac44d5341a91e62b47e0c9e Mon Sep 17 00:00:00 2001 From: Remi Bergsma Date: Wed, 17 Aug 2016 10:19:45 +0200 Subject: [PATCH] Temp hack to prevent unneccessary VM fencing --- cloudstackops/xenserver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cloudstackops/xenserver.py b/cloudstackops/xenserver.py index c1f05a1..1f7bcf8 100644 --- a/cloudstackops/xenserver.py +++ b/cloudstackops/xenserver.py @@ -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