burnin: update migration to latest log formatting
authorIustin Pop <iustin@google.com>
Wed, 14 Jan 2009 09:57:06 +0000 (09:57 +0000)
committerIustin Pop <iustin@google.com>
Wed, 14 Jan 2009 09:57:06 +0000 (09:57 +0000)
Reviewed-by: ultrotter

tools/burnin

index 8ff27c3..80076b6 100755 (executable)
@@ -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):