Remediation of a host fails with the error "failed to remove component nsx-lcp-bundle an error occurred while disabling service nsx-datapath"
search cancel

Remediation of a host fails with the error "failed to remove component nsx-lcp-bundle an error occurred while disabling service nsx-datapath"

book

Article ID: 424469

calendar_today

Updated On:

Products

VMware NSX VMware vSphere ESXi 8.0

Issue/Introduction

  • Unable to remove NSX VIBs on the ESXi host using vLCM 
  • From the UI the following error is observed

Environment

VMware NSX
VMware vSphere 8.0.x

Cause

The remediation of the host failed because the NSX VIBs on the host failed to be uninstalled because there were a number of NSX modules (com.vmware.nsx.kcp, com.vmware.nsx.vdsSecurity and  com.vmware.nsxData.traceflow) that were loaded and enabled on the host which prevented the NSX VIBs from being removed. 

Resolution

This is a known issue impacting VMware NSX.

  1. Confirm using the following command what the modules are enabled: 
    net-dvs - |grep com.vmware.nsx

    Note: You will see output similar to the following:  

    com.vmware.nsx.kcp.enable = true ,      propType = CONFIG
    com.vmware.nsx.vdsSecurity.enabled = true ,     propType = CONFIG
    com.vmware.nsxData.traceflow.enabled = true ,   propType = CONFIG

  2. Obtain the name of the vDS which needs to be modified via the esxcfg-vswitch -l command.

    Note: You will see output similar to the following:

    Switch Name      Num Ports   Used Ports  Configured Ports  MTU     Uplinks
    vSwitch0         8960        1           128               1500

      PortGroup Name                            VLAN ID  Used Ports  Uplinks
      VM Network                                0        0

    DVS Name         Num Ports   Used Ports  Configured Ports  MTU     Uplinks
    NSX_VDS           8960               58               1024                  9000     vmnic8,vmnic9

      DVPort ID                               In Use      Client
      40                                              1           vmnic8
      52                                              1           vmnic9
      1                                               1           vmk1
      7                                               1           vmk2

    Note: NSX_VDS is the name of the vDS to be modified. There might be more than one vDS that needs to be modified.

  3. For each vDS in use by NSX, issue a command similar to the following to disable the active NSX kernel module(s): 

    net-dvs -u com.vmware.nsx.kcp.enable -p hostPropList NSX_VDS

  4.  Repeat Step 3 for any other active NSX kernel modules found in Step 1 on each remaining vDS in use by NSX

  5. Repeat Step 1 to validate that the NSX kernel modules have been disabled.

  6. Attempt to remediate the host again.

  7. Issue  the esxcli software vib list | grep -E 'nsx|vsipfwlib' command to validate that no NSX VIBs are installed on the host. There should be no output.

Additional Information

NSX VIBs are not removed from an ESXi host

NSX Uninstallation fails/stuck on ESX host and VIBs cannot be removed