Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete secrets from previous installation #531

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading