Story #5862
closedAs a user, I do not have to worry about pulpcore being accidentally upgraded by plugins requiring other versions
100%
Description
Consider the following scenario:
1. A user installs Pulp 3.1 with ansible-pulp.
2. When they specify pulp_install_plugins, they unknowingly specify 2 plugins: 1 that requires 3.1, and one that requires 3.0.
3. Pulp gets downgraded from 3.1 to 3.0, and does not function due to different ansible installer logic for the pulpcore version.
4. Even if they overcome the installer logic, the other plugin is now broken.
A similar problem can happen for the container builds.
I believe this should be mitigated by refusing to install a plugin that requires a newer version of pulpcore. It catches the problem early on before it becomes bigger. ("poka-yoke")
I propose a pip constraints file, generated to contain only pulpcore at whatever version of pulpcore installed, immediately after pulpcore is installed. All future pip install tasks will specify the constraints file.
https://pip.pypa.io/en/stable/user_guide/#constraints-files
For our ansible installer, we will use "extra_args" for the constraints argument.
https://docs.ansible.com/ansible/latest/modules/pip_module.html
Added by Mike DePaulo almost 5 years ago
Added by Mike DePaulo almost 5 years ago
Revision 8bb7db20 | View on GitHub
Story: As a user, I do not have to worry about pulpcore being accidentally upgraded by plugins requiring other versions
Fixes: #5863 Generate and use a pulpcore constraints file in ansible-pulp
re: #5862 As a user, I do not have to worry about pulpcore being accidentally upgraded by plugins requiring other versions
re: 5890 [Epic] The ansible-pulp installer needs to handle multiple versions of Pulp
Updated by dkliban@redhat.com about 4 years ago
- Status changed from NEW to CLOSED - CURRENTRELEASE
Story: As a user, I do not have to worry about pulpcore being accidentally upgraded by plugins requiring other versions
Fixes: #5863 Generate and use a pulpcore constraints file in ansible-pulp
re: #5862 As a user, I do not have to worry about pulpcore being accidentally upgraded by plugins requiring other versions
re: 5890 [Epic] The ansible-pulp installer needs to handle multiple versions of Pulp