Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply global-pins as constraints to ensure complete pinning
The current pinning method for pip/setuptools/wheel works for the initial setup of a host or python venv. However, when a python package which has one of these in its requirements is installed onto the host or into the venv and the '--upgrade' option is given to pip, the package will be upgraded to the latest version available within the given constraints. As OpenStack's requirements management process does not cater for the pip, setuptools or wheel packages we need to ensure that all python install tasks prior to the repo being built use our global pins as a constraint in addition to the OpenStack uppser constraints. As pip's --constraints option can only take a file as an argument we have to copy the global pins file to the target which will use it. This file can be removed from the host once the repo is built. Combined backport of: - https://review.openstack.org/424283 - https://review.openstack.org/424540 Closes-Bug: #1658773 Closes-Bug: #1658948 Change-Id: Iccbb2e4a126a1cc7a4c94ab41b7ce8ef54d89990 (cherry picked from commit 253ea10)
- Loading branch information
1 parent
08fde8c
commit 3859663
Showing
4 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/issue-ansible-bootstrap-pins-637af623a1d5aef4.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
issues: | ||
- The bootstrap-ansible script may fail with an incompatible requirement | ||
when installing OpenStack-Ansible 14.0.6 and before. See | ||
https://bugs.launchpad.net/openstack-ansible/+bug/1658948 for more | ||
details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters