Error : 'Unable to generate Connection Rules: The select network container ### is not attached to all of the specified host(s)'
search cancel

Error : 'Unable to generate Connection Rules: The select network container ### is not attached to all of the specified host(s)'

book

Article ID: 407479

calendar_today

Updated On:

Products

VMware HCX

Issue/Introduction

Attempts to create or edit a Compute Profile in VMware HCX fail with a validation error regarding network containers.

Symptoms:

  • The following error appears in the HCX Manager UI: 

         

Unable to generate Connection Rules.
The selected network container ###-###-## is not attached to all of the specified host(s) [list of host names]
  • The following error is observed in /common/logs/admin/web.log :
    ERROR c.v.v.h.a.i.ComputeProfileRestController- Basic validation of compute profile failed. Errors: [{"code":"E_INVALID_INPUT","message":"The selected network container <network-container-name> is not attached to all of the specified host(s) [<hostname>."}

Environment

VMware HCX 4.11.x

Cause

During the Compute Profile creation process, HCX performs a validation to confirm that all ESXi hosts within the selected deployment cluster are correctly attached to the virtual switch and have consistent network labels. If a single host is missing the required VLAN or Portgroup, the validation fails.

Resolution

  1. Review the networking inventory objects (port groups/switches) on all hosts in the deployment cluster.
  2. Ensure network labels are consistent across all hosts, especially when using vSphere Standard Switches (vSS).
  3. Add the missing VLANs or consistent Network Labels to the impacted hosts.
  4. Retry the creating the Compute Profile configuration, once completed configure the service mesh

Additional Information

Compute Profile Considerations and Concepts
Create a Compute Profile