manilaclient's OSC plugin uses openstackclient code but doesn't specify it in requirements.txt

Bug #1873533 reported by Goutham Pacha Ravi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-manilaclient
Invalid
Undecided
Unassigned

Bug Description

python-manilaclient includes an OSC plugin since its Ussuri release [1]

It's currently importing code from python-openstackclient, but python-openstackclient hasn't been added to its requirements.txt [2]:

https://opendev.org/openstack/python-manilaclient/src/commit/3371c543036a0f9f7b485489c490de4bd8cb52d1/manilaclient/osc/v2/share.py#L17

Feels like an anti pattern to use code from openstackclient, when there is an osc-lib for reusable, common code. Neutronclient has a copy of this common code in their repo to avoid depending on python-openstackclient [3]

[1] https://opendev.org/openstack/python-manilaclient/src/tag/2.0.0/manilaclient/osc
[2] https://opendev.org/openstack/python-manilaclient/src/tag/2.0.0/requirements.txt
[3] https://opendev.org/openstack/python-neutronclient/src/commit/15d99a7d68435132fd2fbd4ba604c3796802a83e/neutronclient/osc/utils.py#L32

Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :

I missed the openstackclient documentation regarding this: https://docs.openstack.org/python-openstackclient/latest/contributor/plugins.html#requirements

Looks like this anti pattern is specifically called out there. As such, this isn't a bug if this is what other projects are doing.

Changed in python-manilaclient:
status: New → Invalid
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.