From a90636b230556c7f441a05c5b06aa174d142484f Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Wed, 27 Feb 2013 16:57:44 +0100
Subject: [PATCH] QA: Disable reinstall test for diskless instances

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Bernardo Dal Seno <bdalseno@google.com>
---
 qa/qa_instance.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/qa/qa_instance.py b/qa/qa_instance.py
index 102f4e81b..37a2e122c 100644
--- a/qa/qa_instance.py
+++ b/qa/qa_instance.py
@@ -248,6 +248,10 @@ def TestInstanceReboot(instance):
 @InstanceCheck(INST_DOWN, INST_DOWN, FIRST_ARG)
 def TestInstanceReinstall(instance):
   """gnt-instance reinstall"""
+  if instance.disk_template == constants.DT_DISKLESS:
+    print qa_utils.FormatInfo("Test not supported for diskless instances")
+    return
+
   AssertCommand(["gnt-instance", "reinstall", "-f", instance.name])
 
   # Test with non-existant OS definition
-- 
GitLab