VMware Cloud Community
PrabhuDhanaraj
Contributor
Contributor

How to pass property attributes from vRA 7.0.0 to vRO 7.0.1 (custom workflows) using Event subscription?

Trying to trigger vRO (7.0.1) workflow (EMC ViPR Plugin workflow) from vRA (7.0.0) using Event subscriptions. 

The workflow gets triggered but fails immediately since the input attribute data is not passed on from vRA to vRO. The attributes are defined in a new property group in property dictionary in vRA which is then added to the blueprint in vRA. Followed steps from http://extendingclouds.com/enabling-the-event-broker/

However, these attribute values which are defined statically are not passed onto the vRO as per the below error message. 

(Running these workflows from vRA after adding them in XaaS blueprints works fine but only the event subscription fails) 

The error message is as follows

2016-06-16 11:07:54,162 vcac: [component="cafe:advanced-designer" priority="INFO" thread="workflowStatusCheckExecutor-13" tenant="" context="er23xyAL" token="oeFsPkRN"] com.vmware.vcac.workflow.event.service.impl.ReplyEventSenderImpl.publishReplyEvent:112 - Error reply event was published as a result of unsuccessful start of workflow with id '72f2f2af-ae61-4d33-8067-5585247f9828' triggered by event with id '8f24fce0-33b2-11e6-9425-ad84324de75f' for event topic with id 'com.vmware.csp.iaas.blueprint.service.machine.lifecycle.provision' 

2016-06-16 11:08:12,127 vcac: [component="cafe:advanced-designer" priority="WARN" thread="workflowStatusCheckExecutor-6" tenant="" context="er23xyAL" token="APerbcc7"] com.vmware.o11n.sdk.rest.client.impl.VcoSessionImpl.doExecute:353 - Error making request to vCO. Reason: 400 Bad Request

2016-06-16 11:08:12,129 vcac: [component="cafe:advanced-designer" priority="ERROR" thread="workflowStatusCheckExecutor-6" tenant="" context="er23xyAL" token="APerbcc7"] com.vmware.vcac.designer.service.impl.ExecutionStatusChecker.call:248 - Cannot execute workflowId '72f2f2af-ae61-4d33-8067-5585247f9828' for Workflow run request 'b0483e6d-539d-4099-af2a-0dfb616d7611'. Error details: 4 error(s) found: [ { Virtual Machine to be provisioned - This field is required. }  { EMC ViPR volume name - This field is required. }  { Size (in GB) - This field is required. }  { EMC ViPR virtual pool name - This field is required. } ]

org.springframework.web.client.HttpClientErrorException: 400 Bad Request

        at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91) ~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]

        at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:641) ~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]

        at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:597) ~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]

        at com.vmware.vcac.designer.service.vco.service.CafeVcoSessionImpl$2.doExecute(CafeVcoSessionImpl.java:338) ~[classes/:?]

        at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:557) ~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]

        at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:384) ~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]

        at com.vmware.o11n.sdk.rest.client.services.ExecutionService.execute(ExecutionService.java:48) ~[o11n-rest-client-services-7.0.0.jar:?]

        at com.vmware.vcac.designer.service.vco.VcoServiceImpl.executeWorkflow(VcoServiceImpl.java:434) ~[classes/:?]

        at sun.reflect.GeneratedMethodAccessor2925.invoke(Unknown Source) ~[?:?]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_72]

        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_72]

        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) ~[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]

        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) ~[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]

        at com.sun.proxy.$Proxy718.executeWorkflow(Unknown Source) ~[?:?]

       at com.vmware.vcac.designer.service.impl.ExecutionStatusChecker$WorkflowExecutionTriggerWorker.call(ExecutionStatusChecker.java:164) [classes/:?]

        at com.vmware.vcac.designer.service.impl.ExecutionStatusChecker$WorkflowExecutionTriggerWorker.call(ExecutionStatusChecker.java:135) [classes/:?]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_72]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_72]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_72]

        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72]

0 Kudos
0 Replies