<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jan 14, 2013, at 9:28 AM, Antonio Messina <<a href="mailto:antonio.s.messina@gmail.com">antonio.s.messina@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">On Mon, Jan 14, 2013 at 6:18 PM, Vishvananda Ishaya <span dir="ltr"><<a href="mailto:vishvananda@gmail.com" target="_blank">vishvananda@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Jan 14, 2013, at 7:49 AM, Jay Pipes <<a href="mailto:jaypipes@gmail.com">jaypipes@gmail.com</a>> wrote:<br>
<br>
><br>
> There is an integer key in the s3_images table that stores the map<br>
> between the UUID and the AMI image id:<br>
><br>
> <a href="https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/models.py#L964" target="_blank">https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/models.py#L964</a><br>
><br>
> Not sure this is available via Horizon... sorry.<br>
<br>
</div>Correct. Here are some options:<br>
<br>
a) query the db directly for the mapping<br>
<br>
b) write an api extension to nova that exposes the mapping<br>
<br>
c) write an external utility that syncs the info from the nova db into glance metadata<br>
<br>
d) modify horizon to list images through the ec2 api instead of glance<br></blockquote><div><br></div><div>I guess d)  depends on b), since  we cannot assume horizon is running on the same machine as the nova-api service.<br>
<br></div></div></div></div></blockquote><br></div><div>Not really. The ec2 api exposes ec2_style ids instead of uuids. It seems better to just provide one view of ids to your users. If you are suggesting they use the ec2 api then the uuids may not be needed.</div><div><br></div><div>Vish</div><br></body></html>