Skip to content

Fix kuttl cleanup timeout#454

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
Valkyrie00:fix/kuttl-cleanup-timeout
Jun 16, 2026
Merged

Fix kuttl cleanup timeout#454
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
Valkyrie00:fix/kuttl-cleanup-timeout

Conversation

@Valkyrie00

@Valkyrie00 Valkyrie00 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Problem

The tempest-basic kuttl test fails with context deadline exceeded during the 99-cleanup step after waiting 600 seconds.

The shared errors-cleanup.yaml asserted the absence of openstack-config ConfigMap and openstack-config-secret Secret. These are infrastructure resources deployed by install_yamls for the CI environment. They are not
created or managed by the test-operator. Other operators running in the test-operator-kuttl-tests namespace (keystone, galera, rabbitmq, memcached) keep these resources alive, so they persist after deletion and the error check never passes.

Additionally, the Pod checks in errors-cleanup.yaml used job-name as the label selector, but the test-operator labels its pods with instanceName (see internal/controller/common.go). The old selector never matched any test-operator pods, making the check a no-op.

Fix Proposal

  • Remove openstack-config ConfigMap and openstack-config-secret Secret from both cleanup-all-tests.yaml (delete step) and errors-cleanup.yaml The cleanup now only targets test-operator CRs.
  • Fix Pod label selectors from job-name to instanceName so the absence check actually matches pods created by the test-operator.

Assisted-By: Cursor
Relevance: #417 #452

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 <vcastell@redhat.com>
@openshift-ci

openshift-ci Bot commented Jun 15, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@Valkyrie00 Valkyrie00 changed the title [DNM] Fix kuttl cleanup timeout in tempest-basic test Fix kuttl cleanup timeout in tempest-basic test Jun 15, 2026
@Valkyrie00 Valkyrie00 marked this pull request as ready for review June 15, 2026 20:13
@openshift-ci openshift-ci Bot requested review from evallesp and posikoya June 15, 2026 20:13
@Valkyrie00 Valkyrie00 requested a review from kstrenkova June 15, 2026 21:49
@Valkyrie00 Valkyrie00 changed the title Fix kuttl cleanup timeout in tempest-basic test Fix kuttl cleanup timeout Jun 15, 2026

@posikoya posikoya left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm +1

@evallesp evallesp left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci

openshift-ci Bot commented Jun 16, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: evallesp, posikoya, Valkyrie00

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot Bot merged commit 2755df4 into openstack-k8s-operators:main Jun 16, 2026
7 checks passed
@imatza-rh

Copy link
Copy Markdown

/lgtm
/approve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants