Find Broken for v2 volumes and snapshots

Bug #1292681 reported by Terry Howe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-cinderclient
Fix Released
Undecided
Unassigned

Bug Description

The manager find is broken for volumes and snapshots because they use display_name rather that name for v2.

Terry Howe (thowe-g)
Changed in python-cinderclient:
assignee: nobody → Terry Howe (thowe-g)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-cinderclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/80672

Revision history for this message
Mike Perez (thingee) wrote :

The bug description didn't really make sense to me. In the patch I see you're touching v1. I tried doing a find both by uuid/name in v1 on volumes and snapshot and didn't have problems.

http://paste.openstack.org/show/73534

Revision history for this message
Terry Howe (thowe-g) wrote :

Mike, this is the hack in cinderclient that works around the problem:

https://github.com/openstack/python-cinderclient/blob/master/cinderclient/utils.py#L220

I was fixing this for the unified CLI where find by name does not work for these cases. I don't think the solution in utils.py is a good idea, it just causes extra REST calls for everything else.

Revision history for this message
Terry Howe (thowe-g) wrote :
Terry Howe (thowe-g)
Changed in python-cinderclient:
assignee: Terry Howe (thowe-g) → nobody
Revision history for this message
Ryan McNair (rdmcnair) wrote :
Changed in python-cinderclient:
status: In Progress → Fix Committed
Changed in python-cinderclient:
milestone: none → 1.5.0
Changed in python-cinderclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.