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

Add QA for recreating single instance disks

So far QA only recreated the whole set of disks at once.
Signed-off-by: default avatarBernardo Dal Seno <>
Reviewed-by: default avatarHelga Velroyen <>
parent 8cd4f8cf
......@@ -750,7 +750,13 @@ def TestRecreateDisks(instance, inodes, othernodes):
_AssertRecreateDisks(["-n", other_seq], instance)
# Move disks back
_AssertRecreateDisks(["-n", orig_seq], instance, check=False)
_AssertRecreateDisks(["-n", orig_seq], instance)
# Recreate the disks one by one
for idx in range(0, len(qa_config.get("disk"))):
# Only the first call should destroy all the disk
destroy = (idx == 0)
_AssertRecreateDisks(["--disk=%s" % idx], instance, destroy=destroy,
# This and InstanceCheck decoration check that the disks are working
AssertCommand(["gnt-instance", "reinstall", "-f", instance["name"]])
AssertCommand(["gnt-instance", "start", instance["name"]])
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