Skip to content

Conversation

@wangke19
Copy link
Contributor

@wangke19 wangke19 commented Dec 2, 2025

Summary

Fixes the periodic-ci-openshift-release-master-nightly-4.21-e2e-rosa-sts-ovn job that has been failing since Nov 22, 2025 with:

/bin/bash: line 57: ORIGINAL_RELEASE_IMAGE_LATEST: unbound variable

Root Cause

The rosa-sts-account-roles-create step script uses set -o nounset and attempts to access ORIGINAL_RELEASE_IMAGE_LATEST without checking if it's set. This variable should be automatically provided by ci-operator when releases.latest is configured, but it appears to not be set for variant configurations due to a ci-operator regression.

Changes

Added a defensive check before using ORIGINAL_RELEASE_IMAGE_LATEST:

  • Only attempts to parse the variable if it's set
  • Falls back to existing ROSA CLI version query logic if the variable is missing
  • Maintains backward compatibility

Testing

The fix makes the script more robust by:

  1. Preventing the unbound variable error
  2. Gracefully falling back to the version query logic that already exists in the script
  3. Not changing behavior when the variable IS properly set

/cc @openshift/openshift-team-ci

…t-roles-create

The rosa-sts-account-roles-create step was failing with 'unbound variable'
error when ORIGINAL_RELEASE_IMAGE_LATEST is not set. This happens because
the script has 'set -o nounset' which causes it to fail on undefined variables.

This appears to be caused by a ci-operator regression that started around
Nov 22, 2025. The variable should be automatically set by ci-operator when
a config has releases.latest defined, but it's not being set for variant
configurations.

This fix adds a check to ensure ORIGINAL_RELEASE_IMAGE_LATEST is set before
attempting to use it. If the variable is not set, the script falls back to
the existing logic that queries the version list from ROSA CLI.

Fixes: periodic-ci-openshift-release-master-nightly-4.21-e2e-rosa-sts-ovn
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 2, 2025

@wangke19: GitHub didn't allow me to request PR reviews from the following users: openshift/openshift-team-ci.

Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

Summary

Fixes the periodic-ci-openshift-release-master-nightly-4.21-e2e-rosa-sts-ovn job that has been failing since Nov 22, 2025 with:

/bin/bash: line 57: ORIGINAL_RELEASE_IMAGE_LATEST: unbound variable

Root Cause

The rosa-sts-account-roles-create step script uses set -o nounset and attempts to access ORIGINAL_RELEASE_IMAGE_LATEST without checking if it's set. This variable should be automatically provided by ci-operator when releases.latest is configured, but it appears to not be set for variant configurations due to a ci-operator regression.

Changes

Added a defensive check before using ORIGINAL_RELEASE_IMAGE_LATEST:

  • Only attempts to parse the variable if it's set
  • Falls back to existing ROSA CLI version query logic if the variable is missing
  • Maintains backward compatibility

Testing

The fix makes the script more robust by:

  1. Preventing the unbound variable error
  2. Gracefully falling back to the version query logic that already exists in the script
  3. Not changing behavior when the variable IS properly set

/cc @openshift/openshift-team-ci

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.

@wangke19
Copy link
Contributor Author

wangke19 commented Dec 2, 2025

/payload-job periodic-ci-openshift-release-master-nightly-4.21-e2e-rosa-sts-ovn

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 2, 2025

@wangke19: the repo openshift/release does not contribute to the OpenShift official images, or the base branch is not currently having images promoted

@openshift-ci-robot
Copy link
Contributor

[REHEARSALNOTIFIER]
@wangke19: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
pull-ci-ComplianceAsCode-content-master-4.19-e2e-rosa-ocp4-cis-node ComplianceAsCode/content presubmit Registry content changed
pull-ci-ComplianceAsCode-content-master-4.19-e2e-rosa-ocp4-pci-dss-node ComplianceAsCode/content presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa-4.20-candidate-x86-loaded-upgrade-from-4.19-loaded-upgrade-419to420-120nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa-4.20-candidate-x86-loaded-upgrade-from-4.19-loaded-upgrade-419to420-249nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa-4.20-nightly-x86-node-density-cni-24nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa-4.20-nightly-x86-conc-builds-3nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa-4.20-nightly-x86-control-plane-3nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa-4.19-candidate-x86-loaded-upgrade-from-4.18-loaded-upgrade-418to419-120nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa-4.19-candidate-x86-loaded-upgrade-from-4.18-loaded-upgrade-418to419-249nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa-4.19-nightly-x86-node-density-cni-24nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa-4.19-nightly-x86-conc-builds-3nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa-4.19-nightly-x86-control-plane-3nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa-4.18-nightly-x86-cluster-density-v2-249nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa-4.18-nightly-x86-control-plane-120nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa-4.18-nightly-x86-node-density-cni-24nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa-4.18-nightly-x86-conc-builds-3nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa-4.18-nightly-x86-control-plane-3nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa_hcp-4.20-nightly-x86-node-density-24nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa_hcp-4.20-nightly-x86-node-density-cni-24nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa_hcp-4.20-nightly-x86-control-plane-3nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa_hcp-4.18-nightly-x86-node-density-24nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa_hcp-4.18-nightly-x86-node-density-cni-24nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa_hcp-4.18-nightly-x86-control-plane-3nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa_hcp-4.19-nightly-x86-node-density-24nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed
pull-ci-openshift-eng-ocp-qe-perfscale-ci-main-rosa_hcp-4.19-nightly-x86-node-density-cni-24nodes openshift-eng/ocp-qe-perfscale-ci presubmit Registry content changed

A total of 234 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
Prior to this PR being merged, you will need to either run and acknowledge or opt to skip these rehearsals.

Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@wangke19
Copy link
Contributor Author

wangke19 commented Dec 2, 2025

/pj-rehearse periodic-ci-openshift-release-master-nightly-4.21-e2e-rosa-sts-ovn

@openshift-ci-robot
Copy link
Contributor

@wangke19: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@wangke19
Copy link
Contributor Author

wangke19 commented Dec 2, 2025

/assign @yasun1

@wangke19
Copy link
Contributor Author

wangke19 commented Dec 2, 2025

/payload-job-with-prs periodic-ci-openshift-release-master-nightly-4.21-e2e-rosa-sts-ovn openshift/origin#30536

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 2, 2025

@wangke19: the repo openshift/release does not contribute to the OpenShift official images, or the base branch is not currently having images promoted

@yasun1
Copy link
Contributor

yasun1 commented Dec 3, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 3, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 3, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wangke19, yasun1

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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 Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 3, 2025
@wangke19
Copy link
Contributor Author

wangke19 commented Dec 3, 2025

/pj-rehearse ack

@openshift-ci-robot
Copy link
Contributor

@wangke19: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-ci-robot openshift-ci-robot added the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Dec 3, 2025
@wangke19
Copy link
Contributor Author

wangke19 commented Dec 3, 2025

/pr-rehearse ack

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 3, 2025

@wangke19: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/rehearse/periodic-ci-openshift-release-master-nightly-4.21-e2e-rosa-sts-ovn 29e9ad8 link unknown /pj-rehearse periodic-ci-openshift-release-master-nightly-4.21-e2e-rosa-sts-ovn

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit c3fcec5 into openshift:master Dec 3, 2025
10 of 11 checks passed
@wangke19 wangke19 deleted the fix-rosa-sts-account-roles-original-release-image branch December 3, 2025 03:53
avasilevskii pushed a commit to avasilevskii/release that referenced this pull request Dec 4, 2025
…t-roles-create (openshift#72041)

The rosa-sts-account-roles-create step was failing with 'unbound variable'
error when ORIGINAL_RELEASE_IMAGE_LATEST is not set. This happens because
the script has 'set -o nounset' which causes it to fail on undefined variables.

This appears to be caused by a ci-operator regression that started around
Nov 22, 2025. The variable should be automatically set by ci-operator when
a config has releases.latest defined, but it's not being set for variant
configurations.

This fix adds a check to ensure ORIGINAL_RELEASE_IMAGE_LATEST is set before
attempting to use it. If the variable is not set, the script falls back to
the existing logic that queries the version list from ROSA CLI.

Fixes: periodic-ci-openshift-release-master-nightly-4.21-e2e-rosa-sts-ovn
dfrazzette pushed a commit to dfrazzette/release that referenced this pull request Dec 9, 2025
…t-roles-create (openshift#72041)

The rosa-sts-account-roles-create step was failing with 'unbound variable'
error when ORIGINAL_RELEASE_IMAGE_LATEST is not set. This happens because
the script has 'set -o nounset' which causes it to fail on undefined variables.

This appears to be caused by a ci-operator regression that started around
Nov 22, 2025. The variable should be automatically set by ci-operator when
a config has releases.latest defined, but it's not being set for variant
configurations.

This fix adds a check to ensure ORIGINAL_RELEASE_IMAGE_LATEST is set before
attempting to use it. If the variable is not set, the script falls back to
the existing logic that queries the version list from ROSA CLI.

Fixes: periodic-ci-openshift-release-master-nightly-4.21-e2e-rosa-sts-ovn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. rehearsals-ack Signifies that rehearsal jobs have been acknowledged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants