Bug 1275244

Summary: --volume-type argument doesn't accept volume-type by name
Product: Red Hat OpenStack Reporter: David Juran <djuran>
Component: python-cinderclientAssignee: Eric Harney <eharney>
Status: CLOSED UPSTREAM QA Contact: nlevinki <nlevinki>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0 (Kilo)CC: eharney, jruzicka, sgotliv, yeylon
Target Milestone: ---   
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-12 07:39:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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