OpenStack Compute (Nova)

images registered via ec2 api have nave attribute 'None'

Reported by Scott Moser on 2012-02-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Undecided
Vish Ishaya

Bug Description

$ cloud-publish-image x86_64 files/cirros-0.3.0-x86_64-disk.img cirros --name cirros-0.3.0-x86_64-disk.imgami-00000011 cirros/cirros-0.3.0-x86_64-disk.img.manifest.xml
$ euca-describe-images ami-00000011
IMAGE ami-00000011 cirros/cirros-0.3.0-x86_64-disk.img.manifest.xml available private x86_64 machine instance-store

$ nova image-list
<snip>
| 2f3e8a10-5673-49a0-86ad-ba6f3c90f141 | None | ACTIVE | |
<snip>

$ nova image-show d4a6107e-e9f5-43dd-8b71-63bd7f77bdf | grep name
| name | None |

$ nova image-show d4a6107e-e9f5-43dd-8b71-63bd7f77bdf | grep location
| metadata image_location | cirros/cirros-0.3.0-x86_64-disk.img.manifest.xml |

So, the image_location gets set right, but the name does not.
It'd be nice if:

 if '--name' parameter was given in the register, that that value was used for 'name'. if not given, then the path would be used.

Changed in nova:
assignee: nobody → Scott Moser (smoser)
status: New → In Progress
Changed in nova:
assignee: Scott Moser (smoser) → Vish Ishaya (vishvananda)

Reviewed: https://review.openstack.org/4025
Committed: http://github.com/openstack/nova/commit/4a2cf658dca26965cb06f478ad030ecda4d7fc43
Submitter: Jenkins
Branch: master

commit 4a2cf658dca26965cb06f478ad030ecda4d7fc43
Author: Scott Moser <email address hidden>
Date: Fri Feb 10 15:19:49 2012 -0500

    populate glance 'name' field through ec2-register

    For images registered via RegisterImage in the ec2 api, populate
    glance's 'name' field. If the name is not supplied in the ec2
    request, then set it to be the location.

    This has the added value of 'glance index' now showing ec2 registered
    images. Previously, they were not listed because of the empty Name
    field.

    Additionally, when responding to DescribeImages in the ec2 api,
    populate the name field. Previously we were not populating this at
    all. In the case where there is no name, use image_location.

    Fixes bug 930314

    Change-Id: I10bcac9ab298a2bf127b5228c62c3cf4f009abd6

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2012-03-20
Changed in nova:
milestone: none → essex-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-rc1 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers