Problem:
Initial installation of Katello 4.0RC2 fails, with Pulp steps
Expected outcome:
Installation completes
Foreman and Proxy versions:
foreman-2.4.0-0.4.rc2.el8.noarch
foreman-proxy-2.4.0-0.1.rc2.el8.noarch
Foreman and Proxy plugin versions:
katello-4.0.0-0.9.rc2.el8.noarch
Distribution and version:
Oracle Linux 8.3
Other relevant data:
# foreman-installer --scenario katello \
> --foreman-initial-organization Example \
> --foreman-initial-location "Default Location" \
> --foreman-initial-admin-username admin \
> --foreman-initial-admin-password "MyComplexPassword" \
> --certs-server-cert "/root/foreman_cert/katello_cert.pem" \
> --certs-server-key "/root/foreman_cert/foreman_cert_key.pem" \
> --certs-server-ca-cert "/root/foreman_cert/cacert.crt"
2021-03-03 11:36:32 [NOTICE] [root] Loading default values from puppet modules...
2021-03-03 11:36:35 [NOTICE] [root] ... finished
2021-03-03 11:36:36 [NOTICE] [root] Running validation checks
Executing: katello-certs-check -c "/root/foreman_cert/katello_cert.pem" -k "/root/foreman_cert/foreman_cert_key.pem" -b "/root/foreman_cert/cacert.crt"
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Checking server certificate encoding: [OK]
Checking expiration of certificate: [OK]
Checking expiration of CA bundle: [OK]
Checking if server certificate has CA:TRUE flag [OK]
Checking for private key passphrase: [OK]
Checking to see if the private key matches the certificate: [OK]
Checking CA bundle against the certificate file: [OK]
Checking CA bundle size: 2
[OK]
Checking Subject Alt Name on certificate [OK]
Checking if any Subject Alt Name on certificate matches the Subject CN
[OK]
Checking Key Usage extension on certificate for Key Encipherment [OK]
Checking for use of shortname as CN
[OK]
Validation succeeded
To install the Katello server with the custom certificates, run:
foreman-installer --scenario katello \
--certs-server-cert "/root/foreman_cert/katello_cert.pem" \
--certs-server-key "/root/foreman_cert/foreman_cert_key.pem" \
--certs-server-ca-cert "/root/foreman_cert/cacert.crt"
To update the certificates on a currently running Katello installation, run:
foreman-installer --scenario katello \
--certs-server-cert "/root/foreman_cert/katello_cert.pem" \
--certs-server-key "/root/foreman_cert/foreman_cert_key.pem" \
--certs-server-ca-cert "/root/foreman_cert/cacert.crt" \
--certs-update-server --certs-update-server-ca
To use them inside a NEW $FOREMAN_PROXY, rerun this command with -t foreman-proxy
2021-03-03 11:39:05 [NOTICE] [configure] Starting system configuration.
The total number of configuration tasks may increase during the run.
Observe logs or specify --verbose-log-level to see individual configuration tasks.
2021-03-03 11:39:25 [NOTICE] [configure] 100 out of 1954 done.
2021-03-03 11:39:38 [NOTICE] [configure] 200 out of 1954 done.
2021-03-03 11:40:10 [NOTICE] [configure] 300 out of 1954 done.
2021-03-03 11:40:36 [NOTICE] [configure] 400 out of 1954 done.
2021-03-03 11:41:21 [NOTICE] [configure] 500 out of 1954 done.
2021-03-03 11:41:28 [NOTICE] [configure] 600 out of 1956 done.
2021-03-03 11:41:28 [NOTICE] [configure] 700 out of 1956 done.
2021-03-03 11:41:30 [NOTICE] [configure] 800 out of 1958 done.
2021-03-03 11:42:04 [NOTICE] [configure] 900 out of 1959 done.
2021-03-03 11:42:06 [ERROR ] [configure] /Stage[main]/Pulpcore::Static/Pulpcore::Admin[collectstatic --noinput]/Exec[pulpcore-manager collectstatic --noinput]: Failed to call refresh: 'pulpcore-manager collectstatic --noinput' returned 1 instead of one of [0]
2021-03-03 11:42:06 [ERROR ] [configure] /Stage[main]/Pulpcore::Static/Pulpcore::Admin[collectstatic --noinput]/Exec[pulpcore-manager collectstatic --noinput]: 'pulpcore-manager collectstatic --noinput' returned 1 instead of one of [0]
2021-03-03 11:42:40 [NOTICE] [configure] 1000 out of 1961 done.
2021-03-03 11:42:45 [NOTICE] [configure] 1100 out of 1964 done.
2021-03-03 11:42:51 [NOTICE] [configure] 1200 out of 1984 done.
2021-03-03 11:42:55 [NOTICE] [configure] 1300 out of 1985 done.
2021-03-03 11:43:13 [NOTICE] [configure] 1400 out of 1985 done.
2021-03-03 11:48:33 [NOTICE] [configure] 1500 out of 1985 done.
2021-03-03 11:48:33 [NOTICE] [configure] 1600 out of 1985 done.
2021-03-03 11:49:55 [NOTICE] [configure] 1700 out of 1985 done.
2021-03-03 11:49:55 [NOTICE] [configure] 1800 out of 1985 done.
2021-03-03 11:49:58 [ERROR ] [configure] 'pulpcore-manager migrate --noinput' returned 1 instead of one of [0]
2021-03-03 11:49:58 [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]
2021-03-03 11:49:59 [ERROR ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]: Failed to call refresh: 'pulpcore-manager migrate --noinput' returned 1 instead of one of [0]
2021-03-03 11:49:59 [ERROR ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]: 'pulpcore-manager migrate --noinput' returned 1 instead of one of [0]
2021-03-03 11:49:59 [NOTICE] [configure] 1900 out of 1985 done.
2021-03-03 11:50:01 [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
Running " pulpcore-manager collectstatic --noinput" by hand gives:
# pulpcore-manager collectstatic --noinput
/usr/lib/python3.6/site-packages/pulpcore/app/apps.py:72: FutureWarning: The plugin `deb` is missing a version attribute. Starting with pulpcore==3.10, plugins are required to define their version on the PulpPluginAppConfig subclass.
warnings.warn(msg, FutureWarning)
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/pulpcore/app/settings.py", line 269, in <module>
CONTENT_ORIGIN
NameError: name 'CONTENT_ORIGIN' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/bin/pulpcore-manager", line 11, in <module>
load_entry_point('pulpcore==3.9.1', 'console_scripts', 'pulpcore-manager')()
File "/usr/lib/python3.6/site-packages/pulpcore/app/manage.py", line 11, in manage
execute_from_command_line(sys.argv)
File "/usr/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/lib/python3.6/site-packages/django/core/management/__init__.py", line 357, in execute
django.setup()
File "/usr/lib/python3.6/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/lib/python3.6/site-packages/django/apps/registry.py", line 122, in populate
app_config.ready()
File "/usr/lib/python3.6/site-packages/pulpcore/app/apps.py", line 94, in ready
self.import_viewsets()
File "/usr/lib/python3.6/site-packages/pulpcore/app/apps.py", line 127, in import_viewsets
from pulpcore.app.viewsets import NamedModelViewSet
File "/usr/lib/python3.6/site-packages/pulpcore/app/viewsets/__init__.py", line 1, in <module>
from .base import ( # noqa
File "/usr/lib/python3.6/site-packages/pulpcore/app/viewsets/base.py", line 14, in <module>
from pulpcore.openapi import PulpAutoSchema
File "/usr/lib/python3.6/site-packages/pulpcore/openapi/__init__.py", line 25, in <module>
from pulpcore.app.settings import INSTALLED_PULP_PLUGINS
File "/usr/lib/python3.6/site-packages/pulpcore/app/settings.py", line 273, in <module>
"CONTENT_ORIGIN is a required setting but it was not configured. This may be caused "
django.core.exceptions.ImproperlyConfigured: CONTENT_ORIGIN is a required setting but it was not configured. This may be caused by invalid read permissions of the settings file. Note that CONTENT_ORIGIN is set by the installer automatically.