Issue to install Pulp via Ansible

Problem:
Issue to install Pulp via Ansible according to Pulp documentation.

Pulpcore version:
I’m trying to install Pulp 3 vi Ansible

Operating system - distribution and version:
RHEL 8.1

Other relevant data:
Hello Sirs, as u can see below, via ansible the pulp install process is not working.
This is the error messages I’m getting from Ansible task.
As you can see below, the python3.8 is already installed on the machine

[root@imip-p-euw-pulp-01 yum.repos.d]# python3.8 -V
Python 3.8.12
[root@imip-p-euw-pulp-01 yum.repos.d]#

Error via SO
I have tried also to run the dfn manually on the server
[root@imip-p-euw-pulp-01 yum.repos.d]# dnf -y module enable python38
Updating Subscription Management repositories.
Last metadata expiration check: 0:15:37 ago on Mon Nov 15 15:27:58 2021.
Error: Problems in request:
missing groups or modules: python38
[root@imip-p-euw-pulp-01 yum.repos.d]#

Error via Ansible
TASK [pulp.pulp_installer.pulp_common : Enable Python 3.8 module stream] ************************************************************************************************************************************fatal: [20.86.199.139]: FAILED! => {“changed”: false, “cmd”: [“dnf”, “-y”, “module”, “enable”, “python38”], “delta”: “0:00:09.698246”, “end”: “2021-11-15 15:28:00.821939”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-11-15 15:27:51.123693”, “stderr”: “Error: Problems in request:\nmissing groups or modules: python38”, “stderr_lines”: [“Error: Problems in request:”, “missing groups or modules: python38”], “stdout”: "Updating Subscription Management repositories.\nPuppet Labs Collection EL 8 - x86_64 5.7 kB/s | 2.5 kB 00:00 \nPuppet 6 Repository el 8 - x86_64 11 kB/s | 2.5 kB 00:00 \nRed Hat Ansible Engine 2.9 for RHEL 8 x86_64 (R 19 kB/s | 4.0 kB 00:00 \nRed Hat Enterprise Linux 8 for x86_64 - BaseOS 17 kB/s | 4.1 kB 00:00 \nRed Hat CodeReady Linux Builder for RHEL 8 x86_ 23 kB/s | 4.5 kB 00:00 \nRed Hat Enterprise Linux 8 for x86_64 - AppStre 22 kB/s | 4.5 kB 00:00 \nRed Hat Enterprise Linux 8 for x86_64 - BaseOS 3.7 kB/s | 2.4
kB 00:00 \nRed Hat Enterprise Linux 8 for x86_64 - AppStre 4.3 kB/s | 2.8 kB 00:00 \nMicrosoft Azure RPMs for RHEL8 Extended Update 3.9 kB/s | 2.1 kB 00:00 ", “stdout_lines”: [“Updating Subscription Management repositories.”, "Puppet Labs Collection EL 8 - x86_64 5.7 kB/s | 2.5 kB 00:00 ", "Puppet 6 Repository el 8 - x86_64 11 kB/s | 2.5 kB 00:00
", "Red Hat Ansible Engine 2.9 for RHEL 8 x86_64 (R 19 kB/s | 4.0 kB 00:00 ", "Red Hat Enterprise Linux 8 for x86_64 - BaseOS 17 kB/s | 4.1 kB 00:00 ", "Red Hat CodeReady Linux Builder for RHEL 8 x86_ 23 kB/s | 4.5 kB 00:00 ", "Red Hat Enterprise Linux 8 for x86_64 - AppStre 22 kB/s | 4.5 kB 00:00 ", "Red Hat Enterprise Linux 8 for x86_64 - BaseOS 3.7 kB/s | 2.4 kB 00:00 ", "Red Hat Enterprise Linux 8 for x86_64 - AppStre 4.3 kB/s | 2.8 kB 00:00 ", "Microsoft Azure RPMs for RHEL8 Extended Update 3.9 kB/s | 2.1 kB 00:00 "]}

Sorry but I’m new in Pulp. Can you please help me with that?
I really appreciate your time and help

1 Like

Hi Fabiano,

Sorry you are running into this issue.

Unfortunately, the installer as it is written now, requires RHEL 8.2. Because RHEL 8.2 provides that module:

However, we probably can make it work. Because it appears that you got your Python 3.8 from an external source.

We can probably fix this with 2 steps:

  1. You removing that task “Enable Python 3.8 module stream” from (~.ansible/collections/ansible_collections/pulp/pulp_installer/roles/pulp_common/tasks/install.yml ).

  2. Set the Ansible variable pulp_python_interpreter to the path to your python 3.8 binary named “python3.8”.

You can find it by running:
$ which python3.8

(No need to set it if it is at /usr/bin/python3.8).

Let me know if that works. If it does, I can prescribe a proper fix for the installer.

3 Likes

Hello Mike,
I have upgraded my RHEL from 8.1 to 8.2 and looks like it worked however I’m facing this issue right now.
If I set up the code “no_log: true” to “no_log:false”, also doesn’t work.
Do you have any suggestion?

TASK [pulp.pulp_installer.pulp_database_config : Set the Pulp admin user’s password] ************************************************************************************************************************fatal: [20.86.239.41]: FAILED! => {“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”, “changed”: false}

Hello, I just ignore that error, but looks like some services weren’t started as you can see below.
Can u please help me ?

It looks like the pulpcore worker services are either not starting, or failing to stay running.

Could you run this command?
$ sudo systemctl status --full pulpcore-worker@1.service