OSC: version discovery missing

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

Bug Description

Hi,

I have a manila installation running xena with a max apiversion 2.65.

I installed the client version 3.2.0.

Attempting a "openstack share list" returns the error "Version 2.66 is not supported by the API. Minimum is 2.0 and maximum is 2.65. (HTTP 406)"

I'm used to the manila command, which negotiates the max supported version between client and server. And my expectation is, that this should work the same way for osc:
if no --os-share-api-version (or env OS_SHARE_API_VERSION) is specified, it should default to the highest version that both server and client can support.

E.g. in my example it should make the call with microversion 2.65 (not 2.66).
If I had running wallaby it should make the call with microversion 2.63 etc.

Or is the expectation that I make sure to have a matching client version installed?

BR,
Maurice

Revision history for this message
Maurice Escher (maurice-escher) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-manilaclient (master)
Changed in python-manilaclient:
status: New → In Progress
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/+/874752
Committed: https://opendev.org/openstack/python-manilaclient/commit/95763cdb0557aefd165487847d2f82f7fcf978f9
Submitter: "Zuul (22348)"
Branch: master

commit 95763cdb0557aefd165487847d2f82f7fcf978f9
Author: Kiran Pawar <email address hidden>
Date: Tue Feb 21 11:03:51 2023 +0000

    Use suitable api version for OSC.

    In manilaclient i.e. manila commands, if user supplied version is above
    the max version supported by server, manilaclient adjust to max version.
    This was missing in openstack commands which results in failure that
    version is not supported. Fix by discovering most suitable version and
    use it for client creation.

    Closes-bug: #1960490
    Change-Id: I734f6953e8b0266b38f0cb6e1581c4201f2bd676

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

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

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

Reviewed: https://review.opendev.org/c/openstack/python-manilaclient/+/877639
Committed: https://opendev.org/openstack/python-manilaclient/commit/9204ba6674ac33821911016f8733e9512a4f32f4
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit 9204ba6674ac33821911016f8733e9512a4f32f4
Author: Kiran Pawar <email address hidden>
Date: Tue Feb 21 11:03:51 2023 +0000

    Use suitable api version for OSC.

    In manilaclient i.e. manila commands, if user supplied version is above
    the max version supported by server, manilaclient adjust to max version.
    This was missing in openstack commands which results in failure that
    version is not supported. Fix by discovering most suitable version and
    use it for client creation.

    Closes-bug: #1960490
    Change-Id: I734f6953e8b0266b38f0cb6e1581c4201f2bd676
    (cherry picked from commit 95763cdb0557aefd165487847d2f82f7fcf978f9)

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 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/+/878037

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

Reviewed: https://review.opendev.org/c/openstack/python-manilaclient/+/877640
Committed: https://opendev.org/openstack/python-manilaclient/commit/71c78051bbb22257dd40945f3faf541da7acdeb9
Submitter: "Zuul (22348)"
Branch: stable/zed

commit 71c78051bbb22257dd40945f3faf541da7acdeb9
Author: Kiran Pawar <email address hidden>
Date: Tue Feb 21 11:03:51 2023 +0000

    Use suitable api version for OSC.

    In manilaclient i.e. manila commands, if user supplied version is above
    the max version supported by server, manilaclient adjust to max version.
    This was missing in openstack commands which results in failure that
    version is not supported. Fix by discovering most suitable version and
    use it for client creation.

    Closes-bug: #1960490
    Change-Id: I734f6953e8b0266b38f0cb6e1581c4201f2bd676
    (cherry picked from commit 95763cdb0557aefd165487847d2f82f7fcf978f9)
    (cherry picked from commit 9204ba6674ac33821911016f8733e9512a4f32f4)

tags: added: in-stable-zed
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/+/878035
Committed: https://opendev.org/openstack/python-manilaclient/commit/40e71538005936af275279d0b3936c7cd2961e01
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 40e71538005936af275279d0b3936c7cd2961e01
Author: Kiran Pawar <email address hidden>
Date: Tue Feb 21 11:03:51 2023 +0000

    Use suitable api version for OSC.

    In manilaclient i.e. manila commands, if user supplied version is above
    the max version supported by server, manilaclient adjust to max version.
    This was missing in openstack commands which results in failure that
    version is not supported. Fix by discovering most suitable version and
    use it for client creation.

    Closes-bug: #1960490
    Change-Id: I734f6953e8b0266b38f0cb6e1581c4201f2bd676
    (cherry picked from commit 95763cdb0557aefd165487847d2f82f7fcf978f9)
    (cherry picked from commit 9204ba6674ac33821911016f8733e9512a4f32f4)
    (cherry picked from commit 71c78051bbb22257dd40945f3faf541da7acdeb9)

tags: added: in-stable-yoga
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/+/878036
Committed: https://opendev.org/openstack/python-manilaclient/commit/135cdf98c3178276346d8b7764f8877111491919
Submitter: "Zuul (22348)"
Branch: stable/xena

commit 135cdf98c3178276346d8b7764f8877111491919
Author: Kiran Pawar <email address hidden>
Date: Tue Feb 21 11:03:51 2023 +0000

    Use suitable api version for OSC.

    In manilaclient i.e. manila commands, if user supplied version is above
    the max version supported by server, manilaclient adjust to max version.
    This was missing in openstack commands which results in failure that
    version is not supported. Fix by discovering most suitable version and
    use it for client creation.

    Closes-bug: #1960490
    Change-Id: I734f6953e8b0266b38f0cb6e1581c4201f2bd676
    (cherry picked from commit 95763cdb0557aefd165487847d2f82f7fcf978f9)
    (cherry picked from commit 9204ba6674ac33821911016f8733e9512a4f32f4)
    (cherry picked from commit 71c78051bbb22257dd40945f3faf541da7acdeb9)
    (cherry picked from commit 82ad5031cbfcdd7a28c999ea9d6999b144c57b24)

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

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

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

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

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

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

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

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

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

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

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/+/878037
Committed: https://opendev.org/openstack/python-manilaclient/commit/9846fdf68f002b8493c6adb164f7ed6da3228bdd
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 9846fdf68f002b8493c6adb164f7ed6da3228bdd
Author: Kiran Pawar <email address hidden>
Date: Tue Feb 21 11:03:51 2023 +0000

    Use suitable api version for OSC.

    In manilaclient i.e. manila commands, if user supplied version is above
    the max version supported by server, manilaclient adjust to max version.
    This was missing in openstack commands which results in failure that
    version is not supported. Fix by discovering most suitable version and
    use it for client creation.

    Closes-bug: #1960490
    Change-Id: I734f6953e8b0266b38f0cb6e1581c4201f2bd676
    (cherry picked from commit 95763cdb0557aefd165487847d2f82f7fcf978f9)
    (cherry picked from commit 9204ba6674ac33821911016f8733e9512a4f32f4)
    (cherry picked from commit 71c78051bbb22257dd40945f3faf541da7acdeb9)
    (cherry picked from commit 82ad5031cbfcdd7a28c999ea9d6999b144c57b24)
    (cherry picked from commit 744c856bf3f382ba686b1d683f545ef6693fa3dd)

tags: added: in-stable-wallaby
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.

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.