<div dir="ltr">What feels hacky is that I have so little information about the VM i'm running from within that I'd have a hard time crawling the API enough to know the information I got was about the VM I'm testing against. Per my later email the ID in /var/lib/cloud/data/instance-id is not the same that I'd need to hit the REST API to describe</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 1, 2017 at 9:45 AM, Yaniv Kaul <span dir="ltr"><<a href="mailto:ykaul@redhat.com" target="_blank">ykaul@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><br><div class="gmail_quote"><span class=""><div dir="ltr">On Wed, Mar 1, 2017 at 4:53 PM Marc Young <<a href="mailto:3vilpenguin@gmail.com" target="_blank">3vilpenguin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="m_3588957213089394793gmail_msg">Ive looked through what documentation I can find and i only come up on bug reports from years ago, but: is there anyway to get metadata about a oVirt server metadata from the context of a VM ? cloud-init supports a metadata service that sits on 169.254.169.254 to retrieve info like instance-id etc. This is very useful in AWS which I'm familiar with.</div></blockquote><div><br></div></span><div>We support cloud-init via config drive, not over the network.</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="m_3588957213089394793gmail_msg"><div class="m_3588957213089394793gmail_msg"><br class="m_3588957213089394793gmail_msg"></div><div class="m_3588957213089394793gmail_msg">My context is that I'd like to run some assertions against a VM and the test framework I'm using runs all assertions from within the VM itself. So If i wanted to assert that the host running my VM is "<a href="http://x.foo.com" class="m_3588957213089394793gmail_msg" target="_blank">x.foo.com</a>" I'd have to be able to retrieve that from within the VM. I can do that via the REST API but that requires me to get a REST user/pass inside the vm and feels hacky. The common way of doing this at openstack/aws is to curl the metadata service which replies with information only relevant to the machine asking.</div></div></blockquote><div><br></div></span><div>Feels OK to me - doesn't sound too hacky to me.</div><div>You can do it via Ansible, but still need creds.</div><div>I don't remember if anything in the VM BIOS (dmidecode) will help you there - I think not.</div><div>Y.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
______________________________<wbr>_________________<br class="m_3588957213089394793gmail_msg">
Devel mailing list<br class="m_3588957213089394793gmail_msg">
<a href="mailto:Devel@ovirt.org" class="m_3588957213089394793gmail_msg" target="_blank">Devel@ovirt.org</a><br class="m_3588957213089394793gmail_msg">
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" class="m_3588957213089394793gmail_msg" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a></blockquote></div></div>
</blockquote></div><br></div>