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

External NAT Duplicate IPs #1357

Open
wynner opened this issue May 8, 2022 · 2 comments
Open

External NAT Duplicate IPs #1357

wynner opened this issue May 8, 2022 · 2 comments
Labels

Comments

@wynner
Copy link

wynner commented May 8, 2022

Describe the bug

When deploying k8s clusters via cli in close succession the External NAT IP used on the edge gateway (T1) can be assigned to two clusters at the same time. This leads to one or both clusters failing on deployment.

CSE needs to make sure that the DNAT IP claimed for a K8s cluster deployment is applied for the first cluster before an external IP for the second cluster is assigned.

Reproduction steps

Run cli command for the first cluster (vcd cse cluster apply cluster-tkg-1.21.yaml) followed within seconds by the second command (vcd cse cluster apply cluster-tkg-1.22.yaml)

It will not reproduce 100% however it only takes a couple of attempts to demonstrate the issue.

Expected behavior

Each K8s Cluster receives and consumes a unique External IP on the T1 edge gateway for the purposes of exposing the Cluster Master via DNAT.

Additional context

Please contact me on internal VMware email/slack if required to explain further.

@wynner wynner added the bug label May 8, 2022
@lzichong
Copy link

lzichong commented May 9, 2022

Hi @wynner, thanks for bringing this problem to our attention. The current suggested workaround is to allow the first cluster's control plane come up before attempting to deploy the second cluster. We suggest allowing at least 1 minute in between deployments to help avoid this problem.

@wynner
Copy link
Author

wynner commented May 24, 2022

Thanks. I'm doing this however I think you may agree this is something that needs to be looked at.
FYI... The version I'm running is CSE 3.1.3 and VCD 10.3.3 with the latest templates for native and TKGm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants