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

Set InternalIP machine status.addresses #947

Open
andrewsykim opened this issue Jul 1, 2020 · 11 comments
Open

Set InternalIP machine status.addresses #947

andrewsykim opened this issue Jul 1, 2020 · 11 comments
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@andrewsykim
Copy link
Member

/kind feature

Describe the solution you'd like
Almost always a VM will have an address internal to the datacenter. In the case where we don't know if an address is external or internal to the datacenter, we should assume it is internal and set the type as InternalIP. Today we always set it as an ExternalIP

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Cluster-api-provider-vsphere version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):
@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Jul 1, 2020
@yastij yastij added kind/bug Categorizes issue or PR as related to a bug. and removed kind/feature Categorizes issue or PR as related to a new feature. labels Jul 23, 2020
@yastij yastij modified the milestones: v0.7.0, Next Jul 23, 2020
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 22, 2020
@andrewsykim
Copy link
Member Author

/remove-lifecycle stale

This is still pretty important from my perspective, in general we shouldn't label private addresses spaces as ExternalIP. It's also not consistent with how we address node addresses.

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 22, 2020
@yastij
Copy link
Member

yastij commented Oct 26, 2020

@andrewsykim - Agreed. As this is a breaking changing my thinking was to include this in the set of breaking changes of v1a4

@yastij yastij modified the milestones: Next, v0.8.0 Oct 26, 2020
@yastij yastij added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. labels Oct 26, 2020
@andrewsykim
Copy link
Member Author

As this is a breaking changing my thinking was to include this in the set of breaking changes of v1a4.

It's only a breaking change if we stop setting ExternalIP. I don't think it would be a breaking change to start setting InternalIP now though?

@yastij
Copy link
Member

yastij commented Oct 26, 2020

The interesting bit is that we don't have a way to distinguish between InternalIP and ExternalIP. Are you suggesting to set both ?

@andrewsykim
Copy link
Member Author

If we can't distinguish between the two, we should set the type based on what is most common -- which from my understanding is InternalIP, since almost always a VM's machine IP is internal to a vCenter. In an ideal world we would just set InternalIP, but removing ExternalIP is a breaking change.

My suggestion would be to set both InternalIP and ExternalIP for the remainder of v1alpha3 and remove ExternalIP starting v1alpha4. Or even better, set the type based on some well known heuristic like checking if the address is in one of the well-known private address spaces.

@yastij
Copy link
Member

yastij commented Oct 27, 2020

that makes sense wrt timelines

@srm09 srm09 modified the milestones: v0.8.0, Next Jan 30, 2022
@srm09
Copy link
Contributor

srm09 commented Jan 30, 2022

@yastij This still seems to be the case for Machine addresses, something that we should look into again?
/help

@k8s-ci-robot
Copy link
Contributor

@srm09:
This request has been marked as needing help from a contributor.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

@yastij This still seems to be the case for Machine addresses, something that we should look into again?
/help

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 the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Jan 30, 2022
@flyik
Copy link

flyik commented Jun 6, 2022

Any updates? I can implement it if thoughts about it are still the same

@sbueringer sbueringer removed this from the Next milestone Aug 3, 2023
CharlieR-o-o-t pushed a commit to CharlieR-o-o-t/cluster-api-provider-vsphere that referenced this issue Mar 6, 2025
CharlieR-o-o-t added a commit to CharlieR-o-o-t/cluster-api-provider-vsphere that referenced this issue Mar 6, 2025
@CharlieR-o-o-t
Copy link

Have no idea why provider always sets ExternalIP , this is incorrect behavior.
Have created fix PR: #3379

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

No branches or pull requests

8 participants