Add state to initial setup
This commit is contained in:
parent
1f2adafc4e
commit
226a88b064
|
@ -9,6 +9,7 @@ class NodeInstance(threading.Thread):
|
||||||
self.zkey = '/nodes/%s' % name
|
self.zkey = '/nodes/%s' % name
|
||||||
self.zk = zk
|
self.zk = zk
|
||||||
self.name = name
|
self.name = name
|
||||||
|
self.state = 'stop'
|
||||||
self.stop_thread = threading.Event()
|
self.stop_thread = threading.Event()
|
||||||
self.node_list = node_list
|
self.node_list = node_list
|
||||||
self.domainlist = []
|
self.domainlist = []
|
||||||
|
@ -64,6 +65,7 @@ class NodeInstance(threading.Thread):
|
||||||
print('Failed to open connection to %s' % libvirt_name)
|
print('Failed to open connection to %s' % libvirt_name)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
# Gather data about hypervisor
|
# Gather data about hypervisor
|
||||||
self.name = conn.getHostname()
|
self.name = conn.getHostname()
|
||||||
self.cpucount = conn.getCPUMap()[0]
|
self.cpucount = conn.getCPUMap()[0]
|
||||||
|
|
Loading…
Reference in New Issue