Attaching an NSX Federation Segment to a Stretched Tier-1 Gateway Fails with Error 500335
search cancel

Attaching an NSX Federation Segment to a Stretched Tier-1 Gateway Fails with Error 500335

book

Article ID: 462733

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

Error: Span [<site-1-uuid>, <site-2-uuid>] of /global-infra/segments/<segment-uuid> must be a subset of span [<site-2-uuid>] of Domain /global-infra/domains/<single-site-domain-name>. Domain includes either nested groups or groups containing segment/segment ports having span [<site-1-uuid>, <site-2-uuid>] (Error code: 500335)

Environment

VMware NSX (NSX Federation)

Cause

The segment or one of its segment ports is a direct or nested member of a Security Group scoped to a single-site Domain (<single-site-domain-name>), which conflicts with the multi-site span inherited from the stretched Tier-1 gateway.

Resolution

 

  • RESOLUTION

    1. Identify Referencing Security Groups:

      • In the NSX Global Manager UI, navigate to Networking > Segments, locate the affected segment, and select Where Used (or navigate to Inventory > Groups and filter by the single-site Region/Domain listed in the error message).

      • Alternatively, query the Global Manager Policy API to identify all Security Groups under the single-site Domain referencing the segment or its segment ports:

         
        curl -k -u admin -X GET "https://<REDACTED_HOSTNAME>/global-manager/api/v1/global-infra/domains/<single-site-domain-name>/groups" | grep -B 5 -A 15 "<segment-uuid>"
        
    2. Evaluate Group Scope and Firewall Dependencies:

      • Determine whether the identified Security Group(s) are used in Distributed Firewall (DFW) or Gateway Firewall rules that must apply across all sites in the stretched Tier-1 span or remain restricted to the single site.

    3. Update Group Membership or Domain Scope:

      • Option A (Migrate the Security Group to a Multi-Site or Global Domain): Recreate the Security Group in the Global domain (or a multi-site Region domain covering all locations in the stretched Tier-1 span), update any dependent firewall rules to reference the new group, and remove the segment/segment ports from the original single-site Security Group.

      • Option B (Remove Direct Segment or Segment Port Membership): If the single-site Security Group does not require direct Segment or Segment Port membership (for example, if workloads can be grouped dynamically using VM tags or IP sets), remove the segment and segment ports from the group's membership criteria.

    4. Re-attempt the Tier-1 Gateway Change:

      • After verifying that no Security Group in the single-site Domain directly or indirectly references the segment or its segment ports, change the segment's connectivity path to the stretched Tier-1 gateway and save the configuration.

 

Additional Information