Symptoms:
- You're running NSX 3.x
- You're attempting to preform a migration from N-VDS to VDS
- One or more of the ESXi hosts to be migrated are configured to have a management vmkernel other than vmk0
- When you run the command esxcfg-vmknic -l you see vmk1 being used as management interface.
vmk1 73eff72a-xxxx-xxxx-xxxx-116740613ba4 IPv4 <Management-IPv4> <net-mask> <Broadcast> <MAC-addr-01> 1500 65535 true STATIC defaultTcpipStack
vmk1 73eff72a-xxxx-xxxx-xxxx-116740613ba4 IPv6 <Management-IPv6> <net-mask> <MAC-addr-01> 1500 65535 true STATIC, PREFERRED defaultTcpipStack
vmk0 9a7e4e1b-xxxx-xxxx-xxxx-8a8397beff78 IPv4 <Different-IPv4> <net-mask> <Broadcast> <MAC-addr-02> 1500 65535 true STATIC defaultTcpipStack
vmk0 9a7e4e1b-xxxx-xxxx-xxxx-8a8397beff78 IPv6 <Different-IPv4> <net-mask> <MAC-addr-02> 1500 65535 true STATIC, PREFERRED defaultTcpipStack
- You may observe the following log entries:
/var/log/nsx-syslog.log
yyyy-mm-ddThh:mm:ss nsx-opsagent[2451059]: NSX 2451059 - [nsx@6876 comp="nsx-esx" subcomp="opsagent" s2comp="nsxa" tid="2451320" level="ERROR" errorCode="MPA42018"] [MigrateToVSS] MigrateOutofLS(<uuid>) failed: [socket read failed]
/var/run/log/nsxaVim.log
yyyy-mm-ddThh:mm:ss nsxaVim: [4437820]: ERROR Server: got Exception: Traceback (most recent call last): File "/usr/lib64/vmware/nsx-opsagent/pyvim/nsxa/nsxaVim.py", line 3946, in Server result = ProcessCommand(data.decode('utf-8')) File "/usr/lib64/vmware/nsx-opsagent/pyvim/nsxa/nsxaVim.py", line 3704, in ProcessCommand return hostConfig.MigrateToVSS(rootFolder, networkSystem, dvsManager, logger, cmd[13:-1]) File "/usr/lib64/vmware/nsx-opsagent/pyvim/nsxa/hostConfig.py", line 775, in MigrateToVSS status = MigrateToVSSInt(rootFolder, networkSystem, dvsManager, dvsUuid, File "/usr/lib64/vmware/nsx-opsagent/pyvim/nsxa/hostConfig.py", line 1166, in MigrateToVSSInt proxySwitchInfo = MigrateToProxySwitch(networkSystem, dvsManager, vnics, portgroups, File "/usr/lib64/vmware/nsx-opsagent/pyvim/nsxa/hostConfig.py", line 2572, in MigrateToProxySwitch error, vmksMigrate2AnyPnic = AssignPnic2UplinkForManagementVmksMigrating2AnyPnic( File "/usr/lib64/vmware/nsx-opsagent/pyvim/nsxa/hostConfig.py", line 330
...
yyyy-mm-ddThh:mm:ss nsxaVim: 0, in AssignPnic2UplinkForManagementVmksMigrating2AnyPnic port = GetFreeUplinkPortByUplinkKeyAndMarkAsInUse(dvsPortsInfo, minUplink.name) File "/usr/lib64/vmware/nsx-opsagent/pyvim/nsxa/hostConfig.py", line 2267, in GetFreeUplinkPortByUplinkKeyAndMarkAsInUse dvsPortsInfo.uplinksFree.remove(port.name) KeyError: 'uplink-1'^@