-
Notifications
You must be signed in to change notification settings - Fork 650
🐛 Fix: Changed dedicated host validation logic to require tenancy=host #5825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
|
Welcome @vr4manta! |
|
Hi @vr4manta. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
|
/ok-to-test |
|
/assign @nrb |
nrb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this lgtm. One question that I have, but otherwise I'm 👍
| }, | ||
| wantError: false, | ||
| }, | ||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'd mentioned something about 8 character host IDs also being valid - do we want to include a test case for that here too, or is that not relevant within CAPA since we're mostly passing values through?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In one of the earlier PRs, Joel Speed had mentioned we could add formatting validation. I think if we want to address that, we can do that via a different PR since this one is fixing an issue. My opinion is that the older 8 character hosts should really no longer exist after the transition from 2018. If someone is holding onto an older one that hasn't been migrated to new id format, what are the odds that it may not meet the requirements for running k8s clusters. For the unit tests, I think we can ignore adding tests for the format until we actually start validating for them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, we can omit it until/unless we see it cause an actual problem.
|
/ok-to-test |
|
@vr4manta: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
|
/test pull-cluster-api-provider-aws-e2e-blocking |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR enhances the dedicated host logic to verify that the tenancy is
hostif any of the dedicated host fields (hostAffinity, hostID, dynamic hosts) are set.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #
In testing this feature in OCP, we came across configuration combinations that were working with AWS with CAPA but not as expected with CLI. If we test this directly with AWS cli, and setting only
Affinity=default, we see it is not allowed:This confirms that Affinity requires Tenancy=host to be set as well. We should align with AWS's behavior, shouldn't we?
Special notes for your reviewer:
Checklist:
Release note: