kriegsmanj opened a new issue, #6695:
URL: https://github.com/apache/cloudstack/issues/6695

   
   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete 
the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Feature Idea
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   API
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   
   Enable/Disable via Global Settings to (not) include metadata
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   
   KVM
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   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
   
   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
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal 
test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   Add the following  metadata XML blob to libvirt domain XML
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   <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>
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   Metadata to be available in libvirt, so this can be used with libvirt 
exporter.
   ~~~
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to