VMware vCenter Orchestrator Troubleshooting: Sample workflows are not working

VMware vCenter Orchestrator Troubleshooting-Sample workflows are not working

VMware vCenter Orchestrator
VMware vCenter Orchestrator
VMware vCenter Orchestrator Troubleshooting: Sample workflows are not working

1st 2 images are the screen shot of failed workflow in vCenter

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers
VMware vCenter Orchestrator workflow
VMware vCenter Orchestrator workflow
VMware vCenter Orchestrator workflow - Start Virtual Machine and Wait
VMware vCenter Orchestrator workflow – Start Virtual Machine and Wait

Rest 2 are of failed workflow vCloud Director.

failed workflow vCloud Director
failed workflow vCloud Director
failed workflow - Power on Virtual Machine
failed workflow – Power on Virtual Machine

Installation of vCenter Orchestrator was successful but Sample workflows were not working and we were not able to identify the issue.

Versions: vCenter–4.1 and vCenter plug-in for vCO 1.0 and the vCloud Director 1.0 and vCloud Director plug-in for vCO. 1.2

Workflow Error in vCloud Director
Workflow Error in vCloud Director

Workflow Token Tab was empty; Events tab showed only 2 events 1) created & 2) saved. Inventory for those vCO plug-ins inside the vCO client works fine.

Verify the user which is configured for both plug-ins (it could be the same or not) has the rights to perform the operation of powering on a VM.

If no issue exist with permission misconfiguration then…??/

Check for error messages on the server.log file and it would certainly gives the reasons it is failing.

2011-09-30 17:24:18.149+0530 INFO [Execution] Executing workflow ‘Power On VM’
2011-09-30 17:24:18.274+0530 WARN [WorkflowHandler] Error in execution of workflow ‘Power On VM’
java.lang.NoClassDefFoundError: Could not initialize class com.vmware.vmo.plugin.vix.VixServer
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at ch.dunes.vso.sdk.SDKModuleDescription.defineInScope(SDKModuleDescription.java:453)
at ch.dunes.vso.sdk.ModulesFactory.defineInScope(ModulesFactory.java:409)
at ch.dunes.scripting.jsmodel.Definitions.doDefineModelInScope(Definitions.java:94)
at ch.dunes.scripting.jsmodel.Definitions.defineModelInScope(Definitions.java:48)
at ch.dunes.scripting.server.script.MainScriptingObject.<init>(MainScriptingObject.java:144)
at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.execute(WorkflowHandler.java:183)
at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.run(WorkflowHandler.java:155)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
2011-09-30 17:24:18.289+0530 WARN [WorkflowHandler] Unable to Clean Scripting context
java.lang.NullPointerException
at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.end(WorkflowHandler.java:527)
at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.execute(WorkflowHandler.java:257)
at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.run(WorkflowHandler.java:155)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

So now the Solution is: Disable the VIX plug-in in the web configuration and try again.

How to disable the VIX plug-in?

vCO configuration -> Plugins tab and uncheck that -> Restart the service or the server under the Startup tab -> Do it a couple different times to remove it from my inventory on the vCO client.

I removed the VIX plugin and all is working now.

—————————————————————————

2011-09-30 18:22:43.851+0530 INFO [STDOUT] ============================ VMO server ready ==============================

2011-09-30 18:26:57.281+0530 INFO [LicenseTester] LicenseTester [administrator] –> Login successful

2011-09-30 18:26:57.344+0530 INFO [LicenseTester] This vCenter server is licensed for vCenter Orchestrator Server

2011-09-30 18:27:28.818+0530 WARN [ConfigurationFactory] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Program Files/VMware/Infrastructure/Orchestrator/app-server/server/vmo/lib//ext/ehcache-1.5.0.jar!/ehcache-failsafe.xml

2011-09-30 18:27:28.833+0530 INFO [VCloudCacheManager] Creating cache 5b57889ef05d998795b9bbbb73bb74

2011-09-30 18:27:30.318+0530 INFO [AuthChallengeProcessor] basic authentication scheme selected

2011-09-30 18:28:17.982+0530 INFO [Execution] Executing workflow ‘Power On VM’

2011-09-30 18:28:18.607+0530 INFO [Definitions] Adding mapper : ch.dunes.scripting.server.script.ServerScriptMapper@2805805d

2011-09-30 18:28:18.669+0530 INFO [ServerScriptMapper] Initialize Server Scripting Objects

————————————————————————————————————————————————————

Successful Execution of Workflow in vCenter Orchestrator - Power on VM
Successful Execution of Workflow in vCenter Orchestrator – Power on VM

References:

http://communities.vmware.com/message/1744403#1744403

http://communities.vmware.com/message/1735589#1735589

http://communities.vmware.com/message/1637297#1637297

Advertisements

1 thought on “VMware vCenter Orchestrator Troubleshooting: Sample workflows are not working”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s