Skip to content
Snippets Groups Projects
Commit 801cda94 authored by Iustin Pop's avatar Iustin Pop
Browse files

burnin: update migration to latest log formatting

Reviewed-by: ultrotter
parent 99bdd139
No related branches found
No related tags found
No related merge requests found
......@@ -408,18 +408,17 @@ class Burner(object):
def Migrate(self):
"""Migrate the instances."""
Log("Migrating instances")
for instance in self.instances:
Log("instance %s" % instance, indent=1)
op = opcodes.OpMigrateInstance(instance_name=instance, live=True,
cleanup=False)
Log("- Migrate instance %s" % (instance))
Log("migration", indent=2)
self.ExecOp(op)
for instance in self.instances:
op = opcodes.OpMigrateInstance(instance_name=instance, live=True,
cleanup=True)
Log("- Testing 'migrate --cleanup' for instance %s" % (instance))
Log("migration cleanup", indent=2)
self.ExecOp(op)
def ImportExport(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment