Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1149599 - Cinder create volume --image-id doesn't support image name
Cinder create volume --image-id doesn't support image name
Status: CLOSED CURRENTRELEASE
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-cinderclient (Show other bugs)
5.0 (RHEL 7)
Unspecified Unspecified
medium Severity medium
: ---
: 8.0 (Liberty)
Assigned To: Eric Harney
nlevinki
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-06 03:53 EDT by Tzach Shefi
Modified: 2016-04-26 17:43 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
With this feature, you can now use Block Storage (cinder) to create a volume by specifying either the image ID or image name.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-30 09:31:27 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Launchpad 1377823 None None None Never
OpenStack gerrit 137166 None None None Never

  None (edit)
Description Tzach Shefi 2014-10-06 03:53:53 EDT
Description of problem: 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.."


Version-Release number of selected component (if applicable):
RHEL7
python-cinderclient-1.0.9-1.el6ost.noarch

How reproducible:
Every time

Steps to Reproduce:
1. Upload an image to glance 
2. Cinder create volume 1 --image-id  "image-name" 
3.

Actual results:

Glance image list has only image called "tshefi1 "

[root@puma51 ~(keystone_admin)]# cinder create 1 --display-name tshefi1 --image-id tshefi-cirrosnap
ERROR: Invalid imageRef provided. (HTTP 400) (Request-ID: req-c964660a-08ad-40e5-8565-0e5558e4c5db)



Expected results:
If we don't have duplicate image names, this command should successfully complete without errors.
Comment 1 Sergey Gotliv 2015-01-15 07:56:06 EST
The fix should be a part of the RHOS 6.0 release.
Comment 3 Lon Hohberger 2015-01-29 12:02:31 EST
This isn't actually in the RHEL OSP 6 release.
Comment 6 Sergey Gotliv 2015-04-15 09:56:17 EDT
Sean,

The upstream patch is merged but will be released only in Kilo, therefore it will be a part of RHOS 7.0. I don't think its a z-stream material, I suggest to push it to 7.0, thoughts?
Comment 7 Sean Cohen 2015-04-15 10:08:21 EDT
(In reply to Sergey Gotliv from comment #6)
> Sean,
> 
> The upstream patch is merged but will be released only in Kilo, therefore it
> will be a part of RHOS 7.0. I don't think its a z-stream material, I suggest
> to push it to 7.0, thoughts?

Acked, setting the target accordingly,
Sean
Comment 11 Eric Harney 2015-10-09 14:57:42 EDT
This is in the Liberty client upstream.  I agree with comment #6 about this not really being z-stream material (just an ease-of-use enhancement).  We should leave this for 8.0 unless there's really a strong need for it.
Comment 12 Sergey Gotliv 2015-11-30 09:31:27 EST
I agree with comment #11, this is a nice enhancement but definitely not a z-stream material. You can use image id not image name in 7.0. Re-targeting an close for 8.0.

Note You need to log in before you can comment on or make changes to this bug.