From b4eb5e522f49a55712c23693abdd970dcd6ad16b Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 4 Jun 2018 03:00:56 -0400 Subject: [PATCH] Add formerhypervisor section in ZK --- pvc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pvc.py b/pvc.py index 0d07a80f..550e5d46 100755 --- a/pvc.py +++ b/pvc.py @@ -21,6 +21,7 @@ def define_domain(domxmlfile): transaction.create('/domains/%s' % domuuid, "".encode('ascii')) transaction.create('/domains/%s/state' % domuuid, "stop".encode('ascii')) transaction.create('/domains/%s/hypervisor' % domuuid, socket.gethostname().encode('ascii')) + transaction.create('/domains/%s/formerhypervisor' % domuuid, ''.encode('ascii')) transaction.create('/domains/%s/xml' % domuuid, data.encode('ascii')) results = transaction.commit() zk.stop() @@ -37,6 +38,6 @@ def migrate_domain(domuuid, target): zk.close() -#define_domain('/var/home/joshua/debian9.xml') -migrate_domain('b1dc4e21-544f-47aa-9bb7-8af0bc443b78', 'test1.i.bonilan.net') +define_domain('/var/home/joshua/debian9.xml') +#migrate_domain('b1dc4e21-544f-47aa-9bb7-8af0bc443b78', 'test1.i.bonilan.net') #migrate_domain('b1dc4e21-544f-47aa-9bb7-8af0bc443b78', 'test2.i.bonilan.net')