This would fix the exception happening in the SDNVPN CI testsuite.
Example: http://artifacts.opnfv.org/logs/functest/lf-pod1/2018-01-21_17-18-06/bgpvpn.log
Change-Id: Ie22dcdbba5299177d4e98e5995433553df5bfa68
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
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."