In TestInstanceMigrate, we want to ensure that the instance
is fully booted before migrating the instance.

Signed-off-by: Bhimanavajjula Aditya <[email protected]>
---
 qa/qa_instance.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/qa/qa_instance.py b/qa/qa_instance.py
index 4fa9d7e..2a7e01d 100644
--- a/qa/qa_instance.py
+++ b/qa/qa_instance.py
@@ -556,6 +556,9 @@ def TestInstanceMigrate(instance, 
toggle_always_failover=True):
   AssertCommand(["gnt-instance", "migrate", "--force", "--allow-failover",
                  instance.name])
   AssertCommand(["gnt-instance", "start", instance.name])
+
+  # We want to wait until the instance is fully booted, as the boot
+  # process gets corrupted if it is interrupted by migration.
   qa_utils.RunInstanceCheck(instance, True)
   AssertCommand(cmd)
   # @InstanceCheck enforces the check that the instance is running
-- 
2.6.0.rc2.230.g3dd15c0

Reply via email to