Revision e2e98c6e qa/qa_instance.py

b/qa/qa_instance.py
750 750
  else:
751 751
    _AssertRecreateDisks(["-n", other_seq], instance)
752 752
  # Move disks back
753
  _AssertRecreateDisks(["-n", orig_seq], instance, check=False)
753
  _AssertRecreateDisks(["-n", orig_seq], instance)
754
  # Recreate the disks one by one
755
  for idx in range(0, len(qa_config.get("disk"))):
756
    # Only the first call should destroy all the disk
757
    destroy = (idx == 0)
758
    _AssertRecreateDisks(["--disk=%s" % idx], instance, destroy=destroy,
759
                         check=False)
754 760
  # This and InstanceCheck decoration check that the disks are working
755 761
  AssertCommand(["gnt-instance", "reinstall", "-f", instance["name"]])
756 762
  AssertCommand(["gnt-instance", "start", instance["name"]])

Also available in: Unified diff