Error message related to VDS and network Segments
search cancel

Error message related to VDS and network Segments

book

Article ID: 417065

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

Error message when attempting to connect VMs to NSX segments.

  • When attempting to power on new Virtual Machines (VMs) or relocate existing VMs in a VMware NSX-T environment,  the operation fails.
  • When  vMotion is attempted it fails with error: A general system error occurred: Undeclared fault Cause: An error occurred during host configuration: Failed to attach all ports.
  • When attempting to reconfigure/migrate VMs you may also observe: An error occured during host configuration: Operation failed, diagnostics report: Failed to add DVPort in vmkernel: status(bad=006)=Limit exceeded



Note: The preceding vCenter excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.

Environment

NSX 4.2.2.1

Cause

This issue occurs due to an accumulation of stale NSX-backed Distributed Virtual Switch (DVS) ports on ESXi hosts. 

When VMs are frequently created and deleted, NSX-T is expected to clear associated logical ports. However, the resync.py script, which is responsible for the periodic cleanup of these stale dvPorts, fails to execute correctly.

Resolution

The resolution in this environment was to reboot the ESXi hosts.

Additional Information

For versions prior to 4.2.x refer to:

VM reconfiguration and vmotion fails with error "A general system error occurred: Undeclared fault Cause: An error occurred during host configuration: Failed to attach all ports."