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

[conditions] Reset conditions on Init() #590

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

stuggi
Copy link
Contributor

@stuggi stuggi commented Dec 13, 2024

Recently the operators changed to use CreateServiceReadyCondition instead of ExposeServiceReadyCondition. An update of an existing environment would result in the ExposeServiceReadyCondition to be never removed from the conditions list of a CR because the list is not reset on Init().

This adds a Reset() method and a call right at the start of Init().

Related: https://issues.redhat.com//browse/OSPRH-4164

Recently the operators changed to use CreateServiceReadyCondition
instead of ExposeServiceReadyCondition. An update of an existing
environment would result in the ExposeServiceReadyCondition to be
never removed from the conditions list of a CR because the list
is not reset on Init().

This adds a Reset() method and a call right at the start of Init().

Signed-off-by: Martin Schuppert <[email protected]>
@stuggi stuggi requested review from gibizer and abays December 13, 2024 11:09
@stuggi
Copy link
Contributor Author

stuggi commented Dec 16, 2024

in minor update from FR1 to main e.g. https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_release/59699/rehearse-59699-pull-ci-openstack-k8s-operators-openstack-operator-main-openstack-operator-build-deploy-kuttl/1867609784287498240 the old exposeservice condition in novaapi was reset to unknown (not yet sure why) and never set to true again (expected). as a result the minor update got stuck.

Copy link
Contributor

@abays abays left a comment

Choose a reason for hiding this comment

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

/lgtm

@stuggi stuggi merged commit d172b3a into openstack-k8s-operators:main Dec 16, 2024
2 checks passed
stuggi added a commit to stuggi/openstack-operator that referenced this pull request Dec 17, 2024
When the dataplane minor update finished, the controller will not
set a OpenStackVersionMinorUpdateOVNDataplane after [1]. This
change will remove the no longer required check.

[1] openstack-k8s-operators/lib-common#590

Signed-off-by: Martin Schuppert <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants