Go to file
Luan Nunes Utimura e7abc4762e stx-openstackclients: Move patched clients to DIST
Ever since we migrated to containerized clients, it has been observed
that two clients -- `cinderclient` and `openstackclient` -- have lost an
additional parameter that was added by patches [1] and [2]:
`--location`.

Apparently, this is happening because the build of this container image
is prioritizing the download of indexed packages rather than the use of
the packages we deliver within the wheels tarball (which are patched
with modifications specific to StarlingX).

According to [3], when we specify an extra source of wheels for `pip`
with `--find-links` -- which is what `openstack/loci` does [4] -- it
does not mean that `pip` will necessarily prioritize this source over
others, such as PyPi.

Therefore, to ensure that our patched clients are used in the container
image, we moved them from `PIP_PACKAGES` to `DIST_PACKAGES` in this
change.

Note: The other clients can continue to be installed from indexed
      packages. For this reason, they remain in `PIP_PACKAGES`.

[1] https://opendev.org/starlingx/openstack-armada-app/src/branch/master/upstream/openstack/python-cinderclient/debian/patches/0001-Add-location-parameter-for-volume-backup-creation.patch
[2] https://opendev.org/starlingx/openstack-armada-app/src/branch/master/upstream/openstack/python-openstackclient/debian/patches/0002-Add-location-parameter-for-volume-backup-creation.patch
[3] https://github.com/pypa/pip/issues/9959
[4] efccd0a853/scripts/pip_install.sh (L7)

Test Plan:
PASS - Build `stx-openstackclients` container image
PASS - Run image and confirm that both clients have the --location
       parameter:

       1. docker run -it <user>/stx-openstackclients:<tag> bash
       2. openstack volume backup create -h
       3. cinder help backup-create

Closes-Bug: 2036986

Co-Authored-By: Lucas de Ataides <lucas.deataidesbarreto@windriver.com>
Co-Authored-By: Romulo Leite <romulo.leite@windriver.com>
Change-Id: I4eeece7fc4a98b5254ca9367ca85c14ef5df7f3c
Signed-off-by: Luan Nunes Utimura <LuanNunes.Utimura@windriver.com>
(cherry picked from commit e25852370e)
2023-10-11 09:48:41 -03:00
2023-04-28 12:38:52 -04:00
2021-09-09 11:27:54 -04:00
2022-12-23 15:53:55 +00:00
Description
StarlingX OpenStack Armada App
13 MiB
Languages
Python 97.6%
Smarty 1.4%
Makefile 0.7%
Shell 0.3%