Katello 4.2 upgrade fails with errors

Problem:
Katello 4.2 upgrade fails with errors “[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]”

Expected outcome:
Upgraded to Katello 4.2

Foreman and Proxy versions:
Foreman and Proxy 2.5

Foreman and Proxy plugin versions:
Foreman 2.5 and Katello 4.0.1
Distribution and version:
RHEL 7.9 (Maipo)

Other relevant data:

When trying to upgrade to Katello 4.2 and Foreman 3.0, I am getting the following errors…

[root@host]# foreman-installer
2021-09-27 16:08:02 [NOTICE] [root] Loading installer configuration. This will take some time.
2021-09-27 16:08:06 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2021-09-27 16:08:06 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2021-09-27 16:08:12 [NOTICE] [configure] Starting system configuration.
2021-09-27 16:08:26 [NOTICE] [configure] 250 configuration steps out of 2051 steps complete.
2021-09-27 16:08:37 [NOTICE] [configure] 500 configuration steps out of 2055 steps complete.
2021-09-27 16:08:38 [NOTICE] [configure] 750 configuration steps out of 2059 steps complete.
2021-09-27 16:08:44 [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-09-27 16:08:44 [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-09-27 16:08:44 [NOTICE] [configure] 1000 configuration steps out of 2062 steps complete.
2021-09-27 16:08:45 [NOTICE] [configure] 1250 configuration steps out of 2066 steps complete.
2021-09-27 16:09:39 [NOTICE] [configure] 1500 configuration steps out of 2067 steps complete.
2021-09-27 16:10:31 [NOTICE] [configure] 1750 configuration steps out of 2067 steps complete.
2021-09-27 16:11:14 [NOTICE] [configure] 2000 configuration steps out of 2067 steps complete.
2021-09-27 16:11:16 [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

Please help!

Katello 4.2 isn’t released yet.

There was a RC1, but since then the builds have been broken due to an upstream change in EPEL. RC2 was skipped and RC3 is being worked on at the moment: Katello 4.2.0.rc3 release process

1 Like

When reporting problems with the installer, please always take a look at that. It should contain the output of the failed command.

Hello Duncan_Innes,

We have one more server in a different environment and I was able to upgrade Katello to 4.2 successfully on that server.

Best regards,
Balaji Sankaran

Hello ekohl,

Following is what I see in the log…

2021-09-27 16:22:40 [INFO ] [configure] Compiled catalog for dc07asml01.cityofchicago.org in environment production in 5.46 seconds
2021-09-27 16:22:40 [DEBUG ] [configure] /Package[katello-certs-tools]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:40 [DEBUG ] [configure] /Package[foreman-postgresql]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:40 [DEBUG ] [configure] /Package[tfm-rubygem-passenger-native]: Provider yum does not support features targetable; not managing attribute com
mand
2021-09-27 16:22:40 [DEBUG ] [configure] /Package[foreman-service]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:40 [DEBUG ] [configure] /Package[foreman-dynflow-sidekiq]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:40 [DEBUG ] [configure] /Package[rh-redis5-redis]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:40 [DEBUG ] [configure] /Service[rh-redis5-redis]: Provider systemd does not support features manages_logon_credentials; not managing attribu
te logonpassword
2021-09-27 16:22:40 [DEBUG ] [configure] /Service[rh-redis5-redis]: Provider systemd does not support features configurable_timeout; not managing attribute ti
meout
2021-09-27 16:22:40 [DEBUG ] [configure] /Package[httpd]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[httpd]: Provider systemd does not support features manages_logon_credentials; not managing attribute logonpa
ssword
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[httpd]: Provider systemd does not support features configurable_timeout; not managing attribute timeout
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[mailcap]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[postgresql-client]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[postgresql-server]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[postgresqld]: Provider systemd does not support features manages_logon_credentials; not managing attribute l
ogonpassword
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[postgresqld]: Provider systemd does not support features configurable_timeout; not managing attribute timeou
t
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[foreman.socket]: Provider systemd does not support features manages_logon_credentials; not managing attribut
e logonpassword
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[foreman.socket]: Provider systemd does not support features configurable_timeout; not managing attribute tim
eout
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[foreman]: Provider systemd does not support features manages_logon_credentials; not managing attribute logon
password
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[foreman]: Provider systemd does not support features configurable_timeout; not managing attribute timeout
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[katello]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[tomcat]: Provider systemd does not support features manages_logon_credentials; not managing attribute logonp
assword
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[tomcat]: Provider systemd does not support features configurable_timeout; not managing attribute timeout
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[java-11-openjdk]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[candlepin]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[rh-postgresql12-postgresql-evr]: Provider yum does not support features targetable; not managing attribute c
ommand
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[nss-tools]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[qpid-tools]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[qpid-cpp-server]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[qpid-cpp-client]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[cyrus-sasl-plain]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[qpid-cpp-server-linearstore]: Provider yum does not support features targetable; not managing attribute comm
and
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[qpidd]: Provider systemd does not support features manages_logon_credentials; not managing attribute logonpa
ssword
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[qpidd]: Provider systemd does not support features configurable_timeout; not managing attribute timeout
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[iproute]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[foreman-proxy]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[puppet-agent-oauth]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[tftp-server]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[syslinux]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[xinetd]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[xinetd]: Provider systemd does not support features manages_logon_credentials; not managing attribute logonp
assword
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[xinetd]: Provider systemd does not support features configurable_timeout; not managing attribute timeout
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[wget]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[grub2-efi-x64]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[grub2-efi-x64-modules]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[grub2-tools]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[shim-x64]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[foreman-proxy]: Provider systemd does not support features manages_logon_credentials; not managing attribute
logonpassword
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[foreman-proxy]: Provider systemd does not support features configurable_timeout; not managing attribute time
out
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[katello-debug]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[ca-certificates]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[rpm-build]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[katello-client-bootstrap]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[qpid-dispatch-router]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[qdrouterd]: Provider systemd does not support features manages_logon_credentials; not managing attribute log
onpassword
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[qdrouterd]: Provider systemd does not support features configurable_timeout; not managing attribute timeout
2021-09-27 16:22:41 [DEBUG ] [configure] /Package[python3-pulpcore]: Provider yum does not support features targetable; not managing attribute command
2021-09-27 16:22:41 [DEBUG ] [configure] /Service[pulpcore-worker@1.service]: Provider systemd does not support features manages_logon_credentials; not managi
ng attribute logonpassword

And the end of the log I see the following…

2021-09-27 16:23:51 [DEBUG ] [configure] Finishing transaction 75527560
2021-09-27 16:23:51 [DEBUG ] [configure] Received report to process from dc07asml01.cityofchicago.org
2021-09-27 16:23:53 [NOTICE] [configure] System configuration has finished.
2021-09-27 16:23:53 [INFO ] [post] Executing hooks in group post
2021-09-27 16:23:53 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/30-upgrade.rb returned nil
2021-09-27 16:23:53 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/34-pulpcore_directory_layout.rb returned nil
2021-09-27 16:23:53 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/99-post_install_message.rb returned nil
2021-09-27 16:23:53 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/99-version_locking.rb returned nil
2021-09-27 16:23:53 [INFO ] [post] All hooks in group post finished
2021-09-27 16:23:53 [DEBUG ] [root] Exit with status code: 6 (signal was 6)
2021-09-27 16:23:53 [DEBUG ] [root] Cleaning /tmp/kafo_installation20210927-10842-41li46
2021-09-27 16:23:53 [DEBUG ] [root] Cleaning /tmp/kafo_installation20210927-10842-tz28nv
2021-09-27 16:23:53 [DEBUG ] [root] Cleaning /tmp/default_values.yaml
2021-09-27 16:23:53 [DEBUG ] [root] Installer finished in 87.15682916 seconds

The successful upgrade of Katello on other server is 4.2.0.rc1.

the only error i see in your original post was about the ‘‘pulpcore-manager collectstatic --noinput’ command, can you try running it manually? you have to specify an env variable though. Run this as root from ‘/tmp/’:

PULP_SETTINGS='/etc/pulp/settings.py pulpcore-manager collectstatic --noinput

What output does that show? Does the installer pass after the manual command run?

Slight edit. I think you missed a quote after settings.py.

PULP_SETTINGS='/etc/pulp/settings.py' pulpcore-manager collectstatic --noinput

With that, I ran from /tmp/ and got:

1 static file copied to '/var/lib/pulp/assets', 155 unmodified.