<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 14, 2013 at 7:07 PM, Vishvananda Ishaya <span dir="ltr"><<a href="mailto:vishvananda@gmail.com" target="_blank">vishvananda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div class="im"><br><div><div>On Jan 14, 2013, at 9:28 AM, Antonio Messina <<a href="mailto:antonio.s.messina@gmail.com" target="_blank">antonio.s.messina@gmail.com</a>> wrote:</div>
<br><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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br>
On Jan 14, 2013, at 7:49 AM, Jay Pipes <<a href="mailto:jaypipes@gmail.com" target="_blank">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><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></blockquote><div><br>I just misread: instead of d), I've read something like <br><br> e) modify horizon to list ec2 images id together with glance uuid<br></div><div><br>I will try to better explain the issue: <br>
</div><div><br></div><div>I want my users to be able to customize some of the images already present on our cloud by creating snapshots. Then, they should be able to use our software (which uses EC2 api) to run their jobs. Our software is non-interactive, so I can't print a list from which the user can chose the correct image, the user must write the id on a configuration file.<br>
</div></div><br></div><div class="gmail_extra">I thing d) or e) would be fine, but d) will make our use case hard to apply to other clouds, while if OpenStack would accept a patch for e) we could be able to use other clouds as well...<br>
<br>.a.<br><br></div><div class="gmail_extra">-- <br><a href="mailto:antonio.s.messina@gmail.com" target="_blank">antonio.s.messina@gmail.com</a><br>GC3: Grid Computing Competence Center<br><a href="http://www.gc3.uzh.ch/" target="_blank">http://www.gc3.uzh.ch/</a><br>
University of Zurich<br>Winterthurerstrasse 190<br>CH-8057 Zurich Switzerland
</div></div>