Skip to content

Commit

Permalink
Merge pull request #375 from bogdando/test_vm_checks
Browse files Browse the repository at this point in the history
Nova: only verify VM control if prelaunched it
  • Loading branch information
jistr authored May 3, 2024
2 parents 1396329 + af0d4c3 commit a1af243
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/roles/dataplane_adoption/tasks/nova_verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# NOTE(bogdando): do not use 'set -o pipefail' for these verifications
- name: verify if Nova services can stop the existing test VM instance
when: prelaunch_test_instance|bool
ansible.builtin.shell: |
{{ nova_header }}
${BASH_ALIASES[openstack]} server list | grep -qF '| test | ACTIVE |' && ${BASH_ALIASES[openstack]} server stop test || echo PASS
Expand All @@ -19,6 +20,7 @@
delay: 6

- name: verify if Nova services can start the existing test VM instance
when: prelaunch_test_instance|bool
ansible.builtin.shell: |
{{ nova_header }}
${BASH_ALIASES[openstack]} server list | grep -qF '| test | SHUTOFF |' && ${BASH_ALIASES[openstack]} server start test || echo PASS
Expand Down

0 comments on commit a1af243

Please sign in to comment.