QA: Disable reinstall test for diskless instances
authorMichael Hanselmann <hansmi@google.com>
Wed, 27 Feb 2013 15:57:44 +0000 (16:57 +0100)
committerMichael Hanselmann <hansmi@google.com>
Thu, 28 Feb 2013 14:52:30 +0000 (15:52 +0100)
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Bernardo Dal Seno <bdalseno@google.com>

qa/qa_instance.py

index 102f4e8..37a2e12 100644 (file)
@@ -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