From af0d4c32fc5fb3ee181ea82ae33903f1019ab08e Mon Sep 17 00:00:00 2001 From: Bohdan Dobrelia Date: Thu, 21 Mar 2024 14:30:34 +0100 Subject: [PATCH] Nova: only verify VM control if prelaunched it Use prelaunch_test_instance as a flag for triggering post FFU- adoption workloads verifications. However, this flag should never be turned off. Signed-off-by: Bohdan Dobrelia --- tests/roles/dataplane_adoption/tasks/nova_verify.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/roles/dataplane_adoption/tasks/nova_verify.yaml b/tests/roles/dataplane_adoption/tasks/nova_verify.yaml index 31d2548ee..ec811aca8 100644 --- a/tests/roles/dataplane_adoption/tasks/nova_verify.yaml +++ b/tests/roles/dataplane_adoption/tasks/nova_verify.yaml @@ -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 @@ -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