Skip to content
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

gce-Instances NodeAddresses: Add check for multiple interface IPs #91162

Merged
merged 1 commit into from
Jun 29, 2020

Conversation

kaivalya97
Copy link
Contributor

@kaivalya97 kaivalya97 commented May 16, 2020

What type of PR is this?
/kind design

What this PR does / why we need it:
The NodeAddresses function only checked for IPs on the default interface. If kubelet is initialized with a non-default interface on a GCE VM, kubectl get nodes does not give an IP.

Which issue(s) this PR fixes:

Fixes #90570

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added kind/design Categorizes issue or PR as related to design. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 16, 2020
@k8s-ci-robot
Copy link
Contributor

Hi @kaivalya97. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added area/cloudprovider sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. release-note-none Denotes a PR that doesn't merit a release note. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels May 16, 2020
@kaivalya97
Copy link
Contributor Author

@cheftako

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 21, 2020
@cheftako
Copy link
Member

cheftako commented Jun 3, 2020

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 3, 2020
@cheftako
Copy link
Member

cheftako commented Jun 3, 2020

/hold #90738 I would like to merge your other PR first.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 3, 2020
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jun 8, 2020
@kaivalya97
Copy link
Contributor Author

/retest

@kaivalya97
Copy link
Contributor Author

@cheftako @andrewsykim Please review and approve

I checked aws.go and even there the NodeAddresses function returns IPs from all NICs

@cheftako
Copy link
Member

/cc @dchen1107 @karan

@cheftako
Copy link
Member

So this particular usage of NodeAddresses() should only be invoked on the Kubelet. That use case is deprecated and should be removed as part of the cloud provider extraction effort. Assuming sig-node has no issue with these changes, I am fine with them but do want to make sure you are aware that the code path which invokes this usage is going away.

@cheftako
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 16, 2020
@cheftako
Copy link
Member

#90738 has merged, will remove hold soon. Would like to make sure dchen1107, karan have not objections.

@kaivalya97
Copy link
Contributor Author

Yes so I have also made changes to nodeAddressesFromInstance() which is called in case the code is not run from kubelet

@cheftako
Copy link
Member

/remove hold

@cheftako
Copy link
Member

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 29, 2020
@cheftako
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cheftako, kaivalya97

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 29, 2020
@kaivalya97
Copy link
Contributor Author

/retest

@k8s-ci-robot k8s-ci-robot merged commit 7942dca into kubernetes:master Jun 29, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.19 milestone Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/cloudprovider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/design Categorizes issue or PR as related to design. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-none Denotes a PR that doesn't merit a release note. sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GCE "baremetal" cluster, worker node IPs not populated when kubelet --node-ip given IP of not-first-NIC
3 participants