Merge "Wait until VMs are out of BUILD state"
diff --git a/test/roles/test-mcord-base/tasks/main.yml b/test/roles/test-mcord-base/tasks/main.yml
index 111e019..d4b5dd0 100644
--- a/test/roles/test-mcord-base/tasks/main.yml
+++ b/test/roles/test-mcord-base/tasks/main.yml
@@ -28,8 +28,8 @@
tags:
- skip_ansible_lint # running a sub job
-- name: Wait for VMs to appear in Nova
- shell: source /opt/cord_profile/admin-openrc.sh; nova list --all-tenants|grep '{{ item }}' > /dev/null
+- name: Wait for VMs to come up
+ shell: source /opt/cord_profile/admin-openrc.sh; nova list --all-tenants|grep '{{ item }}.*\(ACTIVE\|ERROR\)' > /dev/null
args:
executable: /bin/bash
register: result