Cinder create volume --image-id doesn't support image name

Bug #1377823 reported by Tzach Shefi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-cinderclient
Fix Released
Wishlist
Sean McGinnis

Bug Description

When using Cinder create volume 1 --image-id, only image-id is an acceptable value, why can't I not use image-name?
Of course only if my image-list doesn't include duplicate names..

Why is this supported during volume delete for example but not during volume create?

# cinder help delete
usage: cinder delete <volume> [<volume> ...]
Remove volume(s).
Positional arguments:
  <volume> Name or ID of the volume(s) to delete. -> Notice "Name or ID.."

Cinder help create ..
...
  --image-id <image-id>
                        Create volume from image id (Optional, Default=None) --> only image-id

Eric Harney (eharney)
Changed in cinder:
importance: Undecided → Wishlist
Jay Bryant (jsbryant)
tags: added: low-hanging-fruit
Mike Perez (thingee)
no longer affects: cinder
Changed in python-cinderclient:
importance: Undecided → Wishlist
Changed in python-cinderclient:
assignee: nobody → Carol Bouchard (caboucha)
Changed in python-cinderclient:
assignee: Carol Bouchard (caboucha) → nobody
Changed in python-cinderclient:
assignee: nobody → Sean McGinnis (sean-mcginnis)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-cinderclient (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-cinderclient (master)

Reviewed: https://review.openstack.org/137166
Committed: https://git.openstack.org/cgit/openstack/python-cinderclient/commit/?id=616b982b7df1dbd7a50bf65adbdb465aa626f590
Submitter: Jenkins
Branch: master

commit 616b982b7df1dbd7a50bf65adbdb465aa626f590
Author: Sean McGinnis <email address hidden>
Date: Tue Nov 25 12:26:43 2014 -0600

    Add ability to create volume from image by image name

    Follow on change from cinder code to all specifying an
    image by either its name or ID for creating a volume.

    This patch adds the --image option that will take either
    ID or name as input. The service then will attempt to
    locate the image to use and make sure there are not
    multiple images with the same name.

    If both --image-id and --image are used it will favor
    the more explicit ID.

    DocImpact
    Closes-Bug: 1377823

    Change-Id: I77d58258144970fac47da6da6b7870f2931e1823

Changed in python-cinderclient:
status: In Progress → Fix Committed
Changed in python-cinderclient:
milestone: none → 1.3.1
status: Fix Committed → Fix Released
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.