<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>On 2018-11-18 09:11, Mohammed Naser wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">
<div dir="ltr"><a href="https://blueprints.launchpad.net/nova/+spec/openstack-api-hostid">https://blueprints.launchpad.net/nova/+spec/openstack-api-hostid</a></div>
<div dir="ltr"> </div>
<div>This should take care of it, don't know if it exists in Juno though.</div>
</div>
</blockquote>
<p>It *does* exist in Juno, it *can't*, however, do what I want -- at least, generically. The hostId that gets returned is a value that's (apparently) used to let you know, semi-anonymously, how affinity is (or isn't) working for your VMs. So you get a unique identifier for each hypervisor -- but it has no *obvious* bearing on the hostname. It's an id that's formed from the SHA224 hash of the ID of your tenant and the hostname of the hypervisor -- a bit of a catch-22, that, and prevents you from being able to make use of the hash if you don't know your back-end. But... I do. So I created an associative array with all the current (and, God willing, future) hypervisor hostnames in my company, with the key being the hostId/hash, and the value being the hypervisor name. Then I queried my VMs, got all the hostIds, used that as the index to query my associative array, and bingo! My hypervisor's name.</p>
<p>Kinda fugly, but when you have a standardized hypervisor hostname nomenclature, it's sufficient, without having to go mucking about with changing poorly-documented Nova policy.json stuff in a four-year-old release of OpenStack.</p>
<p>I'll take it. Thanks!</p>
<p>-Ken</p>
<p><br /></p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><br />
<div class="gmail_quote">
<div dir="ltr">On Thu, Nov 15, 2018 at 1:49 PM Ken D'Ambrosio <<a href="mailto:ken@jots.org">ken@jots.org</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">Hey, all. We've got a Juno cloud, and we'd like various end-users to be <br /> able to see which hypervisors their VMs spring up on. <br /> /etc/nova/policy.json seems to have some relevant info, but it's hard to <br /> tell what does what. "compute_extension:hypervisors" looks like a <br /> possible candidate, but that's so vague that there's no telling what, <br /> exactly, is meant by "hypervisors". So:<br /> <br /> * Given that I just want the hypervisor:VM association, any suggestions <br /> as to which rule(s) to modify?<br /> * Failing that, wondering if there's any for-real documentation on what <br /> the various options in policy.json *do*. I've found many, many lists of <br /> what's in a generic policy.json, but nothing that went into detail about <br /> what does what.<br /> <br /> Thanks!<br /> <br /> -Ken<br /> <br /> _______________________________________________<br /> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br /> Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br /> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a></blockquote>
</div>
<br clear="all" />
<div> </div>
-- <br />
<div class="gmail_signature" dir="ltr"><span style="font-family: Arial; font-size: 8pt;"><span style="color: #4682b4; font-size: 10pt;">Mohammed Naser</span> — <span style="font-weight: bold;">vexxhost</span><br /></span>
<div><span style="font-family: Arial; font-size: 8pt;"><span><span style="color: #dcdcdc;">-----------------------------------------------------</span></span></span></div>
<div><span style="font-family: Arial; font-size: 11px; font-weight: bold;">D. </span><span style="font-family: Arial; font-size: 11px;">514-316-8872</span></div>
<div><span style="font-family: Arial; font-size: 11px;"><span style="font-weight: bold;">D.</span> 800-910-1726 ext. 200</span></div>
<div><span style="font-family: Arial; font-size: 11px;"><span style="font-weight: bold;">E. </span><a href="mailto:mnaser@vexxhost.com">mnaser@vexxhost.com</a></span></div>
<div><span style="font-family: Arial; font-size: 11px;"><span style="font-weight: bold;">W. </span><a href="http://vexxhost.com/">http://vexxhost.com</a></span></div>
</div>
</blockquote>
<p><br /></p>
</body></html>