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

Bug: when needsUnpack returns false no status update happens #422

Closed
joelanford opened this issue Oct 3, 2024 · 2 comments · Fixed by #424
Closed

Bug: when needsUnpack returns false no status update happens #422

joelanford opened this issue Oct 3, 2024 · 2 comments · Fixed by #424
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. v1.0 Issues related to the initial stable release of OLMv1

Comments

@joelanford
Copy link
Member

In the operator-controller upgrade-e2e, we discovered an issue that causes the catalogd controller to leave stale conditions and fields set on a ClusterCatalog after an upgrade.

If a ClusterCatalog is serving and up-to-date prior to an upgrade, and then a catalogd upgrade occurs, the new catalogd sees that "everything looks good", and then immediately returns from reconcile.

Unfortunately everything is not good. In a transition from 0.29.0 to 0.30.0, one example of a thing that we fail to do is change the Unpacked condition type to Serving.

In order to fix this, we need to always be updating the status based on the known state of the catalog, no matter which code path we take through our reconcile function.

@joelanford joelanford self-assigned this Oct 3, 2024
@joelanford
Copy link
Member Author

Taking a look at this now. I'd like to fix this, make a new release, and then bump operator-controller to that version (skipping 0.30.0) to make sure that the upgrade goes more smoothly.

@grokspawn grokspawn added the v1.0 Issues related to the initial stable release of OLMv1 label Oct 3, 2024
@grokspawn grokspawn added this to OLM v1 Oct 3, 2024
@grokspawn grokspawn added the kind/bug Categorizes issue or PR as related to a bug. label Oct 3, 2024
@LalatenduMohanty
Copy link
Member

For reference @joelanford has created operator-framework/operator-controller#1345 as a followup for a longterm fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. v1.0 Issues related to the initial stable release of OLMv1
Projects
Status: Done
3 participants