Commit 4a7ff493 authored by Guido Trotter's avatar Guido Trotter
Browse files

burnin: remove created exports

Make burnin remove exports after importing the instance back.

Reviewed-by: iustinp
parent 9ac99fda
......@@ -299,6 +299,7 @@ class Burner(object):
ip_check=True,
wait_for_sync=True,
mac="auto")
erem_op = opcodes.OpRemoveExport(instance_name=instance)
Log("- Export instance %s to node %s" % (instance, enode))
self.ExecOp(exp_op)
......@@ -308,6 +309,9 @@ class Burner(object):
Log("- Import instance %s from node %s to node %s" %
(instance, enode, pnode))
self.ExecOp(imp_op)
Log("- Remove export of instance %s" % (instance))
self.ExecOp(erem_op)
self.to_rem.append(instance)
def StopInstance(self, instance):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment