Unable to remove LAGG from vCenter, fails with error: "The resource 'LAGG##' is in use. Uplink or Link Aggregation group name LAGG## is in use by the teaming policy defined at NSX"
search cancel

Unable to remove LAGG from vCenter, fails with error: "The resource 'LAGG##' is in use. Uplink or Link Aggregation group name LAGG## is in use by the teaming policy defined at NSX"

book

Article ID: 446685

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • Attempting to delete an unused Link Aggregation Group (LAGG) in vCenter fails.
  • The following error appears in vCenter: The resource 'LAGG##' is in use. Uplink or Link Aggregation group name LAGG## is in use by the teaming policy defined at NSX.
  • The NSX UI displays the following exact error message when tried to update the uplink profile as the LAGG is still actively in use by at least one transport node: Error: Cannot update UplinkHostSwitchProfile to remove uplink/s, as one or more Uplink is in use at least by TransportNode. (Error code: 8508) 
  • Transport node status shows as Degraded with interfaces in a DOWN state.

     

  • VMware Cloud Foundation (VCF) upgrade pre-checks fail with message: Preparing hosts is pending

     

Environment

  • VMware NSX 9.x
  • VMware Cloud Foundation (VCF) 
  • VMware vCenter Server

Cause

The applied NSX Uplink Profile contains a teaming policy referencing the LAGG. This creates a configuration dependency that blocks vCenter from deleting the object until the reference is removed from the NSX desired state.

Resolution

    1. Log in to NSX Manager.
    2. Create a new NSX Uplink Profile excluding the unused LAGG from the teaming policy.
    3. Apply the new Uplink Profile to the impacted cluster or transport nodes.
    4. Remediate the configuration from the cluster desired state via the vCenter Plugin (VCP) to ensure NSX no longer references the LAGG.
    5. Delete the LAGG configuration from vCenter.
    6. Run upgrade pre-checks.

Additional Information

NSX will not prepare ESX hosts in a VCF environment