diff --git a/pvc/NodeInstance.py b/pvc/NodeInstance.py index 77fd24ce..a2c0cfc0 100644 --- a/pvc/NodeInstance.py +++ b/pvc/NodeInstance.py @@ -331,8 +331,8 @@ def fenceNode(node_name, zk): current_hypervisor = zk.get('/domains/{}/hypervisor'.format(dom_uuid))[0].decode('ascii') for hypervisor in hypervisor_list: print(hypervisor) - state = zk.get('/nodes/{}/state'.format(hypervisor))[0].decode('ascii') - if state != 'start': + state = zk.get('/nodes/{}/domainstate'.format(hypervisor))[0].decode('ascii') + if state != 'ready': continue memfree = int(zk.get('/nodes/{}/memfree'.format(hypervisor))[0].decode('ascii'))