Migration de Oracle Linux 7.x vers Oracle Linux 8.x avec leapp : Echec complet

93 x served & 13 x viewed

J’ai essayé une migration avec Leapp mais sans succès, pourtant je pense bien avoir suivi la procédure.

Etape 1 : Mise en place de la dernier version de la Oracle Linux 7.x :

 

# sudo yum upgrade
... reboot ...
# cat /etc/system-release
Oracle Linux Server release 7.9
# yum repolist
Modules complémentaires chargés : ulninfo
id du dépôt                                                             nom du dépôt                                                                                                                           statut
ol7_UEKR5/x86_64                                                        Latest Unbreakable Enterprise Kernel Release 5 for Oracle Linux 7Server (x86_64)                                                          702
ol7_latest/x86_64                                                       Oracle Linux 7Server Latest (x86_64)                                                                                                   24 259
repolist: 24 961

Etape 2 : Suppression des anciens Kernel :

# rpm -q kernel
kernel-3.10.0-1160.49.1.el7.x86_64
kernel-3.10.0-1160.53.1.el7.x86_64
kernel-3.10.0-1160.62.1.el7.x86_64
# package-cleanup --oldkernels --count=1 
# uname -sr
Linux 4.14.35-2047.513.2.el7uek.x86_64
# rpm -q kernel
kernel-3.10.0-1160.62.1.el7.x86_64

Etape 3 : Ajout du repo :

# curl https://copr.fedorainfracloud.org/coprs/g/leapp/leapp-devel/repo/epel-7/group_leapp-leapp-devel-epel-7.repo -o /etc/yum.repos.d/group_leapp-leapp-devel-epel-7.repo
# sudo yum install -y leapp

Etape 4 : Pre-upgrade :

# leapp preupgrade --oraclelinux

A noter que dans mon yum.repos.d j’ai :

yum.repos.d]# ls -ltr
total 40
-rw-r--r--. 1 root root 13093  2 nov.   2018 public-yum-ol7.repo.sav
-rw-r--r--  1 root root   226  9 juin   2021 virt-ol7.repo
-rw-r--r--  1 root root  4586 20 déc.  15:17 oracle-linux-ol7.repo
-rw-r--r--  1 root root  2587 20 déc.  15:18 uek-ol7.repo
-rw-r--r--  1 root root  2575 10 févr. 17:09 leapp-upgrade-repos-ol8.repo
-rw-r--r--  1 root root   381 12 mai   15:52 group_leapp-leapp-devel-epel-7.repo

# cat leapp-upgrade-repos-ol8.repo | grep "^\["
[ol8_baseos_latest]
[ol8_appstream]
[ol8_codeready_builder]
[ol8_addons]
[ol8_UEKR6]
[ol8_ksplice]
[ol8_oci_included]
[ol8_MySQL80]
[ol8_UEKR6_RDMA]
[ol8_oraclelinuxmanager210_client]
[ol8_kvm_appstream]

Etape 5 : Réponse aux questions :

# cat /var/log/leapp/answerfile
[remove_pam_pkcs11_module_check]
# Title:              None
# Reason:             Confirmation
# =================== remove_pam_pkcs11_module_check.confirm ==================
# Label:              Disable pam_pkcs11 module in PAM configuration? If no, the upgrade process will be interrupted.
# Description:        PAM module pam_pkcs11 is no longer available in OL-8 since it was replaced by SSSD.
# Type:               bool
# Default:            None
# Available choices: True/False
# Unanswered question. Uncomment the following line with your answer
# confirm =

# leapp answer --section remove_pam_pkcs11_module_check.confirm=True

Etape 6 : Finalisation :

– Test 1 :

leapp upgrade --oraclelinux

– Test 2 :

leapp upgrade --oraclelinux  --enablerepo ol8_codeready_builder

– Test 3 :

leapp upgrade --oraclelinux --enablerepo ol8_baseos_latest

Je me retrouve toujours avec l’erreur suivante :

============================================================
                           ERRORS                           
============================================================
 
2022-05-12 16:33:30.411911 [ERROR] Actor: target_userspace_creator
Message: Unable to install OL 8 userspace packages.
Summary:
    Details: Command ['systemd-nspawn', '--register=no', '--quiet', '-D', '/var/lib/leapp/scratch/mounts/root_/system_overlay', '--bind=/etc/hosts:/etc/hosts', '--setenv=LEAPP_EXPERIMENTAL=0', '--setenv=LEAPP_COMMON_TOOLS=:/etc/leapp/repos.d/system_upgrade/el7toel8/tools', '--setenv=LEAPP_COMMON_FILES=:/etc/leapp/repos.d/system_upgrade/el7toel8/files', '--setenv=LEAPP_ENABLE_REPOS=ol8_baseos_latest,ol8_appstream,ol8_UEKR6,ol8_codeready_builder', '--setenv=LEAPP_UNSUPPORTED=0', '--setenv=LEAPP_EXECUTION_ID=12546ba8-da78-496b-8489-f39686b2a838', '--setenv=LEAPP_HOSTNAME=PeDevOracle7.6', 'dnf', 'install', '-y', '--nogpgcheck', '--setopt=module_platform_id=platform:el8', '--setopt=keepcache=1', '--releasever', u'8.4', '--installroot', '/el8target', '--disablerepo', '*', '--enablerepo', u'ol8_baseos_latest', '--enablerepo', u'ol8_codeready_builder', '--enablerepo', u'ol8_UEKR6', '--enablerepo', u'ol8_appstream', 'dnf', '--disableplugin', 'subscription-manager'] failed with exit code 1.
    Stderr: Failed to create directory /var/lib/leapp/scratch/mounts/root_/system_overlay//sys/fs/selinux: Read-only file system
            Failed to create directory /var/lib/leapp/scratch/mounts/root_/system_overlay//sys/fs/selinux: Read-only file system
            Host and machine ids are equal (b947571a5b6f4b4485914d6b5da8c598): refusing to link journals
            Failed to synchronize cache for repo 'ol8_UEKR6', ignoring this repo.
            Failed to synchronize cache for repo 'ol8_appstream', ignoring this repo.
            Failed to synchronize cache for repo 'ol8_codeready_builder', ignoring this repo.
            Failed to synchronize cache for repo 'ol8_baseos_latest', ignoring this repo.
            Error: Unable to find a match: dnf
 
============================================================
                       END OF ERRORS                        
============================================================

Misère.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée.

Time limit is exhausted. Please reload CAPTCHA.