Skip to content

ansible test: fix race condition in operator update#475

Open
dciabrin wants to merge 1 commit into
openstack-k8s-operators:mainfrom
dciabrin:ansible-update-race
Open

ansible test: fix race condition in operator update#475
dciabrin wants to merge 1 commit into
openstack-k8s-operators:mainfrom
dciabrin:ansible-update-race

Conversation

@dciabrin

@dciabrin dciabrin commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

The usual way of installing a new mariadb-operator is to use install_yamls and make mariadb. However this one creates the subscription CR right after the catalog CR has been created. If a previous operator was present, this might prevent OLM to retrieve the bundle data for the new operator, which would cause the previous version of the operator to be reinstalled.

Fix that race condition by first installing the catalogsource, and wait until OLM refreshed its cache with the new bundle information, at which point it is safe to create the new subscription CR.

The usual way of installing a new mariadb-operator is to use
install_yamls and `make mariadb`. However this one creates the
subscription CR right after the catalog CR has been created. If
a previous operator was present, this might prevent OLM to retrieve
the bundle data for the new operator, which would cause the previous
version of the operator to be reinstalled.

Fix that race condition by first installing the catalogsource, and
wait until OLM refreshed its cache with the new bundle information,
at which point it is safe to create the new subscription CR.
@openshift-ci openshift-ci Bot requested review from dprince and stuggi June 5, 2026 15:32
@openshift-ci

openshift-ci Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dciabrin

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-ci openshift-ci Bot added the approved label Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant