Specify image_id with 'glance add'

Bug #945173 reported by Brian Lamar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Brian Lamar

Bug Description

Currently the image_add() method in bin/glance says the following:

----------------------------------------------------------------------------------------------------------
SPECIFYING IMAGE METADATA
===============================================================================

All field/value pairs are converted into a mapping that is passed
to Glance that represents the metadata for an image.

Field names of note:

id Optional. If not specified, an image identifier will be
                    automatically assigned.
----------------------------------------------------------------------------------------------------------

This seems to say that if "id" is specified the image_id will be set to the given id. However, bin/glance instead sets "id" as a metadata item on the image, which isn't as helpful. The fix to get the code in line with the comments should be pretty simple.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/4834

Changed in glance:
assignee: nobody → Brian Lamar (blamar)
status: New → In Progress
Thierry Carrez (ttx)
Changed in glance:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/4834
Committed: http://github.com/openstack/glance/commit/9e640d01498c03e97ba808fbec9477f3e12f8595
Submitter: Jenkins
Branch: master

commit 9e640d01498c03e97ba808fbec9477f3e12f8595
Author: Brian Lamar <email address hidden>
Date: Fri Mar 2 16:49:38 2012 -0500

    Update bin/glance to allow for specifying image id

    Fixes bug 945173

    Change-Id: Ic33db6ab846064b142cdb8e79a4fb7a0cb52b0c4

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.