From f045686fa1fa93caae60e88de796e33571920ea1 Mon Sep 17 00:00:00 2001 From: Alexandru Date: Wed, 12 Jan 2022 15:37:42 +0200 Subject: [PATCH] Fix the case when a test trying to reboot active controller fails because stx-openstack is not applied Description: The test_reboot_active_controller fails because the stx-openstack is not applied: ...RegionOne host-swact controller-1' failed to execute. Output: Swact action not allowed. stx-openstack apply is in progress. During reboot of the active controller a swact should be performed which fails. Story: N/A Task: N/A Signed-off-by: Alexandru Change-Id: I363a8328159d5ce086e05037997f7f3bdd197207 --- .../testcases/sanity/sanity_openstack/test_host_management.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/automated-pytest-suite/testcases/sanity/sanity_openstack/test_host_management.py b/automated-pytest-suite/testcases/sanity/sanity_openstack/test_host_management.py index 5a0ace2..ecdd3e7 100755 --- a/automated-pytest-suite/testcases/sanity/sanity_openstack/test_host_management.py +++ b/automated-pytest-suite/testcases/sanity/sanity_openstack/test_host_management.py @@ -195,6 +195,8 @@ def test_reboot_active_controller(no_simplex): availability=['available']) kube_helper.wait_for_pods_healthy(check_interval=30, all_namespaces=True) + container_helper.wait_for_apps_status(apps="stx-openstack", status=AppStatus.APPLIED, + timeout=600, check_interval=60) host_helper.swact_host(hostname=standby)