'search_opts' unexpected keyword argument for resource manager list()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-cinderclient |
Fix Released
|
Undecided
|
Chen Xiao | ||
python-cinderclient (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Location: cinderclient.
Method: findall
Version: cinder/cinderclient 1.0.7.76, latest master branch as of Nov. 6, 2013
The following three cinder commands yield the following error:
Commands:
type-key
encryption-
encryption-
ERROR: list() got an unexpected keyword argument 'search_opts'
I've traced this error to the findall() method in the cinderclient.
A temporary work around to get the above commands to work is to use the
resource ID instead of the resource name. The query for the ID uses a
different code path, bypassing the 'search_opts' problem.
Proposed Fix:
Add a 'search_opts' keyword argument to both resource managers and implement the required functionality. The argument should also be added to the list() signature in the cinderclient.
Note:
There are several other resource managers that lack the list() 'search_opts' keyword argument. See the VolumeBackupMan
Related branches
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in python-cinderclient: | |
status: | New → Confirmed |
Changed in python-cinderclient: | |
milestone: | none → 1.3.1 |
status: | Fix Committed → Fix Released |
@Peter, will you fix this bug, This bug affect me too, If you will not, I can fix it.