Access VM Openstack metadata in Automate

Hi all,

I’d like to access the VM Opentack metadata in one of my Automate methods on vm_create event.

Those metadata are displayed as Labels in the WebUI.

I’ve tried to dump all the VM info + custom_keys + ems_custom_keys ( https://www.manageiq.org/docs/reference/latest/methods_available_for_automation/#virtual-machines-and-templates-vm_or_template ) but I coudnt find my metadatas.

Do you have any ideas how to retrieve those informations ?

Hi everyone !

I’ve finally found where to get my metadatas. It was simply accessible via labels on my VMs objects :

$evm.log("info","#{@log_prefix} - Labels VM:<#{vm.name}> #{vm.labels.inspect} ")

Thanks !