From 0ca35d4544af059526503d59f5c61bab8c02f021 Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Mon, 24 Nov 2008 09:47:58 +0000
Subject: [PATCH] Burner: fix ImportExport

Update the call to CreateInstance used in ImportExport to the new API for
multidisk/nic.

Reviewed-by: iustinp
---
 tools/burnin | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/burnin b/tools/burnin
index 6c9a9fb75..1881d10cb 100755
--- a/tools/burnin
+++ b/tools/burnin
@@ -372,9 +372,10 @@ class Burner(object):
       full_name = self.ExecOp(nam_op)[0][0]
       imp_dir = os.path.join(constants.EXPORT_DIR, full_name)
       imp_op = opcodes.OpCreateInstance(instance_name=instance,
-                                        disk_size=self.opts.os_size,
-                                        swap_size=self.opts.swap_size,
+                                        disks = [ {"size": size}
+                                                  for size in self.disk_size],
                                         disk_template=self.opts.disk_template,
+                                        nics=[{}],
                                         mode=constants.INSTANCE_IMPORT,
                                         src_node=enode,
                                         src_path=imp_dir,
@@ -383,9 +384,8 @@ class Burner(object):
                                         start=True,
                                         ip_check=True,
                                         wait_for_sync=True,
-                                        mac="auto",
                                         file_storage_dir=None,
-                                        file_driver=None,
+                                        file_driver="loop",
                                         iallocator=self.opts.iallocator,
                                         beparams=self.bep,
                                         hvparams=self.hvp,
-- 
GitLab