Launchpad

volume transfer request accept does not work

Bug #1633582 reported by Dean Troyer

This bug affects 1 person

Affects Status Importance Assigned to Milestone
python-openstackclient

Fix Released

Medium

Dean Troyer

Bug Description

volume transfer request accept fails every time with CommandError: No volumetransfer with a name or ID of 'xfer-name' exists.

AcceptTransferR equest. take_action( ) uses utils.find_ resource( ) to do a name/ID lookup to locate the transfer object, just like everything else in OpenStack. Only, by definition, the request is going to be in a different project. If the auth'ed user does not have _ADMIN_ permissions this lookup _WILL_ fail in the Cinder API call in cinderclient's VolumeTransferM anager. find() when it tries to list all requests after the VolumeTransferM anager. get() fails. Even by ID. Not sure why yet. Probably also permissions. After all, we can't have projects seeing other projects stuff, except that is the entire purpose of this command.

So, no name lookups for transfer request accept. Nice. Blind POST using only the ID.

Remove the utils.find() call from take_action(). Only ID is allowed here until the Cinder API is changed to also accept name directly.

Read the original on bugs.launchpad.net ↗