and ended up with :
—> Package yajl.x86_64 0:2.0.4-4.el7 will be installed
→ Running transaction check
—> Package foreman.noarch 0:1.22.2-1.el7 will be updated
→ Processing Dependency: foreman < 2.5 for package: tfm-rubygem-katello-4.0.0-0.3.pre.master.20210126202840git3f68923.el7.noarch
—> Package nettle.x86_64 0:2.7.1-8.el7 will be installed
—> Package tfm-rubygem-katello.noarch 0:4.0.0-0.3.pre.master.20210126202840git3f68923.el7 will be an update
→ Processing Dependency: foreman < 2.5 for package: tfm-rubygem-katello-4.0.0-0.3.pre.master.20210126202840git3f68923.el7.noarch
—> Package trousers.x86_64 0:0.3.14-2.el7 will be installed
→ Finished Dependency Resolution
Error: Package: tfm-rubygem-katello-4.0.0-0.3.pre.master.20210126202840git3f68923.el7.noarch (katello)
Requires: foreman < 2.5
Removing: foreman-1.22.2-1.el7.noarch (@foreman)
foreman = 1.22.2-1.el7
Updated By: foreman-2.5.0-0.2.develop.20210216174638git7fa7cec.el7.noarch (foreman)
foreman = 2.5.0-0.2.develop.20210216174638git7fa7cec.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Upgrade version by version until 3.18. You don’t mention which the katello version you have but I guess it’s 3.12. Thus upgrade to 3.13, 3.14, 3.15, 3.16, 3.17 until 3.18. That’s the safest path.
I would follow the upgrade instructions for each katello version starting with 3.13.
I would also run foreman-installer as instructed there during each update to be safe.
Don’t do the pulp3 migration mentioned from version 3.15. You don’t have to do the migration at the moment. If you want to do the migration anyway, do it after the last upgrade to 3.18.
what could be the reason for below failure
2021-02-18 16:34:45 [ERROR ] [configure] Proxy zkwforeman01.example.com has failed to load one or more features (Registration), check /var/log/foreman-proxy/proxy.log for configuration errors
2021-02-18 16:34:45 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[zkwforeman01.example.com]/features: change from [“HTTPBoot”, “Logs”, “Pulp”, “Pulpcore”, “Puppet”, “Puppet CA”, “TFTP”, “Templates”] to [“HTTPBoot”, “Logs”, “Pulp”, “Pulpcore”, “Puppet”, “Puppet CA”, “Registration”, “TFTP”, “Templates”] failed: Proxy zkwforeman01.example.com has failed to load one or more features (Registration), check /var/log/foreman-proxy/proxy.log for configuration errors
[root@zkwforeman01 ~]# foreman-installer --scenario katello --upgrade
2021-02-18 23:12:36 [NOTICE] [pre_migrations] Executing hooks in group pre_migrations
2021-02-18 23:12:36 [NOTICE] [pre_migrations] All hooks in group pre_migrations finished
2021-02-18 23:12:36 [NOTICE] [boot] Executing hooks in group boot
2021-02-18 23:12:36 [NOTICE] [boot] All hooks in group boot finished
2021-02-18 23:12:36 [NOTICE] [init] Executing hooks in group init
2021-02-18 23:12:36 [NOTICE] [init] All hooks in group init finished
2021-02-18 23:12:36 [NOTICE] [root] Loading default values from puppet modules…
2021-02-18 23:12:41 [NOTICE] [root] … finished
2021-02-18 23:12:41 [NOTICE] [pre_values] Executing hooks in group pre_values
2021-02-18 23:12:41 [NOTICE] [pre_values] All hooks in group pre_values finished
ERROR: Unrecognised option ‘–upgrade’