Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -681,6 +681,10 @@ def TestRapiInstanceRenameAndBack(rename_source, rename_target): ...@@ -681,6 +681,10 @@ def TestRapiInstanceRenameAndBack(rename_source, rename_target):
@InstanceCheck(INST_DOWN, INST_DOWN, FIRST_ARG) @InstanceCheck(INST_DOWN, INST_DOWN, FIRST_ARG)
def TestRapiInstanceReinstall(instance): def TestRapiInstanceReinstall(instance):
"""Test reinstalling an instance via RAPI""" """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)) _WaitForRapiJob(_rapi_client.ReinstallInstance(instance.name))
# By default, the instance is started again # By default, the instance is started again
qa_utils.RunInstanceCheck(instance, True) qa_utils.RunInstanceCheck(instance, True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment