Bug 1043417

Summary: the command cinder type-key lvm set volume_backend_name=LVM_iSCSI fails to run
Product: Red Hat OpenStack Reporter: Yogev Rabl <yrabl>
Component: python-cinderclientAssignee: Jakub Ruzicka <jruzicka>
Status: CLOSED ERRATA QA Contact: Yogev Rabl <yrabl>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.0CC: eharney, jruzicka, mlopes, sclewis, sputhenp, yeylon
Target Milestone: z1Keywords: ZStream
Target Release: 4.0   
Hardware: All   
OS: Linux   
Whiteboard: storage
Fixed In Version: python-cinderclient-1.0.7-2.el6ost Doc Type: Bug Fix
Doc Text:
Previously, a bug in python-cinderclient resource searching resulted in users being unable to set keys for volume types from the Block Storage CLI. Consequently, access to functionality such as Block Storage multi-volume-backend was affected. With this update, the cinderclient patch has been backported from 1.0.8 and the command "cinder type-key <x> set <y>=<z>" now works as expected.
Story Points: ---
Clone Of:
: 1048326 (view as bug list) Environment:
Last Closed: 2014-01-23 14:24:08 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:
Bug Depends On:    
Bug Blocks: 1035766, 1045064, 1056459    

Description Yogev Rabl 2013-12-16 09:36:54 UTC
Description of problem:
The configuration of the Cinder's multiple backends requires the user to set a type key to the volume backend name. The command fail to run, the output says:
ERROR: list() got an unexpected keyword argument 'search_opts'

There's no other mention of it in the logs. 

Version-Release number of selected component (if applicable):
python-cinder-2013.2-9.el6ost.noarch
python-cinderclient-1.0.7-1.el6ost.noarch
openstack-cinder-2013.2-9.el6ost.noarch


How reproducible:
100%

Steps to Reproduce:
1. Follow the procedure of the create multiple backends: 
http://docs.openstack.org/admin-guide-cloud/content//multi_backend.html

Actual results:
The command doesn't work.

Expected results:
The type key is set.

Comment 3 Eric Harney 2013-12-16 17:55:26 UTC
# rpm -qa \*cinder\*
openstack-cinder-doc-2013.2-9.el6ost.noarch
python-cinderclient-1.0.7-1.el6ost.noarch
openstack-cinder-2013.2-9.el6ost.noarch
python-cinder-2013.2-9.el6ost.noarch
# set | grep OS_
OS_AUTH_URL=http://192.168.122.28:35357/v2.0/
OS_PASSWORD=adf3xxx
OS_TENANT_NAME=admin
OS_USERNAME=admin


Seems broken on v1 API, I don't have v2 deployed on this machine.

# cinder type-key lvm set volume_backend_name=asdf
ERROR: list() got an unexpected keyword argument 'search_opts'

Comment 4 Eric Harney 2013-12-16 18:39:45 UTC
This is already fixed upstream.

Comment 6 Yogev Rabl 2014-01-19 09:22:14 UTC
verified on version:
python-cinderclient-1.0.7-2.el6ost.noarch
python-cinder-2013.2.1-4.el6ost.noarch
openstack-cinder-2013.2.1-4.el6ost.noarch

Comment 9 Lon Hohberger 2014-02-04 17:20:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2014-0046.html