X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=functest%2Futils%2Fopenstack_utils.py;h=655ca464fd3007aee1c2784ea8477f758476e6b3;hb=refs%2Fchanges%2F79%2F51179%2F1;hp=1d7cdafb9c44db7c8cfd094d33fbfea927a91785;hpb=bbfe9b09d2b1ac7bfe286311fef83d36c6125c96;p=functest.git diff --git a/functest/utils/openstack_utils.py b/functest/utils/openstack_utils.py index 1d7cdafb9..655ca464f 100644 --- a/functest/utils/openstack_utils.py +++ b/functest/utils/openstack_utils.py @@ -519,7 +519,10 @@ def create_instance_and_wait_for_active(flavor_name, count = VM_BOOT_TIMEOUT / SLEEP for n in range(count, -1, -1): status = get_instance_status(nova_client, instance) - if status.lower() == "active": + if status is None: + time.sleep(SLEEP) + continue + elif status.lower() == "active": return instance elif status.lower() == "error": logger.error("The instance %s went to ERROR status."