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

Fix CSE cluster creation when using VDC Groups #674

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

adambarreiro
Copy link
Collaborator

@adambarreiro adambarreiro commented May 10, 2024

Related to vmware/terraform-provider-vcd#1258, fixing it in PR vmware/terraform-provider-vcd#1266

The filter to retrieve the networks with the target VDC was wrong, as it was using ownerRef.id instead of orgVdc.id:

  • UI plugin uses orgVdc.id and _context==includeAccessible so this patch mimics this logic here
  • The problem was, when the network is from an Edge Gateway that belongs to a VDC Group, the ownerRef.id is not a VDC anymore (urn:vcloud:vdc), but a VDC Group (urn:vcloud:vdcGroup). Hence the filter returned 0 networks with the desired VDC ID.

CSE tests passed in VCD 10.5.1 with CSE 4.2.1

Signed-off-by: abarreiro <abarreiro@vmware.com>
#
Signed-off-by: abarreiro <abarreiro@vmware.com>
@adambarreiro adambarreiro marked this pull request as ready for review May 13, 2024 15:12
@adambarreiro adambarreiro changed the title Fix CSE cluster creation in VDC Groups Fix CSE cluster creation when using VDC Groups May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants