Appliance operation failed for applianceId <UUID> with error Interconnect Service Workflow interconnectConfigureMA failed. Error: Adding Mobility Agent Host failed. Adding host to DVS <DVS_name> failed. Error : Cannot complete a vSphere Distributed Switch operation for one or more host members./common/logs/admin/app.log within the HCX Manager log bundle:Adding host to DVS failed. <Timestamp> UTC [InterconnectService_SvcThread-59, J:<JID>, , TxId: <TxId>] WARN c.v.v.h.s.i.InterconnectRedeploy- Error of unknown type : java.lang.RuntimeException
<Timestamp> UTC [InterconnectService_SvcThread-54, J:<JID>, , TxId: <TxId>] INFO c.v.v.h.s.i.InitiateApplianceOperation- initiateApplianceOperation Running VERIFY_APPLIANCE_OPERATION in state: <UUID> for applianceId <NAME> applianceName HCX-WAN-IX applianceType {}
<Timestamp> UTC [InterconnectService_SvcThread-54, J:<JID>, , TxId: <TxId>] ERROR c.v.v.h.s.i.InitiateApplianceOperation- InterconnectRedeploy failed, errorCode:null. stacktrace:null, errorMessage:Interconnect Service Workflow interconnectConfigureMA failed. Error: Adding Mobility Agent Host failed. Adding host to DVS <DVS_name> failed. Error : Cannot complete a vSphere Distributed Switch operation for one or more host members.
<Timestamp> UTC [InterconnectService_SvcThread-54, J:<JID>, , TxId: <TxId>] ERROR c.v.v.h.s.i.InitiateApplianceOperation- Failure detected while verifying completion of InterconnectServiceJobs::InterconnectRedeploy. Reason: Interconnect Service Workflow InterconnectRedeploy failed. Error: Interconnect Service Workflow interconnectConfigureMA failed. Error: Adding Mobility Agent Host failed. Adding host to DVS <DVS_name> failed. Error : Cannot complete a vSphere Distributed Switch operation for one or more host members.
java.lang.RuntimeException: Interconnect Service Workflow InterconnectRedeploy failed. Error: Interconnect Service Workflow interconnectConfigureMA failed. Error: Adding Mobility Agent Host failed. Adding host to DVS <DVS_name> failed. Error : Cannot complete a vSphere Distributed Switch operation for one or more host members.
at com.vmware.vchs.hybridity.service.interconnect.AbstractInterconnectJob.getSubflowJobDataArray(AbstractInterconnectJob.java:758)
at com.vmware.vchs.hybridity.service.interconnect.AbstractInterconnectJob.checkComplete(AbstractInterconnectJob.java:2308)
at com.vmware.vchs.hybridity.service.interconnect.InitiateApplianceOperation.handleState(InitiateApplianceOperation.java:143)
at com.vmware.vchs.hybridity.service.interconnect.AbstractInterconnectJob.run(AbstractInterconnectJob.java:217)
at com.vmware.vchs.hybridity.messaging.LoggingJobWrapper.run(LoggingJobWrapper.java:41)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
<Timestamp> UTC [InterconnectService_SvcThread-54, J:<JID>, , TxId: <TxId>] ERROR c.v.v.h.s.i.InitiateApplianceOperation- InterconnectRedeploy failed, errorCode:null. stacktrace:null, errorMessage:Interconnect Service Workflow interconnectConfigureMA failed. Error: Adding Mobility Agent Host failed. Adding host to DVS <DVS_name> failed. Error : Cannot complete a vSphere Distributed Switch operation for one or more host members.
<Timestamp> UTC [InterconnectService_SvcThread-54, J:<JID>, , TxId: <TxId>] ERROR c.v.v.h.s.i.InitiateApplianceOperation- InterconnectRedeploy workflow failed with error Interconnect Service Workflow interconnectConfigureMA failed. Error: Adding Mobility Agent Host failed. Adding host to DVS <DVS_name> failed. Error : Cannot complete a vSphere Distributed Switch operation for one or more host members.
<Timestamp> UTC [FailureDetectionService_EventListener, , , TxId: <TxId>] INFO c.v.v.h.f.FailedJobEventsListener- Received a Failed Job, jobType: InterconnectServiceJobs workflow type: InterconnectRedeploy
<Timestamp> UTC [FailureDetectionService_EventListener, , , TxId: <TxId>] INFO c.v.v.h.f.FailedJobEventsListener- jobAndWorkflowTypesMap :44
<Timestamp> UTC [InterconnectService_SvcThread-58, J:<JID>, , TxId: <TxId>] INFO c.v.v.h.s.i.InitiateApplianceOperation- initiateApplianceOperation Running FAILED in state: <UUID> for applianceId <Name> applianceName HCX-WAN-IX applianceType {}
VMware HCX
There are 2 possible causes.
A Single Compute Profile has multiple cluster selected across multiple datacenters.
DVS switch configuration were changed after deploying the IX appliance.
Caution :- Editing Compute Profiles, Network Profiles, and triggering a Service Mesh Resync are high-impact operations in VMware HCX.
Because the Service Mesh handles active data replication, real-time migrations, and live network extensions, these configuration tasks must be executed with strict caution during an approved maintenance window.
Login to the HCX UI, go to Infrastructure > Interconnect > Network Profiles.
Edit the Network Profile that is mapped to that DVS.
Use the dropdown to re-select the correct new/renamed DVS portgroup from live vCenter inventory. Validate this by matching with the portgroup shown in the vCenter Inventory.
Save the changes.
Sync the Compute Profile
Continue through the wizard without changing settings to re-validate the updated Network Profiles
Ensure that you select the right Network Profile and Correct DVS switch
click Finish.
Re-sync the Service Mesh
Go back to your Service Mesh.
Click on re-sync to ensure that the Service-Mesh is updated with the changes performed in the Network/Compute profiles.
Precautions to be taken before Edit Network Profile
Precautions to be taken while editing Compute Profile
Precautions to be taken before Service Mesh Re-sync/Re-deploy
While modifying the compute/network profile, HCX will flag the Service Mesh as "Out of Sync." Clicking Resync pushes those architectural changes down to the active appliances.
Refer to the documentation below