[Pulp-list] Pulp RHEL8 rpm installation

Winberg Adam Adam.Winberg at smhi.se
Fri Sep 4 05:59:22 UTC 2020


great stuff, thanks for pointing me to the 'nightly' repo, this indeed solves the 'solv' problem.


Thank you!


//Adam


________________________________
From: Mike DePaulo <mikedep333 at redhat.com>
Sent: 03 September 2020 22:52
To: Winberg Adam
Cc: Dennis Kliban; pulp-list at redhat.com
Subject: Re: [Pulp-list] Pulp RHEL8 rpm installation

Hi Adam,

I tested this with pulplift and can confirm that the 3.16 repo has this problem, but the nightly repo does not. (And 3.17 repo doesn't exist yet for el8 for some reason.)

The installer fails at collectstatic for me ("pulp_common : Collect static content"), which is where any python dependency errors are usually caught.

These are the vars I used:
pulp_default_admin_password: password
pulp_install_plugins:
pulp_settings:
pulp_install_source: packages
pulp_api_bind: "unix:/var/run/pulpcore-api/pulpcore-api.sock"
pulp_content_bind: "unix:/var/run/pulpcore-content/pulpcore-content.sock"
pulp_pkg_repo: "https://fedorapeople.org/groups/katello/releases/yum/3.16/pulpcore/el{{ ansible_distribution_major_version }}/x86_64/"
# pulp_pkg_repo: "https://fedorapeople.org/groups/katello/releases/yum/3.17/pulpcore/el{{ ansible_distribution_major_version }}/x86_64/"
# pulp_pkg_repo: "https://fedorapeople.org/groups/katello/releases/yum/nightly/pulpcore/el{{ ansible_distribution_major_version }}/x86_64/"

I hope the nightly repo does suffice for you.

I tried to figure out why this occurred, but will move onto other stuff now (since the pulp project neither supports nor tests the 3.16 repo), and leave you with what I uncovered below.

Remember that the 3.16 repo has pulpcore 3.3, and we're on 3.6 now, and we only support 3.6. Although the installer does generally work with a few older versions of pulpcore, we only test it with the current pulp pypi release, git branches, and the katello nightly RPM repo. It does not seem like an installer issue, because I can reproduce it on the command line with the following commands:

sudo su - pulp --shell /bin/bash

PYTHONPATH=/usr/lib64/python3.6/ DJANGO_SETTINGS_MODULE=pulpcore.app.settings PULP_SETTINGS_FILE=/etc/pulp/settings.py /usr/bin/python3-django-admin collectstatic --noinput --link
(this throws your error.)

pulpcore-manager collectstatic --noinput --link
(latter command is equivalent and throws same error)

Both versions of the libsolv RPM provide this file, I am surprised it is not being loaded:
/usr/lib64/python3.6/site-packages/solv.py
And libsolv is hardly modified between versions:
https://github.com/theforeman/foreman-packaging/commits/rpm/develop/packages/pulpcore/libsolv

Also, it looks like neither katello 3.16 nor 3.17 rc1 support installation on el8 yet:
https://theforeman.org/plugins/katello/3.17/installation/index.html

Also, we are supposed to install pulp-rpm (from the nightly repo, not 3.16) in our molecule-based CI for pulp_installer. The CI installs pulp-file & pulp-rpm for all pip install tests, but not RPM install tests. I'll start on fixing this right now.

-Mike

On Thu, Sep 3, 2020 at 2:38 PM Winberg Adam <Adam.Winberg at smhi.se<mailto:Adam.Winberg at smhi.se>> wrote:

So I've been trying to install pulp3 on RHEL8 from the rpms hosted at https://fedorapeople.org/groups/katello/releases/yum/3.16/pulpcore/


I have not used the pulp_installer but have looked at it to make the install correctly.


However, I can't get the pulp services to start, I get the following error:

...

  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 787, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'solv' distribution was not found and is required by the application

'python3-solv' is installed (it is a dependency for the 'python3-pulp-rpm' package). I don't know enough python to understand why this dependency is not found at runtime, has anyone seen this or knows what the problem is? Has anyone used the pulp_installer to install pulp3 on RHEL/Centos8 with rpms?

Thanks for any help!

//Adam

_______________________________________________
Pulp-list mailing list
Pulp-list at redhat.com<mailto:Pulp-list at redhat.com>
https://www.redhat.com/mailman/listinfo/pulp-list


--

Mike DePaulo

He / Him / His

Service Reliability Engineer, Pulp

Red Hat<https://www.redhat.com/>

IM: mikedep333

GPG: 51745404

[https://marketing-outfit-prod-images.s3-us-west-2.amazonaws.com/f5445ae0c9ddafd5b2f1836854d7416a/Logo-RedHat-Email.png]<https://www.redhat.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20200904/98b469a0/attachment.htm>


More information about the Pulp-list mailing list