Virtual machine Power on requests from vRealize Operations manager fail
book
Article ID: 301405
calendar_today
Updated On:
Products
VMware Aria SuiteVMware vCenter Server
Issue/Introduction
This article resolves port miss-configuration when using a custom port for the VMware vCenter Workflow Manager.
Symptoms:
Note: The log entries referenced below were found when logging was set to debug or verbose. For information on changing the logging level see the Additional Information section.
Powering on a virtual machine from vRealize Operation Manager fails.
In the workflow-manager.log file, there are entries similar to:
2016-12-29T10:23:51.451-05:00 [pool-9-thread-2 DEBUG opID=] [WorkflowBodyHandlerImpl] -- Creating proxy object for moId vm-11xxx 2016-12-29T10:23:51.454-05:00 [pool-5-thread-2 DEBUG opID=] [TaskInvoker] -- Issuing PowerOnVM_Task on ManagedObjectReference: type = VirtualMachine, value = vm-11xxx, serverGuid = null 2016-12-29T10:23:51.454-05:00 [pool-5-thread-2 DEBUG opID=1354c09e-AC] [WorkflowImpl] -- Updating pre-specified key parentTaskMoId 2016-12-29T10:23:51.454-05:00 [pool-5-thread-2 INFO opID=1354c09e-AC] [WorkflowImpl] -- BEGIN executing WSDL method PowerOnVM_Task on vm-11xxx … … 2016-12-29T10:23:51.581-05:00 [workerThreadpool-14 DEBUG opID=1354c09e-AC] [WorkflowImpl] -- Processing results for step VmLockingHandler-QueryLockRequirements in PowerOnVM_Task 2016-12-29T10:23:51.581-05:00 [workerThreadpool-14 DEBUG opID=1354c09e-AC] [WorkflowImpl] -- Finished step: VmLockingHandler-QueryLockRequirements 2016-12-29T10:23:51.581-05:00 [workerThreadpool-14 DEBUG opID=1354c09e-AC] [WorkflowImpl] -- Running step: VmLockingHandler-AcquireLock 2016-12-29T10:23:51.581-05:00 [workerThreadpool-14 DEBUG opID=1354c09e-AC] [LockingStepImpl] -- Making lock acquire request for requestId xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 2016-12-29T10:23:51.581-05:00 [workerThreadpool-14 DEBUG opID=1354c09e-AC] [SchedulerImpl] -- Acquiring locks for xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 2016-12-29T10:23:51.585-05:00 [VlsiClientPool-14 DEBUG opID=1354c09e-AC] [wire] -- >> "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header><stepContribution xsi:type="string">5</stepContribution><parentTask xsi:type="string">task-399060</parentTask><isWorkflowRedirect xsi:type="string">true</isWorkflowRedirect><workflow_user_session xsi:type="string">xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</workflow_user_session><operationID xsi:type="string">1354c09e-AC</operationID></soapenv:Header><soapenv:Body><AcquireLockSLM xmlns="urn:internalvim25" xmlns:internalvim25="urn:internalvim25"><_this type="StateLockManager">StatelockManager</_this><requestId>xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</requestId><spec><object serverguid="XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" type="VirtualMachine">vm-11xxx</object><lockType>exclusive</lockType></spec></AcquireLockSLM></soapenv:Body></soapenv:Envelope>" … … 2016-12-29T10:23:51.589-05:00 [VlsiClientPool-14 DEBUG opID=1354c09e-AC] [SchedulerImpl] -- Lockacquire returned for xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 2016-12-29T10:23:51.589-05:00 [VlsiClientPool-14 ERROR opID=1354c09e-AC] [SchedulerImpl] -- Locks were not granted for xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. Will retry later
The workflow-manager.log file is located at:
Windows installed vCenter Server - C:\ProgramData\VMware\vCenterServer\logs\workflow\
vCenter Server Appliance - /var/log/vmware/workflow/
After the above entries in the workflow-manager.log file there are no further retry events listed.
In the vpxd.log file, there are entries similar to:
2016-12-29T10:23:53.722-05:00 error vpxd[10220] [Originator@6876 sub=HttpConnectionPool-000001] [ConnectComplete] Connect failed to <cs p:000000002bac7660, TCP:localhost:8088>; cnx: (null), error: class Vmacore::SystemException(No connection could be made because the target machine actively refused it)
2016-12-29T10:23:53.738-05:00 warning vpxd[31304] [Originator@6876 sub=vpxdStateLockManager opID=2cf5c62f] Ignoring exception while invoking LocksReleased: No connection could be made because the target machine actively refused it
VMware vCenter Server Appliance 6.0.x VMware vCenter Server 6.0.x
Cause
This issue occurs when the VMware vCenter Workflow Manager service is configured to use custom ports (Default ports used by the service are 8088 and 19999).
Resolution
To resolve this issue, update the vpxd.cfg file on vCenter Server to use custom ports when communicating with the VMware Workflow Manager:
Open the vpxd.cfg file in a plain text editor.
Windows installed vCenter Server - C:\ProgramData\VMware\VMware VirtualCenter\