This article resolves port misconfiguration 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.
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 laterThe workflow-manager.log file is located at:
C:\ProgramData\VMware\vCenterServer\logs\workflow\/var/log/vmware/workflow/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:51.586-05:00 verbose vpxd[29952] [Originator@6876 sub=Default opID=1354c09e-AC-7f] [VpxVmomi] Invoking [acquire] on [vim.modularity.StateLockManager:StatelockManager] session [xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx(xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)]
2016-12-29T10:23:51.586-05:00 info vpxd[07500] [Originator@6876 sub=vpxLro opID=1354c09e-AC-7f] [VpxLRO] -- BEGIN task-internal-23869691 -- StatelockManager -- vim.modularity.StateLockManager.acquire -- xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx(xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
2016-12-29T10:23:51.586-05:00 verbose vpxd[07500] [Originator@6876 sub=vpxdStateLockManager opID=1354c09e-AC-7f] Acquire: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx vim.VirtualMachine:vm-11xxx
2016-12-29T10:23:51.586-05:00 verbose vpxd[07500] [Originator@6876 sub=vpxdStateLockManager opID=1354c09e-AC-7f] Failed to acquire lock for requestID: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, moID vm-11xxx. Registering callbackAnd
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 itFor more information on the logging locations in vCenter Server, see Location of VMware vCenter Server 6.0 log files (2110014).
VMware vCenter Server Appliance 6.0.x
VMware vCenter Server 6.0.x
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:
C:\ProgramData\VMware\VMware VirtualCenter\/etc/vmware-vpx/Add these entries to the vpxd.cfg file:
<vpxd>
....
....
<stateLockManager>
<callbackUrl>localhost:Custom_Port</callbackUrl>
</stateLockManager>
....
....
</vpxd>Restart the vCenter Server Service. For more information, see Stop, Start or Restart Services on vCenter Server 7.x/8.x.
To increase logging on the Workflow Manager:
Open the workflow.log4j.properties file in a plain text editor:
C:\Program Files\VMware\vCenter Server\workflow\conf\/etc/vmware/vmware-vpx-workflow/conf/Edit these lines setting them to DEBUG:
log4j.rootCategory
log4j.appender.console.Threshold
log4j.logger.com.vmware.vim.workflow
log4j.logger.com.vmware.vim.workflow.startupFor example:
log4j.rootCategory=DEBUG,Rolling
log4j.appender.console.Threshold=DEBUG
log4j.logger.com.vmware.vim.workflow=DEBUG
log4j.logger.com.vmware.vim.workflow.startup=DEBUG,StartupTo increase logging for the VMware VirtualCenter Server service, see Increasing VMware vCenter Server and VMware ESX/ESXi logging levels (1004795).