QA: fix reimporting instance with different name
authorIustin Pop <iustin@google.com>
Thu, 22 Apr 2010 11:58:35 +0000 (13:58 +0200)
committerIustin Pop <iustin@google.com>
Thu, 22 Apr 2010 12:09:42 +0000 (14:09 +0200)
Since the original instance still exists, we need to use a different MAC
for its NIC.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>

qa/qa_instance.py

index fcd54d2..c1d660f 100644 (file)
@@ -284,6 +284,7 @@ def TestInstanceImport(node, newinst, expnode, name):
   cmd = (['gnt-backup', 'import',
           '--disk-template=plain',
           '--no-ip-check',
+          '--net', '0:mac=generate',
           '--src-node=%s' % expnode['primary'],
           '--src-dir=%s/%s' % (constants.EXPORT_DIR, name),
           '--node=%s' % node['primary']] +