Upgrading Freman 3.3 from 3.2

Hi

I am testing Foreman 3.3 upgrade from 3.2
In our environment Foreman/katello are installed in one node, PostgreSQL database is in other node, Smart-proxy and Memcache in twos other different nodes.
Currently we are ruining on 3.0.1 and going to upgrade it to 3.4. As it is progressive upgrade I am doing it from 3.1->3.2->3.2->3.4
So for I have successfully upgraded up to 3.2.
Instruction I am following is from Upgrading and Updating Foreman (theforeman.org)

I have done this step successfully
dnf update -y https://yum.theforeman.org/releases/3.3/el8/x86_64/foreman-release.rpm https://yum.theforeman.org/katello/4.5/katello/el8/x86_64/katello-repos-latest.rpm

Now trying to do
dnf module enable -y katello:el8 pulpcore:el8
and it gives errors
then I did
dnf module enable -y pulpcore:el8
without kattello:3l8 which was success
When try to do
dnf module enable -y katello:el8
gives this errors
Problem 1: module katello:el8:40520220707195753:a06ea20c.x86_64 requires module(foreman:el8), but none of the providers can be installed

  • module foreman:el8:30320220526202658:fea1c427.x86_64 requires module(postgresql:12), but none of the providers can be installed
  • module foreman:el8:30320220512203003:fea1c427.x86_64 requires module(postgresql:12), but none of the providers can be installed
  • module foreman:el8:30320220609185141:fea1c427.x86_64 requires module(postgresql:12), but none of the providers can be installed
  • module foreman:el8:30320220610140411:fea1c427.x86_64 requires module(postgresql:12), but none of the providers can be installed
  • module postgresql:10:8060020220510152838:d63f516d.x86_64 conflicts with module(postgresql:12) provided by postgresql:12:8060020220510152840:d63f516d.x86_64
  • module postgresql:12:8060020220510152840:d63f516d.x86_64 conflicts with module(postgresql:10) provided by postgresql:10:8060020220510152838:d63f516d.x86_64
  • module postgresql:10:8060020220510152838:d63f516d.x86_64 conflicts with module(postgresql:12) provided by postgresql:12:8060020220531162411:d63f516d.x86_64
  • module postgresql:12:8060020220531162411:d63f516d.x86_64 conflicts with module(postgresql:10) provided by postgresql:10:8060020220510152838:d63f516d.x86_64
  • conflicting requests
    Problem 2: module katello:el8:40520220614012233:a06ea20c.x86_64 requires module(foreman:el8), but none of the providers can be installed
  • module foreman:el8:30320220526202658:fea1c427.x86_64 requires module(postgresql:12), but none of the providers can be installed
  • module foreman:el8:30320220512203003:fea1c427.x86_64 requires module(postgresql:12), but none of the providers can be installed
  • module foreman:el8:30320220609185141:fea1c427.x86_64 requires module(postgresql:12), but none of the providers can be installed
  • module foreman:el8:30320220610140411:fea1c427.x86_64 requires module(postgresql:12), but none of the providers can be installed
  • module postgresql:12:8060020220510152840:d63f516d.x86_64 conflicts with module(postgresql:10) provided by postgresql:10:8060020220530151217:d63f516d.x86_64
  • module postgresql:10:8060020220530151217:d63f516d.x86_64 conflicts with module(postgresql:12) provided by postgresql:12:8060020220510152840:d63f516d.x86_64
  • module postgresql:10:8060020220530151217:d63f516d.x86_64 conflicts with module(postgresql:12) provided by postgresql:12:8060020220531162411:d63f516d.x86_64
  • module postgresql:12:8060020220531162411:d63f516d.x86_64 conflicts with module(postgresql:10) provided by postgresql:10:8060020220530151217:d63f516d.x86_64
  • conflicting requests
    Problem 3: module katello:el8:40520220518131434:a06ea20c.x86_64 requires module(foreman:el8), but none of the providers can be installed
  • module foreman:el8:30320220526202658:fea1c427.x86_64 requires module(ruby:2.7), but none of the providers can be installed
  • module foreman:el8:30320220512203003:fea1c427.x86_64 requires module(ruby:2.7), but none of the providers can be installed
  • module foreman:el8:30320220609185141:fea1c427.x86_64 requires module(ruby:2.7), but none of the providers can be installed
  • module foreman:el8:30320220610140411:fea1c427.x86_64 requires module(ruby:2.7), but none of the providers can be installed
  • module ruby:2.5:8050020220224171137:b4937e53.x86_64 conflicts with module(ruby:2.7) provided by ruby:2.7:8040020210805221347:9f9e2e7e.x86_64
  • module ruby:2.7:8040020210805221347:9f9e2e7e.x86_64 conflicts with module(ruby:2.5) provided by ruby:2.5:8050020220224171137:b4937e53.x86_64
  • conflicting requests

Can someone help me or has anyone had the similar issue?

Best Regards
Sarath

This one, I manage to resolve
This is how :slight_smile:
sudo dnf module enable -y pulpcore:el8
sudo dnf module enable -y ruby:2.7
sudo dnf module reset -y postgresql:12
sudo dnf module enable -y postgresql:12
sudo dnf module enable -y foreman:el8
sudo dnf module enable -y katello:el8

1 Like

If someone else is facing this issue, it seems some old ruby was present from leapp upgrade. I fixed it with:

dnf clean all
dnf --allowerasing distro-sync ruby.x86_64
dnf update ruby.x86_64 

This worked for me too.