From 4f78727c33b73236d6b1fa5d2b124efb41be5ad7 Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Fri, 7 Feb 2025 16:48:59 +0530 Subject: [PATCH] Fix wait condition for OpenStack initialization resource Api version was not set and kind was wrong and due to this it do not wait for the ready state as there is no such resouce in the default api_version v1. This leads to failure of later tasks as operators are not ready. --- roles/kustomize_deploy/tasks/install_operators.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/kustomize_deploy/tasks/install_operators.yml b/roles/kustomize_deploy/tasks/install_operators.yml index eca39c58a2..1caefc0e14 100644 --- a/roles/kustomize_deploy/tasks/install_operators.yml +++ b/roles/kustomize_deploy/tasks/install_operators.yml @@ -364,7 +364,8 @@ when: not cifmw_kustomize_deploy_generate_crs_only kubernetes.core.k8s_info: kubeconfig: "{{ cifmw_openshift_kubeconfig }}" - kind: Openstack + api_version: "operator.openstack.org/v1beta1" + kind: OpenStack namespace: openstack-operators name: openstack wait: true