On 10-05-2021 15:06, Kees Bakker via FreeIPA-users wrote:
On 10-05-2021 14:45, Rob Crittenden wrote:
Kees Bakker via FreeIPA-users wrote:
Hi,

Trying to upgrade CentOS 7 tot CentOS 8, following the various hints on
the internet. Executing this command fails

# dnf --releasever=8 --allowerasing --setopt=deltarpm=false distro-sync
...
Running transaction check
Error: transaction check vs depsolve:
(ipa-selinux = 4.8.7-12.module_el8.3.0+514+e7703106 if
selinux-policy-targeted) is needed by
ipa-common-4.8.7-12.module_el8.3.0+514+e7703106.noarch
rpmlib(RichDependencies) <= 4.12.0-1 is needed by
ipa-common-4.8.7-12.module_el8.3.0+514+e7703106.noarch
To diagnose the problem, try running: 'rpm -Va --nofiles --nodigest'.
You probably have corrupted RPMDB, running 'rpm --rebuilddb' might fix
the issue.
The downloaded packages were saved in cache until the next successful
transaction.
You can remove cached packages by executing 'dnf clean packages'.

How can I solve this?
We don't manage the centos repos so I don't know. RHEL uses the leapp
utility for in-place upgrades but that isn't supported in centos:
https://wiki.centos.org/FAQ/CentOS8#Is_there_a_way_to_upgrade_CentOS-7_to_CentOS-8.3F_How_about_leapp.3F

The packages aren't really all that relevant in any case as there is no
"upgrade" when upgrading client packages. It just installs new bits.

There are some important differences between 7 and 8 that could affect
the resulting upgrade, most importantly that 7 uses authconfig to
configure PAM and 8 uses authselect. Even if you managed to install the
new bits, manually use authselect to re-do the PAM config, the result
will be a failure uninstall because authconfig isn't present to restore
the original PAM config.

It is probably easier and safer to unconfigure the IPA client, uninstall
the packages, upgrade, re-install then reconfigure. You can for example
save the current keytab to re-enroll (see the ipa-client-install man page).

rob

Hmm. In this case it's a master that I want to upgrade. I have two 
installations (two distinct environments). One environment with three masters, 
and one environment with just one master. In the first environment, I guess 
your advise would be to disconnect the master, uninstall freeipa, upgrade (or 
reinstall) centos, install freeipa (master). That, I can do. However, that 
still leaves me with the problem in my second environment.

I stumbled on these notes at forums.centos.org [1]
"There is no 7->8 upgrade. One has to install fresh 8."
"There is no officially supported pathway to upgrade CentOS 7 to 8."
Wow. I can hardly believe what I'm reading.

[1] https://forums.centos.org/viewtopic.php?f=54&t=73160
--
Kees
_______________________________________________
FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org
To unsubscribe send an email to freeipa-users-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to