Commit ad658827 authored by Bernardo Dal Seno's avatar Bernardo Dal Seno
Browse files

Fix QA: skip reinstall for diskless instances



Diskless instances cannot really be reinstalled, not even through RAPI.
Signed-off-by: default avatarBernardo Dal Seno <bdalseno@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 0e8d8384
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment