From fa7ed8b352e6f0777d677d49adcc41a821445b5d Mon Sep 17 00:00:00 2001 From: jgilaber Date: Wed, 14 Jun 2023 11:27:40 +0200 Subject: [PATCH] Delete galera pvcs in kuttl test A kuttl test case is deploying openstack with galera but not deleting its pvcs. That causes the CI job to hang when it tries to delete the create pvs. This change explicitely deletes the 3 galera pvcs. --- tests/kuttl/tests/galera-3replicas/02-cleanup.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/kuttl/tests/galera-3replicas/02-cleanup.yaml b/tests/kuttl/tests/galera-3replicas/02-cleanup.yaml index 44141c89..9adfd965 100644 --- a/tests/kuttl/tests/galera-3replicas/02-cleanup.yaml +++ b/tests/kuttl/tests/galera-3replicas/02-cleanup.yaml @@ -4,3 +4,9 @@ delete: - apiVersion: core.openstack.org/v1beta1 kind: OpenStackControlPlane name: openstack +--- +apiVersion: kuttl.dev/v1beta1 +kind: TestStep +commands: +- script: | + oc delete --ignore-not-found=true -n $NAMESPACE pvc mysql-db-openstack-galera-0 mysql-db-openstack-galera-1 mysql-db-openstack-galera-2