Remove pvcf import
This commit is contained in:
parent
c8dcbd1027
commit
35d671c933
|
@ -20,7 +20,7 @@
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import os, sys, socket, time, threading, libvirt, kazoo.client, pvcf
|
import os, sys, socket, time, threading, libvirt, kazoo.client
|
||||||
|
|
||||||
class VMInstance:
|
class VMInstance:
|
||||||
def __init__(self, domuuid, zk, thishypervisor):
|
def __init__(self, domuuid, zk, thishypervisor):
|
||||||
|
@ -39,7 +39,7 @@ class VMInstance:
|
||||||
self.inmigrate = False
|
self.inmigrate = False
|
||||||
self.inreceive = False
|
self.inreceive = False
|
||||||
|
|
||||||
self.dom = pvcf.lookupByUUID(self.domuuid)
|
self.dom = lookupByUUID(self.domuuid)
|
||||||
|
|
||||||
# Watch for changes to the hypervisor field in Zookeeper
|
# Watch for changes to the hypervisor field in Zookeeper
|
||||||
@zk.DataWatch(self.zkey + '/hypervisor')
|
@zk.DataWatch(self.zkey + '/hypervisor')
|
||||||
|
@ -175,7 +175,7 @@ class VMInstance:
|
||||||
print('>>> %s - Receiving migration' % self.domuuid)
|
print('>>> %s - Receiving migration' % self.domuuid)
|
||||||
self.inreceive = True
|
self.inreceive = True
|
||||||
while True:
|
while True:
|
||||||
self.dom = pvcf.lookupByUUID(self.domuuid)
|
self.dom = lookupByUUID(self.domuuid)
|
||||||
if self.dom == None:
|
if self.dom == None:
|
||||||
time.sleep(0.2)
|
time.sleep(0.2)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue