<div dir="ltr"><div><div><div>Apparently not. This is the output of glance image-show:<br><br>+-----------------------+--------------------------------------+<br>| Property              | Value                                |<br>
+-----------------------+--------------------------------------+<br>| Property 'kernel_id'  | e1c78f4d-eca9-4979-9ee0-54019d5f79c2 |<br>| Property 'ramdisk_id' | 99c8443e-c3b2-4aef-8bf8-79cc58f127a2 |<br>| checksum              | 2f81976cae15c16ef0010c51e3a6c163     |<br>
| container_format      | ami                                  |<br>| created_at            | 2012-12-04T22:59:13                  |<br>| deleted               | False                                |<br>| disk_format           | ami                                  |<br>
| id                    | 67b612ac-ab20-4227-92fc-adf92841ba8b |<br>| is_public             | True                                 |<br>| min_disk              | 0                                    |<br>| min_ram               | 0                                    |<br>
| name                  | cirros-0.3.0-x86_64-uec              |<br>| owner                 | ab267870ac72450d925a437f9b7c064a     |<br>| protected             | False                                |<br>| size                  | 25165824                             |<br>
| status                | active                               |<br>| updated_at            | 2012-12-04T22:59:14                  |<br>+-----------------------+--------------------------------------+<br><br><br></div>Looking at the code in <a href="https://github.com/openstack/nova/blob/master/nova/api/ec2/ec2utils.py#L70">https://github.com/openstack/nova/blob/master/nova/api/ec2/ec2utils.py#L70</a> and <a href="https://github.com/openstack/nova/blob/master/nova/api/ec2/ec2utils.py#L126">https://github.com/openstack/nova/blob/master/nova/api/ec2/ec2utils.py#L126</a> it seems that the conversion is simply done by getting an id of type integer (not uuid-like string) and then converting it to hex form and appending it to the string 'ami-'<br>
<br></div>Question is: where this id comes from and is there any way to show it in the horizon web interface?<br><br></div>.a.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jan 13, 2013 at 10:17 PM, Jay Pipes <span dir="ltr"><<a href="mailto:jaypipes@gmail.com" target="_blank">jaypipes@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The EC2-style image ID would probably be stored in the custom key/value<br>
pairs in the Glance image record for the image... so if you do a glance<br>
image-show <IMAGE_UUID> you should see the EC2 image ID in there...<br>
<br>
-jay<br>
<div class="im"><br>
On 01/11/2013 09:51 AM, Antonio Messina wrote:<br>
> Hi all,<br>
><br>
> I am using boto library to access an folsom installation, and I have a<br>
> few doubts regarding image IDs.<br>
><br>
> I understand that boto uses ec2-style id for images (something like ami<br>
> ami-<16digit number>) and that nova API converts glance IDs to EC2 id.<br>
> However, it seems that there is no way from the horizon web interface<br>
> nor from euca-tools to get this mapping.<br>
><br>
> How can I know the EC2 id of an image, having access only to the web<br>
> interface or boto?<br>
><br>
> I could use the *name* of the instance instead of the ID, but the name<br>
> is not unique...<br>
><br>
> .a.<br>
><br>
> --<br>
</div>> <a href="mailto:antonio.s.messina@gmail.com">antonio.s.messina@gmail.com</a> <mailto:<a href="mailto:antonio.s.messina@gmail.com">antonio.s.messina@gmail.com</a>><br>
<div class="im">> 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<br>
><br>
><br>
</div>> _______________________________________________<br>
> Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
> Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
><br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div><br><br clear="all"><br>-- <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>