Skip to content

Commit

Permalink
Delete secrets from previous installation
Browse files Browse the repository at this point in the history
The secrets may have old passwords that are not compatible with current
installation. This patch removes secrets that are left from previous
installation

Closes: OSPRH-8599
  • Loading branch information
holser committed Jul 21, 2024
1 parent 631d249 commit 56d4d19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/roles/pcp_cleanup/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
oc delete --ignore-not-found=true --wait=false openstackdataplanedeployment/openstack
oc delete --ignore-not-found=true --wait=false openstackdataplanedeployment/openstack-nova-compute-ffu
oc delete --ignore-not-found=true --wait=false openstackcontrolplane/openstack
oc patch openstackcontrolplane openstack --type=merge --patch '
metadata:
finalizers: []
' || true
oc patch openstackcontrolplane openstack --type=merge --patch '{"metadata": {"finalizers":null}}' || true
while oc get pod | grep rabbitmq-server-0; do
sleep 2
Expand All @@ -24,6 +21,9 @@
oc delete --ignore-not-found=true secret osp-secret
oc delete issuer rootca-internal --ignore-not-found
oc delete secret rootca-internal --ignore-not-found
oc get secret -n openstack -oname | xargs -I{} oc patch {} -n openstack --type=merge -p '{"metadata": {"finalizers":null}}'
oc get secret -n openstack -oname | xargs -I{} oc delete {}
when: pcp_cleanup_enabled|bool

- name: revert standalone VM to snapshotted state
Expand Down

0 comments on commit 56d4d19

Please sign in to comment.