theforeman / foreman-infra

Puppet modules and scripts to manage Foreman project infrastructure
https://theforeman.github.io/foreman-infra
Apache License 2.0
24 stars 51 forks source link

upgrade virt01 to EL9 #2050

Closed evgeni closed 1 month ago

evgeni commented 1 month ago
[root@virt01 ~]# dnf install https://kojihub.stream.centos.org/kojifiles/packages/leapp/0.17.0/1.el8/noarch/leapp-0.17.0-1.el8.noarch.rpm https://kojihub.stream.centos.org/kojifiles/packages/leapp/0.17.0/1.el8/noarch/leapp-deps-0.17.0-1.el8.noarch.rpm https://kojihub.stream.centos.org/kojifiles/packages/leapp/0.17.0/1.el8/noarch/python3-leapp-0.17.0-1.el8.noarch.rpm

[root@virt01 ~]# dnf copr enable packit/evgeni-leapp-repository-2

[root@virt01 ~]# dnf install leapp-upgrade-el8toel9

[root@virt01 ~]# vi /etc/leapp/files/leapp_upgrade_repositories.repo
<adding cs9 repos>

[root@virt01 ~]# leapp preupgrade
…
Upgrade has been inhibited due to the following problems:
    1. Firewalld Configuration AllowZoneDrifting Is Unsupported
    2. Newest installed kernel not in use

Not crazy. AllowZoneDrifting I expected, and I didn't reboot yet.

evgeni commented 1 month ago

I've set AllowZoneDrifting=no in /etc/firewalld/firewalld.conf and rebooted the host.

leapp preupgrade now finishes fine.

evgeni commented 1 month ago

@ekohl @ehelms any objections of "just do" the upgrade Wednesday (CEST) morning?

ehelms commented 1 month ago

@ekohl @ehelms any objections of "just do" the upgrade Wednesday (CEST) morning?

None.

ekohl commented 1 month ago

Nope, just announce the maintenance and proceed

evgeni commented 1 month ago

https://community.theforeman.org/t/virt01-maintenance-2024-05-15-07-00-utc/37952

evgeni commented 1 month ago

This has been successfully completed.

Couple of notes:

evgeni commented 1 month ago

Oh, and HPE's hponcfg was broken, so I had to patch it a bit: https://www.die-welt.net/2024/05/using-hponcfg-on-centos-stream-9-with-openssl-32/