-
Notifications
You must be signed in to change notification settings - Fork 560
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
investigate what happens when a machine with a duplicate name of an existing machine is created in a different namespace #808
Comments
I don't expect there to be issues as long as they do not also share the same "cluster" name. That said, we currently do not prevent multiple "clusters" existing in different namespaces, however that would definitely cause issues today. |
This will be a problem based on how we, currently, look if a machine exists. Specifically, when we look for instances by tags. https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/release-0.3/pkg/cloud/aws/services/ec2/instances.go#L66 |
I'm curious why we need to query for an instance by tags if we have instance ID? |
We query by tags only when we don't find the instanceID But when there is a naming conflict, I think, we'll end up w/ 2 machine objects being liked to the same instance ID. |
Right, but why? 😄 IMHO, if a |
@ncdc The reason for the check is in case we create the instance but we are not able to update the Machine object for some reason. |
Ok, that's fair. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/lifecycle frozen |
/help |
@randomvariable: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In 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/test-infra repository. |
#969 seems to answer this question, is this issue still relevant? |
thanks @MarcusNoble . /close Going to take to SIG Cloud Provider for further discussion. |
@randomvariable: Closing this issue. In 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/test-infra repository. |
/kind bug
I think this is a bug and this issue is mostly here to remind me to look into this at some point and flesh out the actual bug details or close if it's not an issue.
When two machines share a name but not a namespace, does everything still work as expected?
The text was updated successfully, but these errors were encountered: