OCPBUGS-98763: patch AWS master IAM role in 4.21/4.22→5.0 upgrade jobs - #81974
Conversation
|
Skipping CI for Draft Pull Request. |
|
@mfbonfigli: This pull request references Jira Issue OCPBUGS-98763, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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 openshift-eng/jira-lifecycle-plugin repository. |
|
/jira refresh |
|
@mfbonfigli: This pull request references Jira Issue OCPBUGS-98763, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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 openshift-eng/jira-lifecycle-plugin repository. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughAdds a CI Operator step that conditionally grants ChangesAWS master IAM patch
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant UpgradeWorkflow
participant IAMPatchStep
participant OpenShiftAPI
participant AWSIAM
UpgradeWorkflow->>IAMPatchStep: Run pre-step
IAMPatchStep->>OpenShiftAPI: Read source and target release versions
OpenShiftAPI-->>IAMPatchStep: Return release versions
IAMPatchStep->>AWSIAM: Put inline policy on computed master role
AWSIAM-->>IAMPatchStep: Return operation result
Suggested labels: Suggested reviewers: 🚥 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 |
|
@mfbonfigli: This pull request references Jira Issue OCPBUGS-98763, which is valid. 3 validation(s) were run on this bug
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/pj-rehearse periodic-ci-openshift-release-main-ci-5.0-upgrade-from-stable-4.22-e2e-aws-ovn-upgrade |
|
@mfbonfigli: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
cc627ad to
b4e8831
Compare
|
/pj-rehearse periodic-ci-openshift-release-main-ci-5.0-upgrade-from-stable-4.22-e2e-aws-ovn-upgrade |
|
@mfbonfigli: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
The test seems to be a flake unrelated to the change. The specific step added ran correctly: |
|
/pj-rehearse |
|
@mfbonfigli: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/pj-rehearse periodic-ci-openshift-release-main-ci-5.0-upgrade-from-stable-4.22-from-stable-4.21-e2e-aws-ovn-upgrade periodic-ci-openshift-release-main-nightly-5.0-upgrade-from-stable-4.21-e2e-aws-ovn-upgrade-paused |
|
@mfbonfigli: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
ci/rehearse/periodic-ci-openshift-release-main-ci-5.0-upgrade-from-stable-4.22-e2e-aws-ovn-upgrade passed, the other seemed again unrelated failures so triggered a retry run |
|
/lgtm |
|
@mfbonfigli: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
This job seems to be stuck on the new step: this doesn't have |
|
Indeed the above e2e failed with error: This proves that not all jobs carry a direct or indirect reference to In particular at risk could be the 344 periodic-ci-* affected jobs where stable is populated from the assembled release payload and hence upi-installer is not in the payload. Out of these one should exclude those that explicitly define
Given that scope of this PR is to enable e2e tests for the AWS BYO NLB feature in CCM, and not identify and retrofit tens of jobs to deprecate a pattern that is widely in use across the codebase, I believe it is appropriate to not use For this reason am going to revert this PR to the original approach of using a specific version pin. |
The OpenShift installer did not include elasticloadbalancing:SetSecurityGroups in the master IAM role policy until 4.23. Clusters installed with 4.21 or 4.22 and upgraded to 5.0 hit AccessDenied when the 5.0 CCM calls SetSecurityGroups on NLBs, since the master role is never updated during upgrade. Add a new step openshift-upgrade-aws-patch-master-iam that attaches a dedicated inline policy with the missing permission to the master role before the upgrade test runs. Wire it into the test phase of the three affected jobs: - periodic-ci-openshift-release-main-ci-5.0-upgrade-from-stable-4.22-e2e-aws-ovn-upgrade - periodic-ci-openshift-release-main-ci-5.0-upgrade-from-stable-4.22-from-stable-4.21-e2e-aws-ovn-upgrade - periodic-ci-openshift-release-main-nightly-5.0-upgrade-from-stable-4.21-e2e-aws-ovn-upgrade-paused Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
3fe979a to
aa2c49d
Compare
|
[REHEARSALNOTIFIER]
A total of 1633 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 periodic-ci-openshift-release-main-ci-4.22-upgrade-from-stable-4.21-from-stable-4.20-e2e-aws-ovn-upgrade periodic-ci-openshift-release-main-ci-5.0-upgrade-from-stable-4.22-e2e-aws-ovn-upgrade periodic-ci-openshift-release-main-nightly-5.0-upgrade-from-stable-4.21-e2e-aws-ovn-upgrade-paused |
|
@mfbonfigli: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
Rehearsal resultsThree rehearsals were run against this PR. All three successfully executed the new
Why the failures are unrelated to this PRBoth failures occur in the What this PR does, confirmed workingThe new step uses |
|
/pj-rehearse periodic-ci-openshift-release-main-nightly-4.22-upgrade-from-stable-4.20-e2e-aws-ovn-upgrade-paused |
|
@mfbonfigli: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/pj-rehearse periodic-ci-openshift-release-main-ci-5.0-upgrade-from-stable-4.22-e2e-aws-ovn-upgrade |
|
@tthvo: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
tthvo
left a comment
There was a problem hiding this comment.
/lgtm
Based on latest findings 👍
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mfbonfigli, tthvo, vr4manta The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/hold cancel We can wait for rehearsals and ack it as the final step. |
|
@mfbonfigli: The following tests 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. |
|
The failing rehearsals appear all unrelated. Unfortunately most of the affected tests of this PR seem to be, according to Sippy, have a high fail rate, as explained above. The last two test run where: periodic-ci-openshift-release-main-ci-5.0-upgrade-from-stable-4.22-e2e-aws-ovn-upgradeThis test previously passed, and in the re-run failed. The test has a pass percentage on sippy of 49%, so it is known to flake. The failing test cases are fully unrelated to this PR, and this PR step successfully completed installed the IAM permission. From the logs: periodic-ci-openshift-release-main-nightly-4.22-upgrade-from-stable-4.20-e2e-aws-ovn-upgrade-pausedThis one too shows up on Sippy as frequently affected by "internal infrastructure failures" manifesting with exact the same failed test cases as the run that failed here. |
|
/pj-rehearse ack |
|
@mfbonfigli: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
c63238e
into
openshift:main
|
@mfbonfigli: Jira Issue OCPBUGS-98763: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-98763 has been moved to the MODIFIED state. 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 openshift-eng/jira-lifecycle-plugin repository. |
openshift#81974) The OpenShift installer did not include elasticloadbalancing:SetSecurityGroups in the master IAM role policy until 4.23. Clusters installed with 4.21 or 4.22 and upgraded to 5.0 hit AccessDenied when the 5.0 CCM calls SetSecurityGroups on NLBs, since the master role is never updated during upgrade. Add a new step openshift-upgrade-aws-patch-master-iam that attaches a dedicated inline policy with the missing permission to the master role before the upgrade test runs. Wire it into the test phase of the three affected jobs: - periodic-ci-openshift-release-main-ci-5.0-upgrade-from-stable-4.22-e2e-aws-ovn-upgrade - periodic-ci-openshift-release-main-ci-5.0-upgrade-from-stable-4.22-from-stable-4.21-e2e-aws-ovn-upgrade - periodic-ci-openshift-release-main-nightly-5.0-upgrade-from-stable-4.21-e2e-aws-ovn-upgrade-paused Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
openshift#81974) The OpenShift installer did not include elasticloadbalancing:SetSecurityGroups in the master IAM role policy until 4.23. Clusters installed with 4.21 or 4.22 and upgraded to 5.0 hit AccessDenied when the 5.0 CCM calls SetSecurityGroups on NLBs, since the master role is never updated during upgrade. Add a new step openshift-upgrade-aws-patch-master-iam that attaches a dedicated inline policy with the missing permission to the master role before the upgrade test runs. Wire it into the test phase of the three affected jobs: - periodic-ci-openshift-release-main-ci-5.0-upgrade-from-stable-4.22-e2e-aws-ovn-upgrade - periodic-ci-openshift-release-main-ci-5.0-upgrade-from-stable-4.22-from-stable-4.21-e2e-aws-ovn-upgrade - periodic-ci-openshift-release-main-nightly-5.0-upgrade-from-stable-4.21-e2e-aws-ovn-upgrade-paused Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
openshift#81974) The OpenShift installer did not include elasticloadbalancing:SetSecurityGroups in the master IAM role policy until 4.23. Clusters installed with 4.21 or 4.22 and upgraded to 5.0 hit AccessDenied when the 5.0 CCM calls SetSecurityGroups on NLBs, since the master role is never updated during upgrade. Add a new step openshift-upgrade-aws-patch-master-iam that attaches a dedicated inline policy with the missing permission to the master role before the upgrade test runs. Wire it into the test phase of the three affected jobs: - periodic-ci-openshift-release-main-ci-5.0-upgrade-from-stable-4.22-e2e-aws-ovn-upgrade - periodic-ci-openshift-release-main-ci-5.0-upgrade-from-stable-4.22-from-stable-4.21-e2e-aws-ovn-upgrade - periodic-ci-openshift-release-main-nightly-5.0-upgrade-from-stable-4.21-e2e-aws-ovn-upgrade-paused Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
The OpenShift installer did not include elasticloadbalancing:SetSecurityGroups in the master IAM role policy until 5.0.
Clusters installed with 4.21 or 4.22 and upgraded to 5.0 hit AccessDenied when the 5.0 CCM calls SetSecurityGroups on NLBs, since the master role is never updated during cluster upgrades.
This PR adds a new step openshift-upgrade-aws-patch-master-iam that attaches a dedicated inline policy with the missing permission to the master role before the upgrade test runs, and wires it into the pre phase of the three jobs that upgrade from 4.x to 5.0:
Summary by CodeRabbit
Adds a new CI Operator
step-registrystep (openshift-upgrade-aws-patch-master-iam) in theopenshift/releaseconfig to pre-patch AWS master IAM roles during OpenShift upgrades from 4.21/4.22 to 5.0. The step runs before the affected AWS upgrade workflows and, for 4.x → 5.x upgrades, usesaws iam put-role-policyto attach an inline policy grantingelasticloadbalancing:SetSecurityGroups(skipping when the upgrade path doesn’t match). This wiring is added to the AWS OVN and paused-workers upgrade workflows to prevent CCM NLB-relatedAccessDeniedfailures.