Commit 7f69aabb authored by Iustin Pop's avatar Iustin Pop
Browse files

Implement QA tests for disk template changes

The new test depends on the drbd type tests being enabled, and test
conversion to plain and back to drbd.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarMichael Hanselmann <>
parent bbf74a76
......@@ -317,6 +317,8 @@ def main():
instance = RunTest(func, pnode, snode)
if qa_config.TestEnabled('instance-convert-disk'):
RunTest(qa_instance.TestInstanceConvertDisk, instance, snode)
RunExportImportTests(instance, pnode)
RunHardwareFailureTests(instance, pnode, snode)
RunTest(qa_instance.TestInstanceRemove, instance)
......@@ -62,6 +62,7 @@
"instance-add-plain-disk": true,
"instance-add-drbd-disk": true,
"instance-convert-disk": true,
"instance-automatic-restart": false,
"instance-consecutive-failures": false,
......@@ -209,6 +209,17 @@ def TestInstanceModify(instance):
utils.ShellQuoteArgs(cmd)).wait(), 0)
def TestInstanceConvertDisk(instance, snode):
"""gnt-instance modify -t"""
master = qa_config.GetMasterNode()
cmd = ['gnt-instance', 'modify', '-t', 'plain', instance['name']]
utils.ShellQuoteArgs(cmd)).wait(), 0)
cmd = ['gnt-instance', 'modify', '-t', 'drbd', '-n', snode, instance['name']]
utils.ShellQuoteArgs(cmd)).wait(), 0)
def TestInstanceList():
"""gnt-instance list"""
master = qa_config.GetMasterNode()
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