Foreman 3 Katello on CentOS 8 Stream

Problem:
/Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/returns: change from ‘notrun’ to [‘0’] failed: ‘pulpcore-manager migrate --noinput’ returned 1 instead of one of [0]

Expected outcome:
Successful installation

Foreman and Proxy versions:
3.0
Foreman and Proxy plugin versions:
Katello 4.2
Distribution and version:
Centos 8 Stream
Other relevant data:
foreman-installer --scenario katello --foreman-initial-admin-username “admin” --foreman-initial-admin-password “password” --foreman-initial-admin-email “enauk@example.com” --foreman-email-smtp-address “smtp.example.com” --foreman-initial-organization “Org-name”

2022-09-06 09:32:25 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-09-06 09:32:37 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-09-06 09:32:37 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2022-09-06 09:32:47 [NOTICE] [configure] Starting system configuration.
2022-09-06 09:33:45 [NOTICE] [configure] 250 configuration steps out of 1990 steps complete.
2022-09-06 09:33:52 [NOTICE] [configure] 500 configuration steps out of 1990 steps complete.
2022-09-06 09:33:53 [NOTICE] [configure] 750 configuration steps out of 1994 steps complete.
2022-09-06 09:33:59 [NOTICE] [configure] 1000 configuration steps out of 1998 steps complete.
2022-09-06 09:34:01 [NOTICE] [configure] 1250 configuration steps out of 2002 steps complete.
2022-09-06 09:34:55 [NOTICE] [configure] 1500 configuration steps out of 2002 steps complete.
2022-09-06 09:34:56 [NOTICE] [configure] 1750 configuration steps out of 2002 steps complete.
2022-09-06 09:35:02 [ERROR ] [configure] ‘pulpcore-manager migrate --noinput’ returned 1 instead of one of [0]
2022-09-06 09:35:02 [ERROR ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/returns: change from ‘notrun’ to [‘0’] failed: ‘pulpcore-manager migrate --noinput’ returned 1 instead of one of [0]
2022-09-06 09:35:03 [NOTICE] [configure] 2000 configuration steps out of 2002 steps complete.
2022-09-06 09:35:09 [NOTICE] [configure] System configuration has finished.

There were errors detected during install.
Please address the errors and re-run the installer to ensure the system is properly configured.
Failing to do so is likely to result in broken functionality.

The full log is at /var/log/foreman-installer/katello.log

I can attach the log if needed.

Try running PULP_SETTINGS=/etc/pulp/settings.py pulpcore-manager migrate manually to check what the actual problem is.

I did and it’s not recognizing pip as installed, but it is.

I went back to CentOS 8.5 and doing the install.

I honestly don’t have time to try it right now but will get back to it in the future.

Also, the installers have dependencies that aren’t installing. Katello cert tools and ruby kafa to name a few. Its like the dependencies in the rpm’s don’t match the repositories.

I’ll message back when I get back to it. Maybe by the end of the next week.

Eric Evans

Digital Data Services LLC

304.660.9080

Digitaldatatechs.com

https://digitaldatatechs.com/

image001.jpg

[root@katello ~]# PULP_SETTINGS=/etc/pulp/settings.py pulpcore-manager migrate

Traceback (most recent call last):

  File "/usr/bin/pulpcore-manager", line 6, in <module>

    from pkg_resources import load_entry_point

  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3095, in <module>

    @_call_aside

  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3079, in _call_aside

    f(*args, **kwargs)

  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3108, in _initialize_master_working_set

    working_set = WorkingSet._build_master()

  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 570, in _build_master

    ws.require(__requires__)

  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 888, in require

    needed = self.resolve(parse_requirements(requirements))

  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 774, in resolve

    raise DistributionNotFound(req, requirers)

pkg_resources.DistributionNotFound: The 'markuppy' distribution was not found and is required by tablib

Eric Evans

Digital Data Services LLC

304.660.9080

Digitaldatatechs.com

https://digitaldatatechs.com/

image001.jpg

Foreman 3.0/Katello 4.2 is not supported anymore. It looks like you are doing a new installation. You should install 3.3/4.5 instead.

Missing dependencies may indicate that you haven’t enabled the katello and pulpcore modules.

may I assume you have EPEL8 enabled on that system? we don’t support such setups (because EPEL brings partially incompatible packages than what we need), but in this particular case a dnf install python3-markuppy should fix it.