v2/shares list _instances uses wrong manager

Bug #1966441 reported by Maurice Escher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-manilaclient
Fix Released
Medium
Maurice Escher

Bug Description

Hi,

I wanted to operate on the results of v2/shares list_instances().
But I could not do so, because it uses the ShareManager instead of ShareInstanceManager.

see https://paste.opendev.org/show/bgWN2t5vbfKv8DqqGnWH/

In the example it calls reset_state() method from shares, but I wanted reset_state() from share_instances.

Best,
Maurice

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-manilaclient (master)
Changed in python-manilaclient:
status: New → In Progress
Changed in python-manilaclient:
assignee: nobody → Maurice Escher (maurice-escher)
Changed in python-manilaclient:
importance: Undecided → Medium
milestone: none → zed-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-manilaclient (master)

Reviewed: https://review.opendev.org/c/openstack/python-manilaclient/+/835218
Committed: https://opendev.org/openstack/python-manilaclient/commit/eeece589207c7cf11384c3a94f84ec389b385cbe
Submitter: "Zuul (22348)"
Branch: master

commit eeece589207c7cf11384c3a94f84ec389b385cbe
Author: Maurice Escher <email address hidden>
Date: Fri Mar 25 13:46:27 2022 +0100

    fix manager _list() method when called from another manager

    only occurence of this was listing share_instances at shares

    Closes-Bug: #1966441
    Change-Id: If65dd1e256a9ee50dcda98a9a0804d4986efa014

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

This issue was fixed in the openstack/python-manilaclient 4.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-manilaclient (stable/yoga)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-manilaclient (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/python-manilaclient/+/899838
Committed: https://opendev.org/openstack/python-manilaclient/commit/9a33475447d81ef8e9cee7d4b6fdf72def6416e9
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 9a33475447d81ef8e9cee7d4b6fdf72def6416e9
Author: Maurice Escher <email address hidden>
Date: Fri Mar 25 13:46:27 2022 +0100

    fix manager _list() method when called from another manager

    only occurence of this was listing share_instances at shares

    Closes-Bug: #1966441
    Change-Id: If65dd1e256a9ee50dcda98a9a0804d4986efa014
    (cherry picked from commit eeece589207c7cf11384c3a94f84ec389b385cbe)

tags: added: in-stable-yoga
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-manilaclient (stable/xena)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-manilaclient (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/python-manilaclient/+/904014

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-manilaclient (stable/xena)

Reviewed: https://review.opendev.org/c/openstack/python-manilaclient/+/904043
Committed: https://opendev.org/openstack/python-manilaclient/commit/2c4a8a806ce58731d8eb3f29a0f204d25a25e9f5
Submitter: "Zuul (22348)"
Branch: stable/xena

commit 2c4a8a806ce58731d8eb3f29a0f204d25a25e9f5
Author: Maurice Escher <email address hidden>
Date: Fri Mar 25 13:46:27 2022 +0100

    fix manager _list() method when called from another manager

    only occurence of this was listing share_instances at shares

    Closes-Bug: #1966441
    Change-Id: If65dd1e256a9ee50dcda98a9a0804d4986efa014
    (cherry picked from commit eeece589207c7cf11384c3a94f84ec389b385cbe)
    (cherry picked from commit 9a33475447d81ef8e9cee7d4b6fdf72def6416e9)

tags: added: in-stable-xena
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-manilaclient (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/python-manilaclient/+/904014
Committed: https://opendev.org/openstack/python-manilaclient/commit/6283c0f2d03e8c7e42f963b3e341323af65a681b
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 6283c0f2d03e8c7e42f963b3e341323af65a681b
Author: Maurice Escher <email address hidden>
Date: Fri Mar 25 13:46:27 2022 +0100

    fix manager _list() method when called from another manager

    only occurence of this was listing share_instances at shares

    Closes-Bug: #1966441
    Change-Id: If65dd1e256a9ee50dcda98a9a0804d4986efa014
    (cherry picked from commit eeece589207c7cf11384c3a94f84ec389b385cbe)
    (cherry picked from commit 9a33475447d81ef8e9cee7d4b6fdf72def6416e9)
    (cherry picked from commit 2c4a8a806ce58731d8eb3f29a0f204d25a25e9f5)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-manilaclient yoga-eom

This issue was fixed in the openstack/python-manilaclient yoga-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-manilaclient wallaby-eom

This issue was fixed in the openstack/python-manilaclient wallaby-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-manilaclient xena-eom

This issue was fixed in the openstack/python-manilaclient xena-eom 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.