From 53a8da8e63e00462426f653f7d899a35c4c3eae3 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Thu, 22 Apr 2010 13:58:35 +0200
Subject: [PATCH] QA: fix reimporting instance with different name

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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/qa/qa_instance.py b/qa/qa_instance.py
index fcd54d223..c1d660f11 100644
--- a/qa/qa_instance.py
+++ b/qa/qa_instance.py
@@ -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']] +
-- 
GitLab