VolumeAttachmentManager methods aren't using cinderclient.api_versions.wraps decorator for microversion boundaries

Bug #1715732 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-cinderclient
Fix Released
High
John Griffith

Bug Description

I noticed this in this review:

https://review.openstack.org/#/c/493263/2/cinderclient/v3/attachments.py

This code is already merged, but these methods should be using this decorator:

https://github.com/openstack/python-cinderclient/blob/f447b07490e36b513b70c557ae0a8327c2b109df/cinderclient/api_versions.py#L383

Like it's used here:

https://github.com/openstack/python-cinderclient/blob/f447b07490e36b513b70c557ae0a8327c2b109df/cinderclient/v3/volumes.py#L116

This means that if the client is making a request that doesn't fit that boundary, it will raise a VersionNotFoundForAPIMethod exception.

Changed in python-cinderclient:
status: New → Confirmed
importance: Undecided → High
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/502262

Changed in python-cinderclient:
assignee: nobody → John Griffith (john-griffith)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-cinderclient (master)

Reviewed: https://review.openstack.org/502262
Committed: https://git.openstack.org/cgit/openstack/python-cinderclient/commit/?id=da20fbf45bd094dae2b6a8869d0b5fd4b29b322b
Submitter: Jenkins
Branch: master

commit da20fbf45bd094dae2b6a8869d0b5fd4b29b322b
Author: j-griffith <email address hidden>
Date: Sat Sep 9 18:03:08 2017 +0000

    Add api_version_wraps to attachment-complete

    The attachment-complete method didn't include the version
    checking. This patch adds that and adds a couple of tests.

    Change-Id: I63dba6ee6d56bb63a79f3ad2ef3412ebd9c1ce07
    Closes-Bug: #1715732

Changed in python-cinderclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-cinderclient 3.3.0

This issue was fixed in the openstack/python-cinderclient 3.3.0 release.

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.