Bug 1960710 - manila's OSC shell does not perform version auto negotiation
Summary: manila's OSC shell does not perform version auto negotiation
Keywords:
Status: NEW
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-manilaclient
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Goutham Pacha Ravi
QA Contact: vhariria
Andy Stillman
URL:
Whiteboard:
Depends On:
Blocks: 1707979
TreeView+ depends on / blocked
 
Reported: 2021-05-14 16:27 UTC by Emilien Macchi
Modified: 2022-11-24 08:37 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1960490 0 None None None 2022-05-11 14:16:22 UTC
Red Hat Issue Tracker OSP-3906 0 None None None 2022-02-09 15:09:17 UTC

Description Emilien Macchi 2021-05-14 16:27:06 UTC
When deploying Manila with TripleO from master, it's impossible to create shares using openstackclient from the Undercloud because the version of Manila API is too old for manilaclient.

$ rpm -qa|grep manilaclient
python3-manilaclient-2.6.0-0.20210323054047.1075210.el8.noarch

$ openstack share type create cephfsnfstype false
Version 2.63 is not supported by the API. Minimum is 2.0 and maximum is 2.60. (HTTP 406) (Request-ID: req-cb62d943-ea63-4cd2-b3d9-5130bb3b0e1a)

Manila API is latest from tripleo master.
It works fine if the manilaclient installed is olded (tested on python3-manilaclient-2.1.0-2.fc33.noarch).

Comment 1 Goutham Pacha Ravi 2021-05-14 18:17:37 UTC
Hi Emilien, 

manilaclient doesn't yet have the API negotiation bits of the OpenStackClient. However, this looks like an anomaly, the latest from tripleo master should bring in version 2.63 [1] (which the client is requesting) - but somehow manila API is still at 2.60. Perhaps the latest wallaby code hasn't been promoted yet?

As a workaround for the problem you're hitting, you can set a version if you wish with:


  $ openstack --os-share-api-version 2.60 share type create cephfsnfstype false

alternatively, via env variable:

  $ export OS_SHARE_API_VERSION=2.60


[1] https://docs.openstack.org/manila/latest/contributor/api_microversion_history.html#maximum-in-wallaby

Comment 2 Emilien Macchi 2021-05-16 00:59:52 UTC
(In reply to Goutham Pacha Ravi from comment #1)
> As a workaround for the problem you're hitting, you can set a version if you
> wish with:
> 
> 
>   $ openstack --os-share-api-version 2.60 share type create cephfsnfstype
> false

Thank you!


Note You need to log in before you can comment on or make changes to this bug.