[ContentMigration] Failed to upgrade to latest

Problem:

Expected outcome:
Upgrade foreman-katello to latest version

Foreman and Proxy versions:
Foreman version: 1.22.2

Foreman and Proxy plugin versions:

Distribution and version:
HTTPBoot: 1.22.2
Pulp: 1.4.1
Pulp server version: 2.19.1
Workers: 10
TFTP: 1.22.2
TFTP server: false
Templates: 1.22.2

Other relevant data:
I was trying to follow: Foreman :: Plugin Manuals (theforeman.org)

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

You have 1.22. You cannot upgrade directly to the latest version, on probably not to the nightly anyway.

As mentioned on the upgrade page you have linked to:

Katello supports upgrades from the previous two versions only. Upgrades should be performed sequentially without skipping versions in between.

ok, thanks for your response,

could you please suggest upgrade path for me?

i was trying to install latest and it was showing soo many decencies

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.

HI

yes katello version is 3.12

let me try and i will update a you, thanks a lot

HI

i was trying to update version by version , means katello to 3.12 and foreman to 1.23

after each upgrade, do i need to run foreman-installer ?

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.

HI

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

UPDATE:

i have tried systemctl restart foreman && foreman-installer , still same

The upgrade instructions for 3.13 say to use

foreman-installer --scenario katello --upgrade

to run the installer and just ‘foreman-installer’.

You need to follow the instructions of each version you upgrade to… (except the pulp3 migration part…)

HI
I tried that and got below:

[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’

See: ‘foreman-installer --help’

And you are updating from 3.12 to 3.13?

NO i updates to all latest, i am in 3.18 and foreman 2.3