From 4b1e0867d0ce3f31d4536cc0049c091e9b956b1d Mon Sep 17 00:00:00 2001 From: Mike DePaulo Date: Thu, 15 Jul 2021 14:37:58 -0400 Subject: [PATCH] Problem: pulp_installer preflight check fails on EL7 when not installing pulp-rpm. Solution: Add logic for the preflight to use the SCLs in its PATH. fixes: #9093 --- CHANGES/9093.bugfix | 1 + roles/pulp_common/tasks/preflight_function.yml | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 CHANGES/9093.bugfix diff --git a/CHANGES/9093.bugfix b/CHANGES/9093.bugfix new file mode 100644 index 000000000..9cf4b1806 --- /dev/null +++ b/CHANGES/9093.bugfix @@ -0,0 +1 @@ +Fixed the pre-flight check accidentally producing an error (and accidentally enforcing) on EL7 when not installing pulp-rpm. This bug was introduced in 3.11.0. diff --git a/roles/pulp_common/tasks/preflight_function.yml b/roles/pulp_common/tasks/preflight_function.yml index 3ba203138..00c4fdc2e 100644 --- a/roles/pulp_common/tasks/preflight_function.yml +++ b/roles/pulp_common/tasks/preflight_function.yml @@ -43,6 +43,8 @@ environment: LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 + SETUPTOOLS_USE_DISTUTILS: stdlib + PATH: "{{ pulp_path }}" failed_when: '{{ failed_condition | default("compatibility.rc != 0") }}' changed_when: false become: true