Skip to content

qa: barbican: restrict python packages with upper-constraints#59241

Merged
cbodley merged 1 commit intoceph:mainfrom
tobias-urdin:openstack-upperconstraints
Aug 19, 2024
Merged

qa: barbican: restrict python packages with upper-constraints#59241
cbodley merged 1 commit intoceph:mainfrom
tobias-urdin:openstack-upperconstraints

Conversation

@tobias-urdin
Copy link
Contributor

We install barbican by doing a pip install directly on the cloned git repository but we don't honor the upper-constraints from the OpenStack Requirements project that handles what versions is supported.

This changes the pip install command that we issue when installing barbican to honor the requirements for the version (derived from the branch) that we use, in
this case it's the 2023.1 release upper-constraints [1].

This prevents us from pulling in untested Python packages.

This only updates Barbican because for the Keystone job we dont directly issue pip but install using tox using the venv environment which already by default sets the constraints as you can see in [2].

[1] https://releases.openstack.org/constraints/upper/2023.1
[2] https://github.com/openstack/keystone/blob/stable/2023.1/tox.ini#L12

Fixes: https://tracker.ceph.com/issues/67444

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@tobias-urdin tobias-urdin requested a review from a team as a code owner August 15, 2024 15:23
@github-actions github-actions bot added the tests label Aug 15, 2024
@cbodley cbodley added the rgw label Aug 15, 2024
@tobias-urdin tobias-urdin force-pushed the openstack-upperconstraints branch from 1fa6b09 to 55c6d70 Compare August 16, 2024 05:50
We install barbican by doing a pip install directly on the
cloned git repository but we don't honor the upper-constraints
from the OpenStack Requirements project that handles what
versions is supported.

This changes the pip install command that we issue when
installing barbican to honor the requirements for the
version (derived from the branch) that we use, in
this case it's the 2023.1 release upper-constraints [1].

This prevents us from pulling in untested Python packages.

This only updates Barbican because for the Keystone job
we dont directly issue pip but install using tox using the
`venv` environment which already by default sets the
constraints as you can see in [2].

[1] https://releases.openstack.org/constraints/upper/2023.1
[2] https://github.com/openstack/keystone/blob/stable/2023.1/tox.ini#L12

Fixes: https://tracker.ceph.com/issues/67444
Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
@tobias-urdin tobias-urdin force-pushed the openstack-upperconstraints branch from 55c6d70 to bbcb820 Compare August 19, 2024 13:02
@tobias-urdin
Copy link
Contributor Author

@cbodley any luck with this one? (pushed a commit msg change to include signed-off-by)

@cbodley
Copy link
Contributor

cbodley commented Aug 19, 2024

passed qa in https://pulpito.ceph.com/cbodley-2024-08-19_13:36:59-rgw-wip-67464-distro-default-smithi/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants