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

[terraform-ibm-landing-zone-vsi] Unable to create multiple VSIs per subnet due to VNI name not being unique #750

Closed
ocofaigh opened this issue Nov 18, 2024 · 2 comments
Assignees

Comments

@ocofaigh
Copy link
Member

Reported by consumer:

While working with 4.3.0 version of landing-zone-vsi, I understand we create VNI for every VSI by default. And I saw the created VNI name is just based on the subnet name. So if I am creating two VSI's under the same subnet, on the second VNI creation I am getting this issue:

╷
│ Error: CreateVirtualNetworkInterfaceWithContext failed Provided Name (nprdpvn-hpc-bastion-subnet-0-vni) is not unique
│ {
│   "StatusCode": 409,

In my opinion, VNI names should contain something other than subnet names so that they can be unique for same subnet as well.

@ocofaigh
Copy link
Member Author

Update:

The error isn't due to using more than 1 vsi per subnet, that works.
In this specific case we have two different module block using the same subnets, so the vsi map created will have the same key and the same vni name.

@Aashiq-J
Copy link
Member

PR merged. Closing issue.

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

No branches or pull requests

3 participants