Hi Everyone,
Looking for some help in updating custom properties on machine entities in vRA 7.1. I setup a test workflow like the following:
Scriptable Task:
var props = new Properties();
props.put("VirtualMachine.Admin.Hostname","newvalue");
The workflow takes an ID as an input and then finds the entity based on the ID. It then creates a properties object and attempts to update that virtual machine entity using the 'Update an IaaS model entity' builtin workflow. What I'm getting every time is the following error:
[2016-11-01 15:35:51.891] [E] Workflow execution stack:
***
item: 'Update an IaaS model entity/item3', state: 'failed', business state: 'null', exception: 'java.lang.NullPointerException'
workflow: 'testUpdate' (d05a1b3d-1bb6-43e2-8e3d-eadeb047361d)
| 'attribute': name=host type=vCAC:VCACHost value=dunes://service.dunes.ch/CustomSDKObject?id='fa8975f3-c658-4aa8-bf09-cbe778bdac78'&dunesName='vCAC:VCACHost'
| 'attribute': name=entity1 type=vCAC:Entity value=null
| 'attribute': name=props type=Properties value=#[#VirtualMachine.Admin.Hostname#=#string#newkey#]#
| 'input': name=id type=string value=46cfe68f-ae3d-4a7e-a0da-89d5a2ec8395
| 'no outputs'
--workflow: 'Update an IaaS model entity' (3fbe872a-46de-484e-8232-8b110fcee02b)
| 'attribute': name=hostId type=string value=fa8975f3-c658-4aa8-bf09-cbe778bdac78
| 'attribute': name=modelName type=string value=ManagementModelEntities.svc
| 'attribute': name=entitySetName type=string value=VirtualMachines
| 'attribute': name=entityIdString type=string value=(guid'46cfe68f-ae3d-4a7e-a0da-89d5a2ec8395')
| 'attribute': name=errorCode type=string value=java.lang.NullPointerException
| 'input': name=entity type=vCAC:Entity value=dunes://service.dunes.ch/CustomSDKObject?id='%2528guid%252746cfe68f-ae3d-4a7e-a0da-89d5a2ec8395%2527%2529%2540fa8975f3-c658-4aa8-bf09-cbe778bdac78%2540ManagementModelEntities.svc%2540VirtualMachines'&dunesName='vCAC:Entity'
| 'input': name=inputProperties type=Properties value=#[#VirtualMachine.Admin.Hostname#=#string#newkey#]#
| 'input': name=links type=Properties value=null
| 'input': name=headers type=Properties value=null
| 'output': name=updatedEntity type=vCAC:Entity value=null
*** End of execution stack.
Having some trouble in figuring out where this is going wrong and would appreciate any ideas.
Thanks!
-Mike