[JIRA] [vmware-vrealize-orchestrator-plugin] (JENKINS-34178) There *may* be a problem with the vm@VC:VirtualMachine parameter name.

9 views
Skip to first unread message

bob.kraemer@agfa.com (JIRA)

unread,
Apr 12, 2016, 11:03:02 AM4/12/16
to jenkinsc...@googlegroups.com
Bob Kraemer created an issue
 
Jenkins / Bug JENKINS-34178
There *may* be a problem with the vm@VC:VirtualMachine parameter name.
Issue Type: Bug Bug
Assignee: Agila Govindaraju
Components: vmware-vrealize-orchestrator-plugin
Created: 2016/Apr/12 3:02 PM
Environment: Jenkins Master (CentOS) 1.609.1 LTS
vmware-realize-orchestrator-plugin version 2.0
Java version: JDK1.8
Orchestrator vApp version 7.0.1
Priority: Minor Minor
Reporter: Bob Kraemer

There may be a problem with the vm@VC:VirtualMachine parameter name. As an example, I have two jenkins jobs, each job passing a single parameter to it's linked orchestrator workflow (Copy file from vCO to guest). The only difference between the two scenarios is that in one case (the failure) Jenkins uses the vm@VC:VirtualMachine parameter name as the sole input to the orchestrator workflow. In the case that succeeds, the VM variable is set in the orchestrator workflow as an attribute, and the jenkins job passes another variable, instead (the VM password) as the sole parameter passed from jenkins to orchestrator. Other than the change to the single input type passed by jenkins (vm@VC:VirtualMachine parameter versus VM Password) all other aspects appear identical. When I manually run the orchestrator workflow from the failed scenario in workflow designer, the workflow runs fine after specifying the VC:VirtualMachine input parameter.

Orchestrator Appliance log stream:
2016-04-12 07:42:38.857-0400 [WorkflowExecutorPool-Thread-329] INFO

{anonymous:copy anonymous to anonymous vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad53c834cd01540a47cb120cd3}

[WorkflowHandler] Starting workflow 'copy anonymous to anonymous vm' (8a6d44ad53c834cd01540a47cb120cd3)...

2016-04-12 07:42:38.867-0400 [WorkflowExecutorPool-Thread-329] INFO

{anonymous:copy anonymous to anonymous vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad53c834cd01540a47cb120cd3}

[VimPluginFactory] VimPluginFactory() finished in 2 ms; tokenPrincipal: anonymous; sessionId: dbcfd2bb-dec9-4249-b0ae-c06e78b02608

2016-04-12 07:42:38.868-0400 [WorkflowExecutorPool-Thread-329] WARN

{anonymous:copy anonymous to anonymous vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad53c834cd01540a47cb120cd3}

[VimPluginFactory] find() --> sdkType 'VirtualMachine', id 'anonymous', VimHost 'anonymous' does not exist

2016-04-12 07:42:38.875-0400 [WorkflowExecutorPool-Thread-329] WARN

{anonymous:copy anonymous to anonymous vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad53c834cd01540a47cb120cd3}

[VimPluginFactory] find() --> sdkType 'VirtualMachine', id 'anonymous', VimHost 'anonymous' does not exist

2016-04-12 07:42:38.933-0400 [WorkflowExecutorPool-Thread-329] ERROR

{anonymous:copy anonymous to anonymous vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad53c834cd01540a47cb120cd3}

[SCRIPTING_LOG] [copy anonymous to anonymous vm (4/12/16 07:42:37)] Error in (Workflow:copy anonymous to anonymous vm / Scriptable task (item1)#2) TypeError: Cannot read property "guestOperationsManager" from undefined

2016-04-12 07:42:38.936-0400 [WorkflowExecutorPool-Thread-329] WARN

{anonymous:copy anonymous to anonymous vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad53c834cd01540a47cb120cd3}

[WorkflowItemTaskRunner] Script execution error on workflow : copy anonymous to anonymous vm / 'Scriptable task'(item1) : TypeError: Cannot read property "guestOperationsManager" from undefined (Workflow:copy anonymous to anonymous vm / Scriptable task (item1)#2)

2016-04-12 07:42:38.943-0400 [WorkflowExecutorPool-Thread-329] ERROR

{anonymous:copy anonymous to anonymous vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad53c834cd01540a47cb120cd3}

[SCRIPTING_LOG] Workfow execution stack:
***
item: 'copy anonymous to anonymous vm/item1', state: 'failed', business state: 'null', exception: 'TypeError: Cannot read property "guestOperationsManager" from undefined (Workflow:copy anonymous to anonymous vm / Scriptable task (item1)#2)'
workflow: 'copy anonymous to anonymous vm' (dfd361ec-f0d0-4ff5-b105-aade124c9aee)

'attribute': name=attVMUsername type=string value=anonymous
'attribute': name=attGuestFilePath type=string value=C:\test_lab_tools.exe
'attribute': name=attVCOPath type=string value=/storage/autodeploy/anonymous241_tools.exe
'attribute': name=attOverwrite type=boolean value=true
'attribute': name=attVMPassword type=SecureString value=_NULL_
'input': name=vm type=VC:VirtualMachine value=dunes://service.dunes.ch/CustomSDKObject?id='anonymous'&dunesName='VC:VirtualMachine'
'output': name=result type=boolean value=null
      • End of execution stack.

Jenkins Console Output:
07:42:35 Started by user anonymous
07:42:35 [EnvInject] - Loading node environment variables.
07:42:35 Building remotely on anonymous in workspace F:\jenkins\workspace\anonymous_orchestrator_copy-anonymous-to-anonymous_vm
07:42:36 Starting Orchestrator workflow execution : dfd361ec-f0d0-4ff5-b105-aade124c9aee
07:42:48 FATAL: Workflow execution failed.
07:42:48 java.io.IOException: Workflow execution failed.
07:42:48 at com.vmware.vro.jenkins.plugin.OrchestratorCallable.call(OrchestratorCallable.java:66)
07:42:48 at com.vmware.vro.jenkins.plugin.OrchestratorCallable.call(OrchestratorCallable.java:17)
07:42:48 at hudson.remoting.UserRequest.perform(UserRequest.java:121)
07:42:48 at hudson.remoting.UserRequest.perform(UserRequest.java:49)
07:42:48 at hudson.remoting.Request$2.run(Request.java:325)
07:42:48 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
07:42:48 at java.util.concurrent.FutureTask.run(Unknown Source)
07:42:48 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
07:42:48 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
07:42:48 at hudson.remoting.Engine$1$1.run(Engine.java:69)
07:42:48 at java.lang.Thread.run(Unknown Source)
07:42:48 at ......remote call to anonymous(Native Method)
07:42:48 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1360)
07:42:48 at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
07:42:48 at hudson.remoting.Channel.call(Channel.java:753)
07:42:48 at com.vmware.vro.jenkins.plugin.OrchestratorBuilder.perform(OrchestratorBuilder.java:113)
07:42:48 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
07:42:48 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
07:42:48 at hudson.model.Build$BuildExecution.build(Build.java:203)
07:42:48 at hudson.model.Build$BuildExecution.doRun(Build.java:160)
07:42:48 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
07:42:48 at hudson.model.Run.execute(Run.java:1741)
07:42:48 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
07:42:48 at hudson.model.ResourceController.execute(ResourceController.java:98)
07:42:48 at hudson.model.Executor.run(Executor.java:374)
07:42:48 Caused by: java.io.IOException: Workflow execution failed.
07:42:48 at com.vmware.vro.jenkins.plugin.OrchestratorCallable.call(OrchestratorCallable.java:52)
07:42:48 at com.vmware.vro.jenkins.plugin.OrchestratorCallable.call(OrchestratorCallable.java:17)
07:42:48 at hudson.remoting.UserRequest.perform(UserRequest.java:121)
07:42:48 at hudson.remoting.UserRequest.perform(UserRequest.java:49)
07:42:48 at hudson.remoting.Request$2.run(Request.java:325)
07:42:48 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
07:42:48 at java.util.concurrent.FutureTask.run(Unknown Source)
07:42:48 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
07:42:48 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
07:42:48 at hudson.remoting.Engine$1$1.run(Engine.java:69)
07:42:48 at java.lang.Thread.run(Unknown Source)
07:42:48 [BFA] Scanning build for known causes...
07:42:48 [BFA] No failure causes found
07:42:48 [BFA] Done. 0s
07:42:48 Started calculate disk usage of build
07:42:48 Finished Calculation of disk usage of build in 0 seconds
07:42:48 Started calculate disk usage of workspace
07:42:48 Finished Calculation of disk usage of workspace in 0 seconds
07:42:48 Finished: FAILURE

Despite the Orchestrator Appliance log stream identifying "'VirtualMachine', id 'anonymous', VimHost 'anonymous' does not exist", clearly, that host does exist, as when I manually run the orchestrator workflow from the failed scenario in workflow designer, the workflow runs fine after specifying the VC:VirtualMachine input parameter.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

agi.raj@gmail.com (JIRA)

unread,
Apr 17, 2016, 12:35:01 PM4/17/16
to jenkinsc...@googlegroups.com

agi.raj@gmail.com (JIRA)

unread,
Apr 18, 2016, 5:54:01 AM4/18/16
to jenkinsc...@googlegroups.com

I verified this case. It works fine if you use the Unique Id of the machine (VsoObject) instead of the name. You can pick the ID from the inventory tab of your vRO. Can you please confirm?

bob.kraemer@agfa.com (JIRA)

unread,
Apr 19, 2016, 8:02:01 AM4/19/16
to jenkinsc...@googlegroups.com

Do you mean to suggest that the VM ID can be provided to the parameter name of vm@VC:VirtualMachine in place of a name string for the virtual machine? If so - I gave this a try and found that it did not work for me. I compiled demonstration of this including screen-scrapes, and text outputs from jenkins consoles, as well as the Orchestrator Appliance log stream. (I could share this if desired.) If I have misunderstood the intent, I'd be happy to try again once I'm certain of the intent.

agi.raj@gmail.com (JIRA)

unread,
Apr 20, 2016, 7:01:01 AM4/20/16
to jenkinsc...@googlegroups.com

Please the screens. What I tried is with a similar SDKObject which is an instance details related to a Jenkins service. Here are the details.

agi.raj@gmail.com (JIRA)

unread,
Apr 20, 2016, 7:03:01 AM4/20/16
to jenkinsc...@googlegroups.com
Agila Govindaraju edited a comment on Bug JENKINS-34178
Please the screens. What I tried is with a similar SDKObject which is an instance details related to a Jenkins service. Here are the details  that shows in the inventory

instanceName:  BLR-Jenkins
displayName: BLR-Jenkins [http://host:8080]
id: ac29baf6-8074-4f2c-9143-268d7eed8996

From the workflow in Jenkins for the input I specified this ac29baf6-8074-4f2c-9143-268d7eed8996 for my input for the field "endpoint@RPTestJenkins:RPTestJenkins" and it worked
.  

bob.kraemer@agfa.com (JIRA)

unread,
Apr 20, 2016, 11:58:01 AM4/20/16
to jenkinsc...@googlegroups.com

bob.kraemer@agfa.com (JIRA)

unread,
Apr 20, 2016, 12:08:01 PM4/20/16
to jenkinsc...@googlegroups.com
Bob Kraemer commented on Bug JENKINS-34178
 
Re: There *may* be a problem with the vm@VC:VirtualMachine parameter name.

Please find that I have attached a Word document with screen captures and details on the process I am using. If I have misunderstood, or if there is something you would like me to try I would be happy to once it is clear to me what the intention is.

2 days ago it was posted that it may work if an id is passed instead of a name string. The id displayed in the inventory tab of workflow designer is in the form vm-999999 (sanitized). I believe this to be a Managed-Object-Ref ID (http://blogs.vmware.com/vsphere/2012/02/uniquely-identifying-virtual-machines-in-vsphere-and-vcloud-part-1-overview.html). Orchestrator also has a workflow to identify a virtual machine instanceUuid, the workflow returns a value in the form of 9a5d53ad62c945cd02652527362303cc (sanitized). I have recofigured the jenkins job to try both the MORefID and instanceUuid as the value to the vm@VC:VirtualMachine parameter (see attached worddoc) but with no success. Please let me know if there is anything else I can try, or, any other information I may provide... Thank you

agi.raj@gmail.com (JIRA)

unread,
Apr 22, 2016, 8:47:02 AM4/22/16
to jenkinsc...@googlegroups.com

Thanks for giving me enough details. I see that ORC603 is a display name of the VC:VirtualMachine type. Can you please check the same in the inventory tab of VCO and get me the screen shot of that. I can help help you out to see which Id you can use.

bob.kraemer@agfa.com (JIRA)

unread,
Apr 25, 2016, 8:11:02 AM4/25/16
to jenkinsc...@googlegroups.com

bob.kraemer@agfa.com (JIRA)

unread,
Apr 25, 2016, 8:12:01 AM4/25/16
to jenkinsc...@googlegroups.com

Please find that I have attached a file (ORC603Inventory.jpg) which is a screen scrape of the workflow designer inventory tab of the virtual machine with a display name of ORC603.

agi.raj@gmail.com (JIRA)

unread,
Apr 26, 2016, 1:47:01 AM4/26/16
to jenkinsc...@googlegroups.com

Ideally it should have worked with "vm-21456" as the id for the inventory. In the LHS of the tree where you have selected this inventory object contains the display name and id is the unique Id which is used to reference the object in the endpoint configuration store that is maintained by the vRO. I need to do the setup to really verify this use case.

agi.raj@gmail.com (JIRA)

unread,
May 12, 2016, 3:08:01 PM5/12/16
to jenkinsc...@googlegroups.com

With the information from the core team of vRO, I identified that the VC object has to be identified differently. Here is the format,

<user>@vcenterUrl@moref-id

Example: admin@https://10.0.1.1:443/sdk@vm-245678

bob.kraemer@agfa.com (JIRA)

unread,
May 13, 2016, 9:12:03 AM5/13/16
to jenkinsc...@googlegroups.com

I have given this a try - but unfortunately, I can not report success. Here is the log stream (sanitized) from my orchestrator appliance:

2016-05-13 09:00:54.537-0400 [http-nio-0.0.0.0-8281-exec-14] INFO {} [ExecutionController] Executing wf: dfd361ec-f0d0-4ff5-b105-aade124c9aee traceId: null

2016-05-13 09:00:54.539-0400 [http-nio-0.0.0.0-8281-exec-14] WARN {} [VimPluginFactory] find() --> sdkType 'VirtualMachine', id 'anonymous@https://myhost.mydomain.com:443/sdk@vm-999999', VimHost 'anonymous@https:' does not exist

2016-05-13 09:00:54.634-0400 [http-nio-0.0.0.0-8281-exec-14] INFO {} [SamlTokenImpl] SAML token for SubjectNameId [value=anon...@mydomain.com, format=http://schemas.xmlsoap.org/claims/UPN] successfully parsed from Element

2016-05-13 09:00:54.737-0400 [http-nio-0.0.0.0-8281-exec-14] INFO {} [SamlTokenImpl] SAML token for SubjectNameId [value=anon...@mydomain.com, format=http://schemas.xmlsoap.org/claims/UPN] successfully parsed from Element

2016-05-13 09:00:55.052-0400 [http-nio-0.0.0.0-8281-exec-14] INFO {} [SamlTokenImpl] SAML token for SubjectNameId [value=anon...@mydomain.com, format=http://schemas.xmlsoap.org/claims/UPN] successfully parsed from Element

2016-05-13 09:00:55.058-0400 [http-nio-0.0.0.0-8281-exec-14] INFO {} [Execution] Executing workflow 'copy cm241tools to cm vm'

2016-05-13 09:00:55.061-0400 org.springframework.jms.listener.DefaultMessageListenerContainer#0-3 INFO {} [Execution] Invoking workflow handler.8a6d44ad54529b650154aa349b934a79

2016-05-13 09:00:55.181-0400 [http-nio-0.0.0.0-8281-exec-12] WARN {} [VimPluginFactory] find() --> sdkType 'VirtualMachine', id 'anonymous@https://myhost.mydomain.com:443/sdk@vm-999999', VimHost 'anonymous@https:' does not exist

2016-05-13 09:00:55.262-0400 [http-nio-0.0.0.0-8281-exec-13] WARN {} [VimPluginFactory] find() --> sdkType 'VirtualMachine', id 'anonymous@https://myhost.mydomain.com:443/sdk@vm-999999', VimHost 'anonymous@https:' does not exist

2016-05-13 09:00:56.073-0400 [WorkflowExecutorPool-Thread-298] INFO

{anon...@mydomain.com:copy cm241tools to cm vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad54529b650154aa349b934a79}

[WorkflowHandler] Starting workflow 'copy cm241tools to cm vm' (8a6d44ad54529b650154aa349b934a79)...

2016-05-13 09:00:56.079-0400 [WorkflowExecutorPool-Thread-298] INFO

{anon...@mydomain.com:copy cm241tools to cm vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad54529b650154aa349b934a79}

[VimPluginFactory] VimPluginFactory() finished in 1 ms; tokenPrincipal: anon...@mydomain.com; sessionId: c43d0434-311a-4107-9dc8-db944ce7a945

2016-05-13 09:00:56.081-0400 [WorkflowExecutorPool-Thread-298] WARN

{anon...@mydomain.com:copy cm241tools to cm vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad54529b650154aa349b934a79}

[VimPluginFactory] find() --> sdkType 'VirtualMachine', id 'anonymous@https://myhost.mydomain.com:443/sdk@vm-999999', VimHost 'anonymous@https:' does not exist

2016-05-13 09:00:56.088-0400 [WorkflowExecutorPool-Thread-298] WARN

{anon...@mydomain.com:copy cm241tools to cm vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad54529b650154aa349b934a79}

[VimPluginFactory] find() --> sdkType 'VirtualMachine', id 'anonymous@https://myhost.mydomain.com:443/sdk@vm-999999', VimHost 'anonymous@https:' does not exist

2016-05-13 09:00:56.089-0400 [WorkflowExecutorPool-Thread-298] ERROR

{anon...@mydomain.com:copy cm241tools to cm vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad54529b650154aa349b934a79}

[SCRIPTING_LOG] [copy cm241tools to cm vm (5/13/16 09:00:55)] Error in (Workflow:copy cm241tools to cm vm / Scriptable task (item1)#2) TypeError: Cannot read property "guestOperationsManager" from undefined

2016-05-13 09:00:56.092-0400 [WorkflowExecutorPool-Thread-298] WARN

{anon...@mydomain.com:copy cm241tools to cm vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad54529b650154aa349b934a79}

[WorkflowItemTaskRunner] Script execution error on workflow : copy cm241tools to cm vm / 'Scriptable task'(item1) : TypeError: Cannot read property "guestOperationsManager" from undefined (Workflow:copy cm241tools to cm vm / Scriptable task (item1)#2)

2016-05-13 09:00:56.100-0400 [WorkflowExecutorPool-Thread-298] ERROR

{anon...@mydomain.com:copy cm241tools to cm vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad54529b650154aa349b934a79}

[SCRIPTING_LOG] Workfow execution stack:
***

item: 'copy cm241tools to cm vm/item1', state: 'failed', business state: 'null', exception: 'TypeError: Cannot read property "guestOperationsManager" from undefined (Workflow:copy cm241tools to cm vm / Scriptable task (item1)#2)'
workflow: 'copy cm241tools to cm vm' (dfd361ec-f0d0-4ff5-b105-aade124c9aee)

'attribute': name=attVMUsername type=string value=mydomain\anonymous
'attribute': name=attGuestFilePath type=string value=C:\db_tools_agility.exe
'attribute': name=attVCOPath type=string value=/storage/autodeploy/db_tools_agility.exe
'attribute': name=attOverwrite type=boolean value=true
'attribute': name=attVMPassword type=SecureString value=_NULL_
'output': name=result type=boolean value=null
      • End of execution stack.

2016-05-13 09:00:56.104-0400 [WorkflowExecutorPool-Thread-298] INFO

{anon...@mydomain.com:copy cm241tools to cm vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad54529b650154aa349b934a79}

[WorkflowHandler] End of workflow 'copy cm241tools to cm vm' (8a6d44ad54529b650154aa349b934a79), state: failed

Here is the output to the jenkins console (sanitized):
09:00:53 Started by user anonymous
09:00:54 [EnvInject] - Loading node environment variables.
09:00:54 Building remotely on someslave5 in workspace F:\jenkins\workspace\anonymous_orchestrator_copy-tools_vm
09:00:54 Starting Orchestrator workflow execution : dfd361ec-f0d0-4ff5-b105-aade124c9aee
09:01:05 FATAL: Workflow execution failed.
09:01:05 java.io.IOException: Workflow execution failed.
09:01:05 at com.vmware.vro.jenkins.plugin.OrchestratorCallable.call(OrchestratorCallable.java:66)
09:01:05 at com.vmware.vro.jenkins.plugin.OrchestratorCallable.call(OrchestratorCallable.java:17)
09:01:05 at hudson.remoting.UserRequest.perform(UserRequest.java:121)
09:01:05 at hudson.remoting.UserRequest.perform(UserRequest.java:49)
09:01:05 at hudson.remoting.Request$2.run(Request.java:325)
09:01:05 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
09:01:05 at java.util.concurrent.FutureTask.run(Unknown Source)
09:01:05 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
09:01:05 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
09:01:05 at hudson.remoting.Engine$1$1.run(Engine.java:69)
09:01:05 at java.lang.Thread.run(Unknown Source)
09:01:05 at ......remote call to wtlswjs51(Native Method)
09:01:05 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
09:01:05 at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
09:01:05 at hudson.remoting.Channel.call(Channel.java:781)
09:01:05 at com.vmware.vro.jenkins.plugin.OrchestratorBuilder.perform(OrchestratorBuilder.java:113)
09:01:05 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
09:01:05 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
09:01:05 at hudson.model.Build$BuildExecution.build(Build.java:205)
09:01:05 at hudson.model.Build$BuildExecution.doRun(Build.java:162)
09:01:05 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
09:01:05 at hudson.model.Run.execute(Run.java:1738)
09:01:05 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
09:01:05 at hudson.model.ResourceController.execute(ResourceController.java:98)
09:01:05 at hudson.model.Executor.run(Executor.java:410)
09:01:05 Caused by: java.io.IOException: Workflow execution failed.
09:01:05 at com.vmware.vro.jenkins.plugin.OrchestratorCallable.call(OrchestratorCallable.java:52)
09:01:05 at com.vmware.vro.jenkins.plugin.OrchestratorCallable.call(OrchestratorCallable.java:17)
09:01:05 at hudson.remoting.UserRequest.perform(UserRequest.java:121)
09:01:05 at hudson.remoting.UserRequest.perform(UserRequest.java:49)
09:01:05 at hudson.remoting.Request$2.run(Request.java:325)
09:01:05 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
09:01:05 at java.util.concurrent.FutureTask.run(Unknown Source)
09:01:05 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
09:01:05 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
09:01:05 at hudson.remoting.Engine$1$1.run(Engine.java:69)
09:01:05 at java.lang.Thread.run(Unknown Source)
09:01:05 [BFA] Scanning build for known causes...
09:01:05 [BFA] No failure causes found
09:01:05 [BFA] Done. 0s
09:01:05 Started calculate disk usage of build
09:01:05 Finished Calculation of disk usage of build in 0 seconds
09:01:05 Started calculate disk usage of workspace
09:01:05 Finished Calculation of disk usage of workspace in 0 seconds
09:01:05 Finished: FAILURE

  • I have tried with a username that is a member of our VCO Administrators group (myself) and with any manner of admin credentials that might make sense (admin/administrator) but doing so makes no difference.

bob.kraemer@agfa.com (JIRA)

unread,
May 13, 2016, 9:23:01 AM5/13/16
to jenkinsc...@googlegroups.com

...I forgot to add:
Here is the output as seen in the 'logs' tab of the workflow designer:

[2016-05-13 09:00:56.089] [E] Error in (Workflow:copy cm241tools to cm vm / Scriptable task (item1)#2) TypeError: Cannot read property "guestOperationsManager" from undefined
[2016-05-13 09:00:56.100] [E] Workfow execution stack:


***
item: 'copy cm241tools to cm vm/item1', state: 'failed', business state: 'null', exception: 'TypeError: Cannot read property "guestOperationsManager" from undefined (Workflow:copy cm241tools to cm vm / Scriptable task (item1)#2)'
workflow: 'copy cm241tools to cm vm' (dfd361ec-f0d0-4ff5-b105-aade124c9aee)

'attribute': name=attVMUsername type=string value=mydomain\anonymous
'attribute': name=attGuestFilePath type=string value=C:\myfile.exe
'attribute': name=attVCOPath type=string value=/storage/autodeploy/myfile.exe
'attribute': name=attOverwrite type=boolean value=true
'attribute': name=attVMPassword type=SecureString value=_NULL_
'input': name=vm type=VC:VirtualMachine value=dunes://service.dunes.ch/CustomSDKObject?id='anonymous@https://myhost.mydomain.com:443/sdk@vm-999999'&dunesName='VC:VirtualMachine'
'output': name=result type=boolean value=null
      • End of execution stack.

Also, when I manually run the same workflow in workflow designer, the workflow succeeds.

agi.raj@gmail.com (JIRA)

unread,
May 14, 2016, 12:57:01 AM5/14/16
to jenkinsc...@googlegroups.com

This worked for me. Can you please try. I am really sorry that I am asking you to try a lot of options.

'connectionURL%252Fvmmoref

%252F is nothing but /

So for ex:

test.eng.abc.com/vm-999999

agi.raj@gmail.com (JIRA)

unread,
May 14, 2016, 11:09:01 AM5/14/16
to jenkinsc...@googlegroups.com

agi.raj@gmail.com (JIRA)

unread,
May 14, 2016, 11:09:01 AM5/14/16
to jenkinsc...@googlegroups.com
Agila Govindaraju updated an issue
 
Change By: Agila Govindaraju
Attachment: Screen Shot 2016-05-13 at 11.52.26 AM.png

bob.kraemer@agfa.com (JIRA)

unread,
May 16, 2016, 8:02:01 AM5/16/16
to jenkinsc...@googlegroups.com
Bob Kraemer updated an issue
Change By: Bob Kraemer
Attachment: 0516orchestrator_inventory.jpg
Attachment: 0516jenkins_job.jpg

bob.kraemer@agfa.com (JIRA)

unread,
May 16, 2016, 8:03:01 AM5/16/16
to jenkinsc...@googlegroups.com

bob.kraemer@agfa.com (JIRA)

unread,
May 16, 2016, 8:03:01 AM5/16/16
to jenkinsc...@googlegroups.com

bob.kraemer@agfa.com (JIRA)

unread,
May 16, 2016, 8:05:02 AM5/16/16
to jenkinsc...@googlegroups.com
Bob Kraemer commented on Bug JENKINS-34178
 
Re: There *may* be a problem with the vm@VC:VirtualMachine parameter name.

I am happy to try all the options you ask ~ I just wish a more positive result would come back.
I've tried the latest suggestion - and I see no change. I'll attached screen captures of the id listed in the inventory, the jenkins job configuration showing the value of the vm@VC:VirtualMachine parameter name, as well as sanitized output from the orchestrator appliance log, jenkins console, and orchestrator logs tab:

Sanitized orchestrator appliance log:

2016-05-16 07:46:03.981-0400 [http-nio-0.0.0.0-8281-exec-18] INFO {} [Execution] Executing workflow 'copy get_build.bat to myVM vm'

2016-05-16 07:46:03.991-0400 org.springframework.jms.listener.DefaultMessageListenerContainer#0-3 INFO {} [Execution] Invoking workflow handler.8a6d44ad54529b650154b963284e5413

2016-05-16 07:46:04.520-0400 [http-nio-0.0.0.0-8281-exec-14] WARN {} [VimPluginFactory] find() --> sdkType 'VirtualMachine', id 'vm-244555', VimHost 'vm-244555' does not exist

2016-05-16 07:46:04.607-0400 [http-nio-0.0.0.0-8281-exec-13] WARN {} [VimPluginFactory] find() --> sdkType 'VirtualMachine', id 'vm-244555', VimHost 'vm-244555' does not exist

2016-05-16 07:46:05.007-0400 [WorkflowExecutorPool-Thread-337] INFO

{anon...@mydomain.com:copy get_build.bat to myVM vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad54529b650154b963284e5413}

[WorkflowHandler] Starting workflow 'copy get_build.bat to myVM vm' (8a6d44ad54529b650154b963284e5413)...

2016-05-16 07:46:05.013-0400 [WorkflowExecutorPool-Thread-337] INFO

{anon...@mydomain.com:copy get_build.bat to myVM vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad54529b650154b963284e5413}

[VimPluginFactory] VimPluginFactory() finished in 2 ms; tokenPrincipal: anon...@mydomain.com; sessionId: f7fe8a60-0ffd-408c-9457-13ff6405757a

2016-05-16 07:46:05.014-0400 [WorkflowExecutorPool-Thread-337] WARN

{anon...@mydomain.com:copy get_build.bat to myVM vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad54529b650154b963284e5413}

[VimPluginFactory] find() --> sdkType 'VirtualMachine', id 'myhost.mydomain.com@vm-244555', VimHost 'myhost.mydomain.com@vm-244555' does not exist

2016-05-16 07:46:05.021-0400 [WorkflowExecutorPool-Thread-337] WARN

{anon...@mydomain.com:copy get_build.bat to myVM vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad54529b650154b963284e5413}

[VimPluginFactory] find() --> sdkType 'VirtualMachine', id 'myhost.mydomain.com@vm-244555', VimHost 'myhost.mydomain.com@vm-244555' does not exist

2016-05-16 07:46:05.023-0400 [WorkflowExecutorPool-Thread-337] ERROR

{anon...@mydomain.com:copy get_build.bat to myVM vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad54529b650154b963284e5413}

[SCRIPTING_LOG] [copy get_build.bat to myVM vm (5/16/16 07:46:03)] Error in (Workflow:copy get_build.bat to myVM vm / Scriptable task (item1)#2) TypeError: Cannot read property "guestOperationsManager" from undefined

2016-05-16 07:46:05.033-0400 [WorkflowExecutorPool-Thread-337] WARN

{anon...@mydomain.com:copy get_build.bat to myVM vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad54529b650154b963284e5413}

[WorkflowItemTaskRunner] Script execution error on workflow : copy get_build.bat to myVM vm / 'Scriptable task'(item1) : TypeError: Cannot read property "guestOperationsManager" from undefined (Workflow:copy get_build.bat to myVM vm / Scriptable task (item1)#2)

2016-05-16 07:46:05.040-0400 [WorkflowExecutorPool-Thread-337] ERROR

{anon...@mydomain.com:copy get_build.bat to myVM vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad54529b650154b963284e5413}

[SCRIPTING_LOG] Workfow execution stack:
***
item: 'copy get_build.bat to myVM vm/item1', state: 'failed', business state: 'null', exception: 'TypeError: Cannot read property "guestOperationsManager" from undefined (Workflow:copy get_build.bat to myVM vm / Scriptable task (item1)#2)'
workflow: 'copy get_build.bat to myVM vm' (dfd361ec-f0d0-4ff5-b105-aade124c9aee)

'attribute': name=attVMUsername type=string value=mydomain\anonymous
'attribute': name=attGuestFilePath type=string value=C:\get_build.bat
'attribute': name=attVCOPath type=string value=/storage/autodeploy/get_build.bat
'attribute': name=attOverwrite type=boolean value=true
'attribute': name=attVMPassword type=SecureString value=_NULL_
'output': name=result type=boolean value=null
      • End of execution stack.

2016-05-16 07:46:05.044-0400 [WorkflowExecutorPool-Thread-337] INFO

{anon...@mydomain.com:copy get_build.bat to myVM vm:dfd361ec-f0d0-4ff5-b105-aade124c9aee:token=8a6d44ad54529b650154b963284e5413}

[WorkflowHandler] End of workflow 'copy get_build.bat to myVM vm' (8a6d44ad54529b650154b963284e5413), state: failed

2016-05-16 07:46:07.729-0400 [http-nio-0.0.0.0-8281-exec-12] WARN {} [VimPluginFactory] find() --> sdkType 'VirtualMachine', id 'myhost.mydomain.com@vm-244555', VimHost 'myhost.mydomain.com@vm-244555' does not exist

2016-05-16 07:46:07.830-0400 [http-nio-0.0.0.0-8281-exec-18] WARN {} [VimPluginFactory] find() --> sdkType 'VirtualMachine', id 'myhost.mydomain.com@vm-244555', VimHost 'myhost.mydomain.com@vm-244555' does not exist

Sanitized jenkins console output:

07:46:01 Started by user anonymous
07:46:02 [EnvInject] - Loading node environment variables.
07:46:02 Building remotely on myjenkinsslave in workspace F:\jenkins\workspace\myworkflow
07:46:02 Starting Orchestrator workflow execution : dfd361ec-f0d0-4ff5-b105-aade124c9aee
07:46:14 FATAL: Workflow execution failed.
07:46:14 java.io.IOException: Workflow execution failed.
07:46:14 at com.vmware.vro.jenkins.plugin.OrchestratorCallable.call(OrchestratorCallable.java:66)
07:46:14 at com.vmware.vro.jenkins.plugin.OrchestratorCallable.call(OrchestratorCallable.java:17)
07:46:14 at hudson.remoting.UserRequest.perform(UserRequest.java:121)
07:46:14 at hudson.remoting.UserRequest.perform(UserRequest.java:49)
07:46:14 at hudson.remoting.Request$2.run(Request.java:325)
07:46:14 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
07:46:14 at java.util.concurrent.FutureTask.run(Unknown Source)
07:46:14 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
07:46:14 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
07:46:14 at hudson.remoting.Engine$1$1.run(Engine.java:69)
07:46:14 at java.lang.Thread.run(Unknown Source)
07:46:14 at ......remote call to myjenkinsslave(Native Method)
07:46:14 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
07:46:14 at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
07:46:14 at hudson.remoting.Channel.call(Channel.java:781)
07:46:14 at com.vmware.vro.jenkins.plugin.OrchestratorBuilder.perform(OrchestratorBuilder.java:113)
07:46:14 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
07:46:14 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
07:46:14 at hudson.model.Build$BuildExecution.build(Build.java:205)
07:46:14 at hudson.model.Build$BuildExecution.doRun(Build.java:162)
07:46:14 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
07:46:14 at hudson.model.Run.execute(Run.java:1738)
07:46:14 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
07:46:14 at hudson.model.ResourceController.execute(ResourceController.java:98)
07:46:14 at hudson.model.Executor.run(Executor.java:410)
07:46:14 Caused by: java.io.IOException: Workflow execution failed.
07:46:14 at com.vmware.vro.jenkins.plugin.OrchestratorCallable.call(OrchestratorCallable.java:52)
07:46:14 at com.vmware.vro.jenkins.plugin.OrchestratorCallable.call(OrchestratorCallable.java:17)
07:46:14 at hudson.remoting.UserRequest.perform(UserRequest.java:121)
07:46:14 at hudson.remoting.UserRequest.perform(UserRequest.java:49)
07:46:14 at hudson.remoting.Request$2.run(Request.java:325)
07:46:14 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
07:46:14 at java.util.concurrent.FutureTask.run(Unknown Source)
07:46:14 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
07:46:14 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
07:46:14 at hudson.remoting.Engine$1$1.run(Engine.java:69)
07:46:14 at java.lang.Thread.run(Unknown Source)
07:46:14 [BFA] Scanning build for known causes...
07:46:14 [BFA] No failure causes found
07:46:14 [BFA] Done. 0s
07:46:14 Started calculate disk usage of build
07:46:14 Finished Calculation of disk usage of build in 0 seconds
07:46:14 Started calculate disk usage of workspace
07:46:14 Finished Calculation of disk usage of workspace in 0 seconds
07:46:14 Finished: FAILURE

Sanitized orchestrator logs tab:

[2016-05-16 07:46:05.023] [E] Error in (Workflow:copy get_build.bat to some-virtual-machine vm / Scriptable task (item1)#2) TypeError: Cannot read property "guestOperationsManager" from undefined
[2016-05-16 07:46:05.040] [E] Workfow execution stack:
***
item: 'copy get_build.bat to some-virtual-machine vm/item1', state: 'failed', business state: 'null', exception: 'TypeError: Cannot read property "guestOperationsManager" from undefined (Workflow:copy get_build.bat to some-virtual-machine vm / Scriptable task (item1)#2)'
workflow: 'copy get_build.bat to some-virtual-machine vm' (dfd361ec-f0d0-4ff5-b105-aade124c9aee)

'attribute': name=attVMUsername type=string value=mydomain\anonymous
'attribute': name=attGuestFilePath type=string value=C:\get_build.bat
'attribute': name=attVCOPath type=string value=/mypath/get_build.bat
'attribute': name=attOverwrite type=boolean value=true
'attribute': name=attVMPassword type=SecureString value=_NULL_
'output': name=result type=boolean value=null
      • End of execution stack.

agi.raj@gmail.com (JIRA)

unread,
May 21, 2016, 6:30:01 AM5/21/16
to jenkinsc...@googlegroups.com

agi.raj@gmail.com (JIRA)

unread,
May 21, 2016, 6:31:01 AM5/21/16
to jenkinsc...@googlegroups.com
Agila Govindaraju edited a comment on Bug JENKINS-34178
I still see an @ in your rdvm.mydomain.com * @ * vm-244555 value it should be  having / in the value instead of @ for ex:  rdvm.mydomain.com * / * vm-244555

bob.kraemer@agfa.com (JIRA)

unread,
May 24, 2016, 9:04:02 AM5/24/16
to jenkinsc...@googlegroups.com

As it turns out, when you try the notation exactly as you asked - it does indeed work... imagine that. Sorry I missed it the first time.

I can now confirm that passing a value in the form of myhost.mydomain.com/vm-99999 for the vm@VC:VirtualMachine parameter name (where vm-99999 is the id as displayed in the orchestrator workflow designer inventory tab) does indeed WORK. Issue is closed. Thank you for all of your prompt attention to this.

agi.raj@gmail.com (JIRA)

unread,
May 25, 2016, 4:26:12 AM5/25/16
to jenkinsc...@googlegroups.com
Agila Govindaraju closed an issue as Fixed
 

Thanks for trying my suggestions patiently

Change By: Agila Govindaraju
Status: Open Closed
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages