Open
Description
ISSUE TYPE
- Feature Idea
COMPONENT NAME
API
CONFIGURATION
Enable/Disable via Global Settings to (not) include metadata
OS / ENVIRONMENT
KVM
SUMMARY
Metadata to be recorded in the libvirt domain XML configuration to provide information about the CloudStack instance.
Provide information that can be useful to administrators troubleshooting hosts and optionally exported via libvirt exporter.
The host administrator will be able to ask libvirt to provide the XML config for the running instance and from there find out various useful pieces of metadata about the instance.
STEPS TO REPRODUCE
Add the following metadata XML blob to libvirt domain XML
<metadata>
<cloudstack:instance>
<cloudstack:name>${instance_Name}</cloudstack:name>
<cloudstack:internalName>${instance_InternalName}</cloudstack:internalName>
<cloudstack:displayName>${instance_DisplayName}</cloudstack:displayName>
<cloudstack:uuid>${instance_uuid}</cloudstack:name>
<cloudstack:ComputeOffering>
<cloudstack:cpu>${number_of_cpu_cores}</cloudstack:cpu>
<cloudstack:memory>${amount_of_memory_im_m(i)b}<c/loudstack:memory>
<cloudstack:ha>${ha_enabled_or_not_0_1}</cloudstack:ha>
</cloudstack:ComputeOffering>
<cloudstack:creationTime>${creationTime}</cloudstack:creationTime>
<cloudstack:owner>
<cloudstack:domain uuid="${domain_uuid}">${domain_name}</cloudstack:domain>
<cloudstack:account uuid="${account_uuid}">${account_name}</cloudstack:account>
<cloudstack:project uuid="${project_uuid}">${project_name}</cloudstack:project>
</cloudstack:instance>
</metadata>
EXPECTED RESULTS
Metadata to be available in libvirt, so this can be used with libvirt exporter.
Metadata
Metadata
Assignees
Type
Projects
Status
on Hold