Hello,
I have a Blueprint that has the following ExternalWF
ExternalWFStubs.BuildingMachine
ExternalWFStubs.BuildingMachine.fqdn
ExternalWFStubs.BuildingMachine.location
ExternalWFStubs.BuildingMachine.vcacVM
ExternalWFStubs.BuildingMachine.vcacHost
When I run this in vRO it works. When I try to run it from vRA it seems to not pass the variables so it errors out saying the strings are null. Anyone come across this? I did use the "Assign a state change workflow to a blueprint and its virtual machines" workflow to get the Custom Properties above to show in the vRA Blueprint. Any help would be appreciated...
vCAC:VirtualMachine and vCAC:VCACHost both appear Null so the script fails out via vRA..
via vRO
[2017-01-18 14:06:21.128] [I] System info: hostName=P-BLUECAT-101|version=8.1.1-100.GA.bcn|address=172.27.80.60|clusterRole=PRIMARY|replicationRole=PRIMARY|replicationStatus=ON|entityCount=117585|databaseSize=90.46MB|loggedInUsers=6|
[2017-01-18 14:06:21.237] [I] calling API with: 0,IAA-Internal,Configuration
[2017-01-18 14:06:21.268] [I] Configuration,108122
[2017-01-18 14:06:21.296] [I] TagGroup,110728
[2017-01-18 14:06:21.317] [I] Tag,110732
[2017-01-18 14:06:21.339] [I] Tag,110734
[2017-01-18 14:06:21.381] [I] IP4Network,109841
[2017-01-18 14:06:21.431] [I] Netmask: 255.255.255.0
[2017-01-18 14:06:21.436] [I] Free IP: 10.104.1.12
[2017-01-18 14:06:21.466] [I] View: 108204
[2017-01-18 14:06:21.533] [I] IP_id: 118986
[2017-01-18 14:06:22.029] [I] Found property VirtualMachine.Imported.Component = Win2012R2Std64Bit_Prod
[2017-01-18 14:06:22.039] [I] Found property VirtualMachine.Imported.ConvergedBlueprint = SEOnlyServerWin2012R2StdProd
[2017-01-18 14:06:22.047] [I] Found property VirtualMachine.Imported.DeploymentName = CDC01.it.local
[2017-01-18 14:06:22.058] [I] Found property VirtualMachine.Network0.Address = 172.17.65.113
via vRA Blueprint
[2017-01-19 12:13:27.287] [I] System info: hostName=P-BLUECAT-101|version=8.1.1-100.GA.bcn|address=172.27.80.60|clusterRole=PRIMARY|replicationRole=PRIMARY|replicationStatus=ON|entityCount=117585|databaseSize=90.50MB|loggedInUsers=4|
[2017-01-19 12:13:27.409] [I] calling API with: 0,IAA-Internal,Configuration
[2017-01-19 12:13:27.468] [I] Configuration,108122
[2017-01-19 12:13:27.519] [I] TagGroup,110728
[2017-01-19 12:13:27.580] [I] null,0
[2017-01-19 12:13:27.680] [I] null,0
[2017-01-19 12:13:28.022] [I] ERROR: java.lang.reflect.InvocationTargetException (Workflow:GetIP-IPAM / Scriptable task (item0)#35)
[2017-01-19 12:13:28.077] [E] Workflow execution stack:
***
item: 'GetIP-IPAM/item4', state: 'failed', business state: 'null', exception: 'InternalError: java.lang.reflect.InvocationTargetException (Workflow:GetIP-IPAM / Scriptable task (item0)#35) (Workflow:GetIP-IPAM / Scriptable task (item0)#98)'
workflow: 'GetIP-IPAM' (1f293c5b-f7ed-499d-a88f-8112dc28c761)
| 'attribute': name=errorCode type=string value=InternalError: java.lang.reflect.InvocationTargetException (Workflow:GetIP-IPAM / Scriptable task (item0)#35) (Workflow:GetIP-IPAM / Scriptable task (item0)#98)
| 'attribute': name=profileName type=string value=prodipambam
| 'attribute': name=configName type=string value=IAA-Internal
| 'attribute': name=viewName type=string value=IAA
| 'attribute': name=TopTag type=string value=Location
| 'input': name=fqdn type=string value=
| 'input': name=location type=string value=
| 'input': name=vcacVM type=vCAC:VirtualMachine value=null
| 'input': name=vcacHost type=vCAC:VCACHost value=null
| 'output': name=ipaddress type=string value=null
| 'output': name=gateway type=string value=null
| 'output': name=netmask type=string value=null
| 'attribute': name=lifecycleState type=string value={"phase":"POST","state":"VMPSMasterWorkflow32.BuildingMachine"}
| 'attribute': name=componentId type=string value=Windows2016Std64Bit
| 'attribute': name=blueprintName type=string value=Windows2016Std
| 'attribute': name=endpointId type=string value=49ddd3b5-ffec-4d13-a982-b13929c78641
| 'attribute': name=__asd_requestedBy type=string value=me@domain.com
| 'attribute': name=__asd_tenantRef type=string value=vsphere.local
| 'attribute': name=__asd_targetResourceProviderTypeId type=string value=com.vmware.csp.iaas.blueprint.service
| 'attribute': name=__asd_requestInstanceId type=string value=f5418a50-de72-11e6-8492-817107a4417c
| 'attribute': name=__asd_requestInstanceTypeId type=string value=com.vmware.csp.iaas.blueprint.service.machine.lifecycle.provision
| 'attribute': name=__asd_catalogRequestId type=string value=fcc5fc30-a0fd-404d-8f76-33f2776164fb
| 'attribute': name=componentTypeId type=string value=Infrastructure.CatalogItem.Machine.Virtual.vSphere
| 'attribute': name=IaaSTimeoutId type=string value=30731
| 'attribute': name=machine type=string value={"name":"LVRATEST33","externalReference":"vm-19565","owner":"me@domain.com","id":"1e138abc-ae89-4e58-a6db-345ccdec24ce","type":0,"properties":null}
| 'attribute': name=requestId type=string value=4e23d641-1d90-4d6e-bf55-9236fb3a0181
| 'attribute': name=__asd_requestedFor type=string value=me@domain.com
| 'attribute': name=__asd_targetResourceId type=string value=1e138abc-ae89-4e58-a6db-345ccdec24ce
| 'attribute': name=__asd_requestInstanceTimestamp type=string value="2017-01-19T12:13:20.000-06:00"
| 'attribute': name=__asd_targetResourceTypeId type=string value=machine
| 'attribute': name=__asd_correlationId type=string value=76b13dde-c1ba-432b-9459-56fe02c06f38
| 'attribute': name=__asd_requestTraceId type=string value=EvPsSVxr
| 'attribute': name=__asd_targetResourceProviderId type=string value=b5cbdcf8-9d16-464b-9767-edf6bdd5f1c3
*** End of execution stack.