From 82465d0e5b397b7ed96c8d1cd48d45847cbfc108 Mon Sep 17 00:00:00 2001 From: Vito Castellano Date: Mon, 15 Jun 2026 17:09:30 +0200 Subject: [PATCH] Fix kuttl cleanup timeout in tempest-basic test The 99-cleanup step was timing out (600s) because it checked for the absence of openstack-config ConfigMap and openstack-config-secret Secret. These are infrastructure resources managed by the CI environment, not by the test-operator. Other operators (e.g. keystone) in the namespace recreate them after deletion, causing the error check to never pass. Also fix Pod label selectors in errors-cleanup.yaml from job-name to instanceName, which is the label actually set by the test-operator. Signed-off-by: Vito Castellano --- test/kuttl/common/cleanup-all-tests.yaml | 6 ------ test/kuttl/common/errors-cleanup.yaml | 27 +++++++++--------------- 2 files changed, 10 insertions(+), 23 deletions(-) diff --git a/test/kuttl/common/cleanup-all-tests.yaml b/test/kuttl/common/cleanup-all-tests.yaml index bd16ff34..5700fc64 100644 --- a/test/kuttl/common/cleanup-all-tests.yaml +++ b/test/kuttl/common/cleanup-all-tests.yaml @@ -1,12 +1,6 @@ apiVersion: kuttl.dev/v1beta1 kind: TestStep delete: -- apiVersion: v1 - kind: ConfigMap - name: openstack-config -- apiVersion: v1 - kind: Secret - name: openstack-config-secret - apiVersion: test.openstack.org/v1beta1 kind: Tempest name: tempest-sample diff --git a/test/kuttl/common/errors-cleanup.yaml b/test/kuttl/common/errors-cleanup.yaml index fc032d64..75c16039 100644 --- a/test/kuttl/common/errors-cleanup.yaml +++ b/test/kuttl/common/errors-cleanup.yaml @@ -2,20 +2,13 @@ # Check for: # # No CRs -# No Pods -# No ConfigMaps -# No Secrets +# No Pods owned by test-operator +# +# NOTE: openstack-config ConfigMap and openstack-config-secret Secret are +# infrastructure resources managed by the CI environment (not by the +# test-operator) and must NOT be checked here. Other operators in the +# namespace may recreate them after deletion, causing cleanup timeouts. # -apiVersion: v1 -kind: ConfigMap -metadata: - name: openstack-config ---- -apiVersion: v1 -kind: Secret -metadata: - name: openstack-config-secret ---- apiVersion: test.openstack.org/v1beta1 kind: Tempest metadata: @@ -40,22 +33,22 @@ apiVersion: v1 kind: Pod metadata: labels: - job-name: tempest-sample + instanceName: tempest-sample --- apiVersion: v1 kind: Pod metadata: labels: - job-name: tobiko-sample + instanceName: tobiko-sample --- apiVersion: v1 kind: Pod metadata: labels: - job-name: ansibletest-sample + instanceName: ansibletest-sample --- apiVersion: v1 kind: Pod metadata: labels: - job-name: horizontest-sample + instanceName: horizontest-sample