Fix missing OperatorGroup for OPP 4.22 upgrade operators - #82911
Conversation
|
@amp-rh: GitHub didn't allow me to request PR reviews from the following users: mpruitt. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: amp-rh The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThe OCP 4.22 upgrade test configuration adds ChangesOperator group configuration
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…4.22 upgrade The install-operators step only creates an OperatorGroup when the operator_group field is present in the OPERATORS JSON. Without it, OLM cannot process the Subscription and the CSV is never installed, causing a timeout after 30 retries. Adds operator_group to both rhacs-operator and odf-operator entries in the 4.22 upgrade config.
254c89c to
3770a7c
Compare
|
@amp-rh: |
|
/pj-rehearse auto-ack |
|
@amp-rh: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
ACS v4.11+ only supports AllNamespaces install mode. Removing target_namespaces causes install-operators to create an OperatorGroup without spec.targetNamespaces (AllNamespaces mode).
Correct Fix — Plus a Process Improvement SuggestionThe fix is straightforward and correct: adding One process observation: the interop team is debugging OLM install prerequisites for products that should document their own requirements. The knowledge that RHACS needs Suggestion for reducing this maintenance burden going forward:
The Quay operator config already has this right — This isn't a merge blocker — please proceed with the fix. The process improvement is for future sprints. See also: DPTP-1522 ("installation steps should be owned and maintained by SMEs"), OSSM-14040 (precedent for interop-to-product transition). |
|
[REHEARSALNOTIFIER]
Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
@amp-rh: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
rhacs-operator does not support OwnNamespace InstallModeType. Installing into a custom namespace (rhacs-operator) without a proper AllNamespaces OperatorGroup causes OLM to fail with UnsupportedOperatorGroup. Fix by installing into openshift-operators (which has the global OperatorGroup), matching the pattern used by quay-operator. This subsumes the fix from PR openshift#82911.
|
Superseded by #82920 which consolidates this fix (correct approach: install rhacs-operator into openshift-operators instead of a custom namespace with OwnNamespace OperatorGroup). |
rhacs-operator does not support OwnNamespace InstallModeType. Installing into a custom namespace (rhacs-operator) without a proper AllNamespaces OperatorGroup causes OLM to fail with UnsupportedOperatorGroup. Fix by installing into openshift-operators (which has the global OperatorGroup), matching the pattern used by quay-operator. This subsumes the fix from PR openshift#82911.
Summary
operator_groupfield torhacs-operatorandodf-operatorentries in the OPP 4.22 upgrade job configinstall-operatorsstep only creates an OperatorGroup when this field is present; without it, OLM cannot process the Subscription and the operator install times outDetails
The
install-operators-commands.shscript (lines 115-138) conditionally creates an OperatorGroup only when theoperator_groupkey exists in the operator's JSON config. Bothrhacs-operatorandodf-operatorwere missing this field, so no OperatorGroup was created in their respective namespaces. OLM requires an OperatorGroup to process Subscriptions.The 5.0 upgrade config was fixed differently in #82372 (operators removed entirely), but 4.22 still needs them installed.
Summary by CodeRabbit
rhacs-operatorandodf-operator.operator_groupsettings soinstall-operatorscreates the OperatorGroup required for OLM installation.rhacs-operatorfor AllNamespaces mode by removingtarget_namespaces, as required by ACS v4.11 and later.