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

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 <bdalseno@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent 8cd4f8cf
...@@ -750,7 +750,13 @@ def TestRecreateDisks(instance, inodes, othernodes): ...@@ -750,7 +750,13 @@ def TestRecreateDisks(instance, inodes, othernodes):
else: else:
_AssertRecreateDisks(["-n", other_seq], instance) _AssertRecreateDisks(["-n", other_seq], instance)
# Move disks back # 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,
check=False)
# This and InstanceCheck decoration check that the disks are working # This and InstanceCheck decoration check that the disks are working
AssertCommand(["gnt-instance", "reinstall", "-f", instance["name"]]) AssertCommand(["gnt-instance", "reinstall", "-f", instance["name"]])
AssertCommand(["gnt-instance", "start", 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