Repository navigation
Add opt-in previous-minor Konflux catalog fallback - #89763
redhat-chai-bot wants to merge 1 commit into
Conversation
|
Skipping CI for Draft Pull Request. |
|
No actionable comments were generated in the recent review. WalkthroughThe deployment step adds an opt-in fallback to a verified previous-minor FBC tag when the requested operator tag is confirmed absent. Three OVN-Kubernetes test jobs enable the option. Explicit FBC tags remain unchanged. ChangesPrevious-Minor FBC Tag Fallback
Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant Deploy as deploy_operator_main
participant Resolve as resolve_operator_fbc_tag
participant Probe as probe_fbc_tag
participant Registry as FBC registry
participant Config as FBC source and target configuration
Deploy->>Resolve: requested operator tag
Resolve->>Probe: check requested tag
Probe->>Registry: request requested tag
Registry-->>Probe: HTTP 404 MANIFEST_UNKNOWN
Resolve->>Probe: check previous-minor tag
Probe->>Registry: request previous-minor tag
Registry-->>Probe: HTTP 200
Resolve-->>Deploy: verified previous-minor tag
Deploy->>Config: configure source and target with resolved tag
Suggested reviewers: Merge Risk:
|
arkadeepsen
left a comment
There was a problem hiding this comment.
Address the below comments and squash the commits into a single one.
| @@ -0,0 +1,445 @@ | |||
| #!/bin/bash | |||
There was a problem hiding this comment.
This file need not be added.
There was a problem hiding this comment.
Removed the standalone test script from the PR in f4376b2. The PR remains a single commit.
Chai persona: OpenShift AI Helpdesk
AI-generated. Review for accuracy.
| log "ERROR" "FBC tag $requested does not exist ($requested_detail), and $ver has no previous minor in major version $major to fall back to" | ||
| return 1 | ||
| fi | ||
| previous_ver="${major}.$((10#$minor - 1))" |
There was a problem hiding this comment.
Check deducting 1 from 10#$mino makes it a negative number or not. Proceed only if the value is positive.
There was a problem hiding this comment.
Should the decremented minor be non-negative (>= 0) or strictly positive (> 0)? The current check already prevents 5.0 from producing a negative minor. Allowing zero preserves 5.1 → 5.0; requiring a positive result would disable that fallback even when the 5.0 catalog exists. Either rule preserves 5.2 → 5.1.
AI-assisted response
Chai persona: OpenShift AI Helpdesk
AI-generated. Review for accuracy.
There was a problem hiding this comment.
Non-negative should be fine.
There was a problem hiding this comment.
Updated in f4376b2: the script computes the previous minor once and rejects it if it is negative. This preserves 5.1 → 5.0 and 5.2 → 5.1, while an x.0 release never falls back across a major version. The local tests passed for all three cases.
Chai persona: OpenShift AI Helpdesk
AI-generated. Review for accuracy.
Operator-name mode derives the FBC tag from the cluster's MAJOR.MINOR version. The art-fbc repository may not yet publish a tag for the newest minor, so jobs that install the operator then fail when they render a catalog that does not exist. Add KONFLUX_FBC_PREVIOUS_MINOR_FALLBACK (default "false"). When it is enabled in operator-name mode, the step requests the derived tag's top-level manifest from the registry v2 API, anonymously and with bounded timeouts. Only HTTP 404 with MANIFEST_UNKNOWN counts as absent; then the exact tag for the previous minor of the same major is checked and used if present. Authentication, rate limit, server, network and timeout errors, and a version that is not MAJOR.MINOR, never trigger the fallback and keep the requested tag. The step fails with a clear error if the requested tag is absent and the previous minor tag is absent or cannot be verified, or for an x.0 version. The tag is resolved before set_fbc_target, so mirroring, opm render, IDMS and the CatalogSource use the same tag, and the requested and resolved tags are logged. Explicit KONFLUX_TARGET_FBC_TAGS are used as given. Enable it only for three ovn-kubernetes main jobs that install nmstate on 5.2 clusters: the 5.2 nmstate FBC tag is currently not published, while the 5.1 tag is. The previous minor's operator is not verified to be compatible with the cluster version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ae4adb5 to
f4376b2
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: redhat-chai-bot 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 |
|
[REHEARSALNOTIFIER]
A total of 411 jobs have been affected by this change. The above listing is non-exhaustive and limited to 25 jobs. A full list of affected jobs can be found here Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
/pj-rehearse pull-ci-openshift-ovn-kubernetes-main-e2e-metal-ipi-ovn-dualstack-bgp-local-gw pull-ci-openshift-ovn-kubernetes-main-e2e-metal-core-networking-virt-nmstate-dual-serial-ote pull-ci-openshift-ovn-kubernetes-main-e2e-metal-ipi-core-networking-dualstack-bgp-lgw-ote |
|
@redhat-chai-bot: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
Summary
Allow deploy-konflux-operator to select the previous minor's file-based catalog in operator-name mode, but only when the registry confirms that the current tag is absent and the previous tag exists. Explicit tags and the default behavior are unchanged. Enable the fallback only for three OVN nmstate presubmits.
Validation
All 22 focused test scenarios, shell lint, and local config, registry, and generation checks passed. A read-only Quay check selected the 5.1 nmstate catalog when the 5.2 tag was absent. The config resolver was checked with an emulated cluster environment; a live Prow run and installation on a 5.2 cluster have not been performed.
AI-generated. Review for accuracy.
@arkadeepsen requested from Slack
Chai persona:
OpenShift AI HelpdeskSummary by CodeRabbit
This change adds an opt-in fallback to the previous minor version's FBC tag in
deploy-konflux-operator. It applies only in operator-name mode. The default behavior does not change.KONFLUX_FBC_PREVIOUS_MINOR_FALLBACKdefaults tofalse. The script validates it astrueorfalsebefore any cluster change.MANIFEST_UNKNOWNfor the requested tag, and the previous minor tag is verified present. Other registry responses keep the requested tag.x.0versions.curlandtimeoutare required only when the fallback is enabled and operators are set.oc,opm, andjqremain required.KONFLUX_TARGET_FBC_TAGSis used as given. The script logs that the fallback does not apply."true". These jobs cover the dual-stack BGP local-gateway run, core-networking conformance, and virtualization serial conformance.Compatibility of the previous-minor operator with the cluster version is not verified.