Canonicalize the IPv6 Addresses when they exist#1011
Canonicalize the IPv6 Addresses when they exist#1011barbacbd wants to merge 2 commits intokubernetes:masterfrom
Conversation
|
This issue is currently awaiting triage. If the repository mantainers determine this is a relevant issue, they will accept it by applying the The 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. |
|
Hi @barbacbd. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: barbacbd 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 |
|
@barbacbd: GitHub didn't allow me to request PR reviews from the following users: tthvo. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. 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-sigs/prow repository. |
|
Thanks! Would you mind adding unit tests? /ok-to-test |
providers/gce/gce_instances.go: IPv6 Address short notation is treated differently by cluster components. Canonicalize the addresses to ensure a consistent comparison.
Note: The tests are generated by Claude.
|
@hdp617 thank you, it should be updated to include tests now. |
|
@barbacbd: The following tests 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. |
|
this can create controller hotloops, we got bit by this in kubernetes multiple times , and most of the time is a bug in the client rather than in the server side. I do not have access to the bug but I want to understand better this problem and why this solution. /hold |
|
@aojea: GitHub didn't allow me to assign the following users: marqc. Note that only kubernetes members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. 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-sigs/prow repository. |
@aojea Indeed, we came across this "problem" when one of openshift cluster components assumes the node IPv6 addresses to be in canonical format. In our case, the We should probably best fix it there. But, looking at |
hmm, just as I wrote this, I saw Though, do you know if there is/should-be a standard or enforced way for this at all? |
server side should not workaround clients problems, client write A it should expect to read A not f(A) ... kubernetes has this canonicalize hook on the apiserver, and it is not used because the few apis that used it ended in hotloop problems like the one you are describing, |
|
Closed in favor of openshift/cluster-etcd-operator#1577. Rather than potentially upload a breaking change, we make the change on our "client" side. |
Canonicalize the IPv6 Addresses when they exist.
providers/gce/gce_instances.go:
IPv6 Address short notation is treated differently by cluster components. Canonicalize the addresses to ensure
a consistent comparison.
Tests are created with Claude and updated by @barbacbd.
This addresses OCPBUGS-79354.