From 10522966d5297e2ee4dca9302a763014fdcde3dc Mon Sep 17 00:00:00 2001 From: Jiri Stransky Date: Mon, 25 Mar 2024 18:02:35 +0100 Subject: [PATCH] Customizable verification command for control plane rollback --- tests/roles/control_plane_rollback/defaults/main.yaml | 2 ++ tests/roles/control_plane_rollback/tasks/main.yaml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 tests/roles/control_plane_rollback/defaults/main.yaml diff --git a/tests/roles/control_plane_rollback/defaults/main.yaml b/tests/roles/control_plane_rollback/defaults/main.yaml new file mode 100644 index 000000000..2a70c1d1a --- /dev/null +++ b/tests/roles/control_plane_rollback/defaults/main.yaml @@ -0,0 +1,2 @@ +control_plane_rollback_verify_command: | + $CONTROLLER1_SSH OS_CLOUD=standalone openstack user list diff --git a/tests/roles/control_plane_rollback/tasks/main.yaml b/tests/roles/control_plane_rollback/tasks/main.yaml index 7e39c95bc..20a07eced 100644 --- a/tests/roles/control_plane_rollback/tasks/main.yaml +++ b/tests/roles/control_plane_rollback/tasks/main.yaml @@ -142,7 +142,8 @@ no_log: "{{ use_no_log }}" ansible.builtin.shell: | {{ shell_header }} - ssh -i {{ edpm_privatekey_path }} root@{{ edpm_node_ip }} OS_CLOUD=standalone openstack user list + {{ control_plane_rollback_shell_vars }} + {{ control_plane_rollback_verify_command }} register: source_control_plane_responding_result until: source_control_plane_responding_result is success retries: 60