[release-4.22] OCPBUGS-84632: fix(azure): detect and replace stale role assignments on cluster re-creation - #8359
Conversation
…re-creation - Extract roleAssignmentClient interface from Azure SDK for testability - Add LIST-based existence check with atScope() filter before GET fallback - Verify both PrincipalID and RoleDefinitionID before skipping creation - Delete stale assignments (mismatched principal) and create fresh ones - Add CleanupRoleAssignments to both destroy cluster and destroy iam paths - Make --dns-zone-rg-name required on all destroy commands - Add comprehensive behavior-driven tests for assignRole, deleteRoleAssignmentByName, and cleanupRoleAssignments Signed-off-by: Bryan Cox <brcox@redhat.com> Commit-Message-Assisted-by: Claude (via Claude Code)
Update destroy command examples in self-managed Azure cluster, IAM separate workflow, and private cluster docs to include the now-required --dns-zone-rg-name flag. Also update the destroy iam command reference table with all required flags. Signed-off-by: Bryan Cox <brcox@redhat.com> Commit-Message-Assisted-by: Claude (via Claude Code)
|
@openshift-cherrypick-robot: Detected clone of Jira Issue OCPBUGS-84251 with correct target version. Will retitle the PR to link to the clone. 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. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-84632, 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 |
|
@bryan-cox: This pull request references Jira Issue OCPBUGS-84632, which is invalid:
Comment 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. |
|
/approve clean backport |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bryan-cox, openshift-cherrypick-robot 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 |
|
/jira refresh |
|
@bryan-cox: This pull request references Jira Issue OCPBUGS-84632, which is valid. The bug has been moved to the POST state. 7 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. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release-4.22 #8359 +/- ##
================================================
+ Coverage 34.64% 34.74% +0.10%
================================================
Files 767 767
Lines 93192 93310 +118
================================================
+ Hits 32284 32421 +137
+ Misses 58233 58214 -19
Partials 2675 2675
🚀 New features to boost your workflow:
|
|
@openshift-cherrypick-robot: all tests passed! 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. |
|
/verified by @Nirshal (see: https://redhat.atlassian.net/browse/OCPBUGS-84632?focusedCommentId=16835987) |
|
@Nirshal: This PR has been marked as verified by 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. |
|
/label backport-risk-assessed |
5fb05fe
into
openshift:release-4.22
|
@openshift-cherrypick-robot: Jira Issue Verification Checks: Jira Issue OCPBUGS-84632 Jira Issue OCPBUGS-84632 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 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. |
|
Fix included in release 4.22.0-0.nightly-2026-04-29-175947 |
This is an automated cherry-pick of #8322
/assign openshift-ci-robot