-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Report Hostname node address for vsphere #67922
Conversation
/cc @abrarshivani @BaluDontu @divyenpatel @imkin @kerneltime @luomiao @frapposelli @dougm apologies for the mass cc, not sure who is best positioned to review this. this is a follow up to #65594 making cloud providers authoritative for the node addresses they report, and updates vsphere to report the HostName address it has for the local kubelet to preserve pre-1.12 behavior. |
/retest |
/milestone v1.12 |
With 1.9 latest code base -
I have checked vsphere cloud provider code on the master branch, I see no difference for the function on the master branch build (
Can you point to the code in kubernetes master branch which caused this regression? |
See the description in #67714 Prior to 1.12, the addresses reported by the cloud provider were being augmented with the locally detected hostname by the kubelet. This is not desirable for cloud providers that need to verify reported addresses against metadata. Moving hostname address reporting into the cloud provider implementation lets each one decide how it will determine the hostname address to report, and lets vsphere continue to report hostnames the way it did in previous releases |
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: divyenpatel, liggitt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md. |
@liggitt this issue failed test in cross-cloud CI and also a conformance tests CI for vSphere, crosscloudci/crosscloudci#65, i saw your pull while submitting a fix, thanks for the fix, my fix is the same, so i just create another pull request to submit the test part, #68017 thanks |
as in pull kubernetes#67922 has modify vsphere cloud provider to report node hostname, this patch is to add the test for it. also fix an issue at InstanceID(), it suppose to return cloudprovider.InstanceNotFound when vm not found, after the fix, test TestInstance() can pass
Automatic merge from submit-queue (batch tested with PRs 65566, 67959, 68029, 68017, 67263). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md. add test to verify vsphere cloud provider report node hostname **What this PR does / why we need it**: as in pull #67922 has modify vsphere cloud provider to report node hostname, this patch is to add the test for it. also fix an issue at InstanceID(), it suppose to return cloudprovider.InstanceNotFound when vm not found, but it did double error type translation with a retry() logic, after removing the retry() (which is not necessary), the logic is simpler, and easier to understand how double translation happened, after the fix, test TestInstance() can pass **Which issue(s) this PR fixes** : Fixes #67714 **Special notes for your reviewer**: as in the process of create pull to fix crosscloudci/crosscloudci#65, i saw #67922 already merged, so this pull is just to submit the test part. **Release note**: ```release-note none ``` /cc @abrarshivani @BaluDontu @divyenpatel @imkin @kerneltime @luomiao @frapposelli @dougm @liggitt /sig cloudprovider
xref #67714