POST https://<nsx-mgr>/api/v1/transport-nodes/<tn-id>?action=migrate_to_vds
Host configuration: MigrateOutofLS(## ## ## ## 13 b4 42 2b-b5 6d ac d2 xx xx xx xx) failed: [Uplink [bb273-lag-0] is not found in target DVS [## ## ## ## 60 02 4c-2d 6c f6 aa ## ## ## ##]]; LogicalSwitch full-sync: LogicalSwitch full-sync realization query skipped.
/var/log/proton/nsxapi.log
shows:ERROR MigrateToCvdsTaskExecutor18 MigrateToCvdsTask 71579 FABRIC [nsx@6876 comp="nsx-manager" errorCode="PM250050" level="ERROR" subcomp="manager"] MigrateToCvdsTask on host [########-ab22-4890-9c0c-############] failed. Current stage TN_UPDATE_MIGRATE_WAIT, Aborting all remaining stages.
...
ERROR L2HostConfigTaskExecutor5 TransportNodeAsyncUtils 71579 FABRIC [nsx@6876 comp="nsx-manager" errorCode="MP8817" level="ERROR" subcomp="manager"] Some error occured when configuring host switch on host: MigrateOutofLS(## ## ## ## 44 8e 4e ca-a4 b5 eb 20 ## ## ## ##) failed: [socket read failed];
INFO L2HostConfigTaskExecutor5 TransportNodeAsyncServiceImpl 71579 FABRIC [nsx@6876 comp="nsx-manager" level="INFO" subcomp="manager"] Set auto-retry interval to max after host ########-ab22-4890-9c0c-############ reported vmk/pnic migration failure 2 times
ERROR L2HostConfigTaskExecutor5 TransportNodeAsyncServiceImpl 71579 FABRIC [nsx@6876 comp="nsx-manager" errorCode="MP8700" level="ERROR" subcomp="manager"] MigrateOutofLS(## ## ## ## 44 8e 4e ca-a4 b5 eb ## ## ## ##) failed: [socket read failed];
com.vmware.nsx.management.switching.common.exceptions.SwitchingException: null
...
/var/run/log/nsx-syslog.log
:nsx-opsagent[2101330]: NSX 2101330 - [nsx@6876 comp="nsx-esx" subcomp="opsagent" s2comp="nsxa" tid="2102040" level="ERROR" errorCode="MPA42061"] [InvokeCommandInternal] Reading reply from socket failed. Restarting python process..
nsx-opsagent[2101330]: NSX 2101330 - [nsx@6876 comp="nsx-esx" subcomp="opsagent" s2comp="nsxa" tid="2102040" level="INFO"] [setNsxaVimNotReady] Updating nsxa health to down on nsxavim shutdown
nsx-opsagent[2101330]: NSX 2101330 - [nsx@6876 comp="nsx-esx" subcomp="opsagent" s2comp="nsxa" tid="2102040" level="ERROR" errorCode="MPA42056"] Command : getVmksInLogicalSwitchesAndVmksOfGivenTypes(management) | Expected reply : ok | Reply : ok|vmk0,########-1d3e-4f53-9408-############,########-1ea0-4297-a072-############,## ## ## ## 44 8e 4e ca-a4 b5 eb 20 ## ## ## ##,########-67f9-4f4c-8ff0-############,management,,|vmk1,########-7284-4fc5-bbdb-############,########-1c66-45ed-a9d4-############,## ## ## ## 44 8e 4e ca-a4 b5 eb 20 ## ## ## ##,########-247f-48c6-88e3-############,,,|
/var/run/log/nsxaVim.log
nsxaVim: [2435427]: INFO MigrateToProxySwitch(## ## ## ## 59 68 27 0a-67 6c 2a 8f ## ## ## ##): created portData with key h-1 and conCookie 2 for vmk1^@
nsxaVim: [2435427]: INFO MigrateToProxySwitch(## ## ## ## 59 68 27 0a-67 6c 2a 8f ## ## ## ##): created portData with key h-2 and conCookie 3 for vmk0^@
nsxaVim: [2435427]: INFO MigrateToProxySwitch vmk2DvpgActiveUplinksMap {'vmk1': ('vmotion_dvs-123456', ['host-lag'], True), 'vmk0': ('management_dvs-123456', ['host-lag'], True)}^@
nsxaVim: [2435427]: INFO MigrateToProxySwitch: vmksMigrate2AnyPnic ['vmk1', 'vmk0']^@
nsxaVim: [2435427]: ERROR Server: got Exception: Traceback (most recent call last): File "/usr/lib64/vmware/nsx-opsagent/pyvim/nsxa/nsxaVim.py", line 3996,
...
AddToActiveUplinkKey2VmksMap uplink_key = dvsPortsInfo.uplinkPortName2KeyMap[uplinkname] KeyError: 'host-lag'^@
This issue is resolved in VMware NSX 4.2.0
Workaround:
To workaround this issue, you can migrate the vmks to a standard vSwitch, do the NVDS to CVDS migration and then migrate the vmks back to the CVDS.
Note: The vSwitch will need to have at least 1 vmnic on it. If you do not have a vSwitch, please create it, add a vmnic and follow the below steps.
For an overview of the steps below, please review the vSphere Networking Guide.
Stage 1: Migrate the vmks from the NVDS to the vSwitch one by one with the below steps.
Stage 2: Retrigger migration for host with below steps
POST https://<nsx_manager_ip>/api/v1/nvds-urt?action=cleanup
POST https://<nsx_manager_ip>/api/v1/nvds-urt/precheck
GET https://<nsx_manager_ip>/api/v1/nvds-urt/topology/<precheck_id>
vds_name
before triggering apply topology.POST https://<nsx_manager_ip>/api/v1/nvds-urt/topology?action=apply
POST https://<nsx_manager_ip>/api/v1/transport-nodes/<tn_id>?action=migrate_to_vds
GET https://{{server_ip}}/api/v1/nvds-urt/status-summary/{{Precheck_id}}
Stage 3: Migrate the vmks and vmnics from the vSwitch to CVDS switch, in order to again use the lag uplinks, with the below steps.
Note: In the below example, the names of vmks, portgroup, CVDS and numbers on vmnics may be different in your setup.
As the NVDS migration is complete, any vmnics used by the NVDS will now be free, as the NVDS has been removed.
Now migrate vmks from vswitch to CVDS switch with below steps: