Repository navigation
OCPBUGS-32228: Fix failure to create a second hostedcluster in the same namespace - #3900
Conversation
|
@muraee: This pull request references Jira Issue OCPBUGS-32228, 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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: muraee 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 |
|
@muraee: This pull request references Jira Issue OCPBUGS-32228, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (jiezhao@redhat.com), skipping review request. 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. |
- if reconcileCLISecrets is executed before spec.infraID is set, it might list secrets not belonging to this cluster and fail to set ownerReference.
66204f8 to
0325427
Compare
jparrill
left a comment
There was a problem hiding this comment.
The only question I have is, this is only affected in AWS and Azure? or the other providers are also facing this issue?
/lgtm
|
@jparrill its affecting user creating agent clusters using the cli. |
|
/retest-required |
|
@muraee: 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/test-infra repository. I understand the commands that are listed here. |
|
@muraee: Jira Issue OCPBUGS-32228: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-32228 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. |
|
/cherry-pick release-4.15 |
|
@muraee: #3900 failed to apply on top of branch "release-4.15": 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/test-infra repository. |
|
[ART PR BUILD NOTIFIER] This PR has been included in build ose-hypershift-container-v4.16.0-202404181209.p0.g252e43f.assembly.stream.el9 for distgit hypershift. |
|
Fix included in accepted release 4.16.0-0.nightly-2024-04-21-123502 |
What this PR does / why we need it:
#3234 introduced a logic to list secrets generated by the cli and set their ownerReference . However, it was executed before
.spec.infraIDis defaulted which caused it to try to set the ownerReference on secrets that don't belong to the HostedCluster which was causing the creation of a multiple HCs in the same namespace to fail.This only surfaced in agent clusters since the cli doesn't automatically sets the
spec.infraIDand relies on the HO to default it.The core cluster creation workflow will now generate and set infraID for all platforms.
Which issue(s) this PR fixes (optional, use
fixes #<issue_number>(, fixes #<issue_number>, ...)format, where issue_number might be a GitHub issue, or a Jira story:Fixes #OCPBUGS-32228
Checklist