Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Drop support for upgrading from RPM packages prior to 3.6.
Browse files Browse the repository at this point in the history
Fixes: #814
  • Loading branch information
mikedep333 committed Dec 16, 2021
1 parent a24965e commit 2036abf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/814.removal
@@ -0,0 +1 @@
No longer support upgrading from packages prior to 3.6. Instead, users should download and run pulp_installer 3.14 with a 3.14 rpm repo, then upgrade to the current version.
11 changes: 11 additions & 0 deletions roles/pulp_common/tasks/main.yml
Expand Up @@ -69,6 +69,17 @@
package_facts:
manager: "auto"

- name: If in packages mode, check if we are upgrading from a supported version
fail:
msg: >
Pulp version {{ ansible_facts.packages['python3-pulpcore'].0.version }} is installed.
Pulp Installer does not support support upgrading from RPM packages prior to 3.6.
Please run Pulp Installer 3.14 with a 3.14 repo, then this version of Pulp Installer.
when:
- pulp_install_source == 'packages'
# python3-pulpcore was the package name back in the < 3.15 era
- ansible_facts.packages['python3-pulpcore'].0.version | default('99.99') is version('3.6', '<')

# Note: We cannot use `systemd-path search-binaries-default` because
# it wasn't added until systemd 239. Thus no CentOS 7 or Fedora 28
# support, etc.
Expand Down

0 comments on commit 2036abf

Please sign in to comment.