Diskless instances cannot really be reinstalled, not even through RAPI.
Signed-off-by: Bernardo Dal Seno <[email protected]>
---
qa/qa_rapi.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/qa/qa_rapi.py b/qa/qa_rapi.py
index 02b62ad..b2ff4f0 100644
--- a/qa/qa_rapi.py
+++ b/qa/qa_rapi.py
@@ -681,6 +681,10 @@ def TestRapiInstanceRenameAndBack(rename_source,
rename_target):
@InstanceCheck(INST_DOWN, INST_DOWN, FIRST_ARG)
def TestRapiInstanceReinstall(instance):
"""Test reinstalling an instance via RAPI"""
+ if instance.disk_template == constants.DT_DISKLESS:
+ print qa_utils.FormatInfo("Test not supported for diskless instances")
+ return
+
_WaitForRapiJob(_rapi_client.ReinstallInstance(instance.name))
# By default, the instance is started again
qa_utils.RunInstanceCheck(instance, True)
--
1.8.1.3