Skip to content

Commit 8eeaca4

Browse files
committed
[cleanup_openstack] Work around for rabbitmq cluster removal issue
Temporary WA for rabbit MQ deletion issue which seems to happen once in a while. Jira: https://issues.redhat.com/browse/OSPCIX-1109 Signed-off-by: Ella Shulman <[email protected]>
1 parent 7ba5419 commit 8eeaca4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

roles/cleanup_openstack/tasks/main.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,19 @@
5151
ansible.builtin.import_tasks: detach_bmh.yaml
5252
when: cifmw_cleanup_openstack_detach_bmh
5353

54+
- name: Work around for stale rabbit cluster deletion
55+
kubernetes.core.k8s_json_patch:
56+
kubeconfig: "{{ cifmw_openshift_kubeconfig }}"
57+
api_key: "{{ cifmw_openshift_token | default(omit) }}"
58+
context: "{{ cifmw_openshift_context | default(omit) }}"
59+
namespace: openstack
60+
kind: RabbitmqCluster
61+
name: rabbitmq-cell1
62+
patch:
63+
- op: replace
64+
path: /metadata/finalizers
65+
value: []
66+
5467
- name: Delete deployment CRs
5568
vars:
5669
_stages_crs: >-

0 commit comments

Comments
 (0)