kuklis / cma

2 stars 0 forks source link

vRA8 Datastore Custom Placement Logic | CMA #2

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

vRA8 Datastore Custom Placement Logic | CMA

How to implement custom placement logic for vSphere datastores

https://kuklis.github.io/cma/post/vra8-datastore-custom-placement/

rickraychen commented 2 years ago

Hello, I ran the script and get below error, seems like tags need to be defined. My environment is vRA8.8.

Action 'getStorageTag' in module 'com.test.storage' failed : TypeError: Cannot read property "tags" from undefined (com.test.storage/getStorageTag#26)

kuklis commented 2 years ago

Have you tagged your datastores as on the first screenshot?

Do you have apiuser created, role assigned and added a vRA endpoint with it?

rickraychen commented 2 years ago

I get it. Tag config mistake. I set tags on storage profile. tags needs to be setting on Resource -> Storage -> Tag

Thanks !

stastka commented 2 years ago

With vRA 8.8 return on Deployment of a Blueprint input value of Datastore: [object Object],[object Object]. The action Correct return a Propertie, but the Blueprint does not recognize to a DropDown

My Blueprint: datastore: type: string $dynamicDefault: /data/vro-actions/com.test.storage/getStorageTagDropDown?tagKey=DCTag readOnly: true title: datastore tag