Bug 1275244 - --volume-type argument doesn't accept volume-type by name
Summary: --volume-type argument doesn't accept volume-type by name
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-cinderclient
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 8.0 (Liberty)
Assignee: Eric Harney
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-26 11:05 UTC by David Juran
Modified: 2016-04-26 19:55 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-12 07:39:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description David Juran 2015-10-26 11:05:50 UTC
Description of problem:
When e.g. adding access to a cinder volume type using

cinder --os-volume-api-version 2 type-access-add --volume-type

the volume-type must be specified by ID. Specifying it by name does not work, although the help text suggests it should:

$ cinder --os-volume-api-version 2 type-access-add --volume-type djuran_only  --project-id 527875ac00bb41feb4a4018013deca05
ERROR: No volumetype with a name or ID of 'djuran_only' exists.
[stack@osp-d ~(overcloud_admin)]$ cinder type-list
+--------------------------------------+-------------+
|                  ID                  |     Name    |
+--------------------------------------+-------------+
| 45903c41-78e6-4bfe-ac3d-59caba1e9ebe | djuran_only |
+--------------------------------------+-------------+


Version-Release number of selected component (if applicable):
python-cinderclient-1.2.1-1.el7ost.noarch


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