/var/run/log/nsx-syslog.log on the destination ESXi host:<timesatmp> nsx-opsagent[pid]: NSX [pid] - [nsx@6876 comp="nsx-esx" subcomp="opsagent" s2comp="nsxa" tid="<tid>" level="ERROR" errorCode="MPA41511"] [ProcessReceiveMessages] VIF response returned operation failure: The requested object : LogicalSwitch/<LogicalSwitch_Id> could not be found. Object identifiers are case sensitive.
<timesatmp> nsx-opsagent[pid]: NSX [pid] - [nsx@6876 comp="nsx-esx" subcomp="opsagent" s2comp="nsxa" tid="<tid>" level="INFO"] [MP_AddVnicAttachment] RPC call [<Id>] to NSX management plane completed in [0] sec
<timesatmp> nsx-opsagent[pid]: NSX [pid] - [nsx@6876 comp="nsx-esx" subcomp="opsagent" s2comp="nsxa" tid="<tid>" level="ERROR" errorCode="MPA42003"] [DoMpVifAttachRpc] MP_AddVnicAttachment() failed: The requested object : LogicalSwitch/<LogicalSwitch_Id> could not be found. Object identifiers are case sensitive.
/var/run/log/hostd.log on the destination ESXi host:<timestamp> info hostd[pid] [Originator@6876 sub=Hostsvc opID=<opID> user=vpxuser] AttachPort requested for vif: [<Vif_id>], network: [<LogicalSwitch_Id>:nsx.LogicalSwitch], vmx: [<Vmx_File_Path>]
<timestamp> error hostd[pid] [Originator@6876 sub=Vmsvc.vm:<Vmx_File_Path opID=<opID> user=vpxuser] ProcessOpaqueNetChanges: Failed to attach all ports
<timestamp> info hostd[pid] [Originator@6876 sub=Solo.Vmomi opID=<opID> user=vpxuser] Throw vim.fault.PlatformConfigFault
<timestamp> info hostd[pid] [Originator@6876 sub=Solo.Vmomi opID=<opID> user=vpxuser] Result:
--> (vim.fault.PlatformConfigFault) {
--> text = "Failed to attach all ports",
--> msg = "",
--> }
GET /api/v1/logical-switches/<LogicalSwitch_Id>
{
"httpStatus" : "NOT_FOUND",
"error_code" : 600,
"module_name" : "common-services",
"error_message" : "The requested object : LogicalSwitch/<LogicalSwitch_Id> could not be found. Object identifiers are case sensitive."
}
VMware NSX
This issue occurs because the Virtual Machine is connected to an NSX Segment that has already been deleted from the NSX Manager for some reason.
Please perform the following steps to ensure a successful vMotion.