Mise à jour Centos6 vers centos 7

Donc j’ai récemment eu besoin de mettre à jour mon centos 6 de test vers centos 7. Sur le papier la manoeuvre à pas du tout l’air complexe, toutefois, comme toujours dans le monde opensource, elle le fût et après une bonne heure de recherche en suivant divers tutos et forum j’ai suivi les conseils d’un certain giulix63 :

Make sure your hardware is still supported, backup, reinstall, restore.

Bref j’ai laissé tomber. Je vais tout de même vous expliquer ma démarche pour les prochains qu’auraient le même problème.
J’ai d’abord suivi un tutoriel trouvé sur le net et qui avait l’air plutôt simple tuto1
Soit :
1. configurer un repo
2. installer les outils
3. mettre à jour
Pas de problème avec l’installation du repo :
# vi /etc/yum.repos.d/upg.repo

[upg]

name=CentOS-$releasever – Upgrade Tool baseurl=http://dev.centos.org/centos/6/upg/x86_64/ gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

L’installation des outils non plus :
 # yum install redhat-upgrade-tool preupgrade-assistant-contents
Modules complémentaires chargés : fastestmirror, security
Configuration du processus d'installation
Loading mirror speeds from cached hostfile
 * base: ftp.pasteur.fr
 * extras: ftp.pasteur.fr
 * updates: ftp.pasteur.fr
Résolution des dépendances
--> Lancement de la transaction de test
---> Package preupgrade-assistant-contents.noarch 0:0.5.14-1.el6.centos will be installé
--> Traitement de la dépendance : preupgrade-assistant(x86-64) >= 1.0.2-14 pour le paquet : preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch
---> Package redhat-upgrade-tool.noarch 1:0.7.22-3.el6.centos will be installé
--> Lancement de la transaction de test
---> Package preupgrade-assistant.x86_64 0:1.0.2-36.0.1.el6.centos will be installé
--> Traitement de la dépendance : openscap(x86-64) >= 0.9.3-1 pour le paquet : preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64
--> Traitement de la dépendance : pkgconfig(libpcre) pour le paquet : preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64
--> Traitement de la dépendance : pkgconfig(libxml-2.0) pour le paquet : preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64
--> Traitement de la dépendance : pkgconfig(libxslt) pour le paquet : preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64
--> Lancement de la transaction de test
---> Package libxml2-devel.x86_64 0:2.7.6-21.el6_8.1 will be installé
---> Package libxslt-devel.x86_64 0:1.1.26-2.el6_3.1 will be installé
--> Traitement de la dépendance : libgcrypt-devel pour le paquet : libxslt-devel-1.1.26-2.el6_3.1.x86_64
---> Package openscap.x86_64 0:1.2.13-2.el6 will be installé
---> Package pcre-devel.x86_64 0:7.8-7.el6 will be installé
--> Lancement de la transaction de test
---> Package libgcrypt-devel.x86_64 0:1.4.5-12.el6_8 will be installé
--> Traitement de la dépendance : libgpg-error-devel pour le paquet : libgcrypt-devel-1.4.5-12.el6_8.x86_64
--> Lancement de la transaction de test
---> Package libgpg-error-devel.x86_64 0:1.7-4.el6 will be installé
--> Résolution des dépendances terminée

Dépendances résolues

===========================================================================================================================
 Paquet                                    Architecture       Version                               Dépôt            Taille
===========================================================================================================================
Installation:
 preupgrade-assistant-contents             noarch             0.5.14-1.el6.centos                   upg              917 k
 redhat-upgrade-tool                       noarch             1:0.7.22-3.el6.centos                 upg               85 k
Installation pour dépendance:
 libgcrypt-devel                           x86_64             1.4.5-12.el6_8                        base             118 k
 libgpg-error-devel                        x86_64             1.7-4.el6                             base              14 k
 libxml2-devel                             x86_64             2.7.6-21.el6_8.1                      base             1.1 M
 libxslt-devel                             x86_64             1.1.26-2.el6_3.1                      base             561 k
 openscap                                  x86_64             1.2.13-2.el6                          base             3.9 M
 pcre-devel                                x86_64             7.8-7.el6                             base             320 k
 preupgrade-assistant                      x86_64             1.0.2-36.0.1.el6.centos               upg              439 k

Résumé de la transaction
===========================================================================================================================
Installation de     9 paquet(s)

Taille totale des téléchargements : 7.4 M
Taille d'installation : 75 M
Est-ce correct [o/N] : o
Téléchargement des paquets :
(1/9): libgcrypt-devel-1.4.5-12.el6_8.x86_64.rpm                                                    | 118 kB     00:00
(2/9): libgpg-error-devel-1.7-4.el6.x86_64.rpm                                                      |  14 kB     00:00
(3/9): libxml2-devel-2.7.6-21.el6_8.1.x86_64.rpm                                                    | 1.1 MB     00:00
(4/9): libxslt-devel-1.1.26-2.el6_3.1.x86_64.rpm                                                    | 561 kB     00:00
(5/9): openscap-1.2.13-2.el6.x86_64.rpm                                                             | 3.9 MB     00:00
(6/9): pcre-devel-7.8-7.el6.x86_64.rpm                                                              | 320 kB     00:00
(7/9): preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64.rpm                                      | 439 kB     00:00
(8/9): preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch.rpm                                 | 917 kB     00:00
(9/9): redhat-upgrade-tool-0.7.22-3.el6.centos.noarch.rpm                                           |  85 kB     00:00
---------------------------------------------------------------------------------------------------------------------------
Total                                                                                      1.8 MB/s | 7.4 MB     00:03
Lancement de rpm_check_debug
Lancement de la transaction de test
Transaction de test réussie
Lancement de la transaction
  Installation  : libxml2-devel-2.7.6-21.el6_8.1.x86_64                                                                1/9
  Installation  : pcre-devel-7.8-7.el6.x86_64                                                                          2/9
  Installation  : libgpg-error-devel-1.7-4.el6.x86_64                                                                  3/9
  Installation  : libgcrypt-devel-1.4.5-12.el6_8.x86_64                                                                4/9
  Installation  : libxslt-devel-1.1.26-2.el6_3.1.x86_64                                                                5/9
  Installation  : openscap-1.2.13-2.el6.x86_64                                                                         6/9
  Installation  : preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64                                                  7/9
  Installation  : 1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch                                                     8/9
  Installation  : preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch                                             9/9
  Verifying     : openscap-1.2.13-2.el6.x86_64                                                                         1/9
  Verifying     : libgpg-error-devel-1.7-4.el6.x86_64                                                                  2/9
  Verifying     : libgcrypt-devel-1.4.5-12.el6_8.x86_64                                                                3/9
  Verifying     : preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64                                                  4/9
  Verifying     : 1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch                                                     5/9
  Verifying     : libxslt-devel-1.1.26-2.el6_3.1.x86_64                                                                6/9
  Verifying     : libxml2-devel-2.7.6-21.el6_8.1.x86_64                                                                7/9
  Verifying     : preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch                                             8/9
  Verifying     : pcre-devel-7.8-7.el6.x86_64                                                                          9/9

Installé:
  preupgrade-assistant-contents.noarch 0:0.5.14-1.el6.centos        redhat-upgrade-tool.noarch 1:0.7.22-3.el6.centos

Dépendance(s) installée(s) :
  libgcrypt-devel.x86_64 0:1.4.5-12.el6_8                             libgpg-error-devel.x86_64 0:1.7-4.el6
  libxml2-devel.x86_64 0:2.7.6-21.el6_8.1                             libxslt-devel.x86_64 0:1.1.26-2.el6_3.1
  openscap.x86_64 0:1.2.13-2.el6                                      pcre-devel.x86_64 0:7.8-7.el6
  preupgrade-assistant.x86_64 0:1.0.2-36.0.1.el6.centos

Terminé !
Vient le moment critique de la mise à jour en tant que tel et la …. :
# rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7
# centos-upgrade-tool-cli --network 7 --instrepo=http://mirror.centos.org/centos/7/os/x86_64/
setting up repos...
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/tmp/system-upgrade/base/mirrorlist.txt
cmdline-instrepo                                                                                    | 3.6 kB     00:00
cmdline-instrepo/primary_db                                                                         | 5.9 MB     00:00
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/tmp/system-upgrade/extras/mirrorlist.txt
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/tmp/system-upgrade/updates/mirrorlist.txt
upg                                                                                                 | 1.9 kB     00:00
upg/primary_db                                                                                      |  14 kB     00:00
No upgrade available for the following repos: base extras updates
.treeinfo                                                                                           |  354 B     00:00
Unable to open file /root/preupgrade/result.xml
preupgrade-assistant has not been run.
To perform this upgrade, either run preupg or run redhat-upgrade-tool --force
J’ai googlé, essayé différentes URL…
centos-upgrade-tool-cli --network 7 --instrepo=http://dev.centos.org/centos/7/os/x86_64/
centos-upgrade-tool-cli --network 7 --instrepo=http://buildlogs.centos.org/centos/7/os/x86_64/
ou différents repos mais rien y fait.
J’ai donc trouvé un deuxième tutoriel cette fois-ci un peu plus complet

https://www.itzgeek.com/how-tos/linux/centos-how-tos/upgrade-from-centos-6-to-centos-7.html :

J’ai supprimé mon ancien repos et recréer le nouveau :
# vi /etc/yum.repos.d/upg.repo
# vi /etc/yum.repos.d/upgrade.repo

[upgrade]

name=upgrade baseurl=http://dev.centos.org/centos/6/upg/x86_64/ enabled=1 gpgcheck=0

Vérifier que tout était bien toujours installé :
# yum -y install preupgrade-assistant-contents redhat-upgrade-tool preupgrade-assistant
Modules complémentaires chargés : fastestmirror, security
Configuration du processus d'installation
Loading mirror speeds from cached hostfile
 * base: ftp.pasteur.fr
 * extras: ftp.pasteur.fr
 * updates: ftp.pasteur.fr
Le paquet preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch est déjà installé dans sa dernière version
Le paquet 1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch est déjà installé dans sa dernière version
Le paquet preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64 est déjà installé dans sa dernière version
Rien à faire
Lancer l’assistant de préinstallation :
# preupg
Preupg tool doesn't do the actual upgrade.
Please ensure you have backed up your system and/or data in the event of a failed upgrade
 that would require a full re-install of the system from installation media.
Do you want to continue? y/n
y
Gathering logs used by preupgrade assistant:
All installed packages : 01/11 ...finished (time 00:01s)
All changed files      : 02/11 ...running                                                                           finished (time 02:18s)
Changed config files   : 03/11 ...finished (time 00:00s)
All users              : 04/11 ...finished (time 00:00s)
All groups             : 05/11 ...finished (time 00:00s)
Service statuses       : 06/11 ...finished (time 00:00s)
All installed files    : 07/11 ...finished (time 00:02s)
All local files        : 08/11 ...finished (time 00:08s)
All executable files   : 09/11 ...finished (time 00:03s)
RedHat signed packages : 10/11 ...finished (time 00:00s)
CentOS signed packages : 11/11 ...finished (time 00:00s)
Assessment of the system, running checks / SCE scripts:
001/096 ...done    (Configuration Files to Review)
002/096 ...done    (File Lists for Manual Migration)
003/096 ...done    (Bacula Backup Software)
004/096 ...done    (MySQL configuration)
005/096 ...done    (Migration of the MySQL data stack)
006/096 ...done    (Changes related to moving from MySQL to MariaDB)
007/096 ...done    (PostgreSQL upgrade content)
008/096 ...done    (GNOME Desktop Environment underwent several design modifications in CentOS 7 release)
009/096 ...done    (KDE Desktop Environment underwent several design modifications in CentOS 7 release)
010/096 ...done    (several graphic drivers not supported in CentOS 7)
011/096 ...done    (several input drivers not supported in CentOS 7)
012/096 ...done    (several kernel networking drivers not available in CentOS 7)
013/096 ...done    (several kernel storage drivers not available in CentOS 7)
014/096 ...done    (Names, Options and Output Format Changes in arptables)
015/096 ...done    (BIND9 running in a chroot environment check.)
016/096 ...done    (BIND9 configuration compatibility check)
017/096 ...done    (Move dhcpd/dhcprelay arguments from /etc/sysconfig/* to *.service files)
018/096 ...done    (DNSMASQ configuration compatibility check)
019/096 ...done    (Dovecot configuration compatibility check)
020/096 ...done    (Compatibility Between iptables and ip6tables)
021/096 ...done    (Net-SNMP check)
022/096 ...done    (Squid configuration compatibility check)
023/096 ...done    (Reusable Configuration Files)
024/096 ...done    (VCS repositories)
025/096 ...done    (Added and extended options for BIND9 configuration)
026/096 ...done    (Added options in DNSMASQ configuration)
027/096 ...done    (Packages not signed by CentOS)
028/096 ...done    (Obsoleted rpms)
029/096 ...done    (w3m not available in CentOS 7)
030/096 ...done    (report incompatibilities between CentOS 6 and 7 in qemu-guest-agent package)
031/096 ...done    (Removed options in coreutils binaries)
032/096 ...done    (Removed options in gawk binaries)
033/096 ...done    (Removed options in netstat binary)
034/096 ...done    (Removed options in quota tools)
035/096 ...done    (Removed rpms)
036/096 ...done    (Replaced rpms)
037/096 ...done    (GMP library incompatibilities)
038/096 ...done    (package downgrades)
039/096 ...done    (restore custom selinux configuration)
040/096 ...done    (General)
041/096 ...done    (samba shared directories selinux)
042/096 ...done    (CUPS Browsing/BrowsePoll configuration)
043/096 ...done    (CVS Package Split)
044/096 ...done    (FreeRADIUS Upgrade Verification)
045/096 ...done    (httpd configuration compatibility check)
046/096 ...done    (bind-dyndb-ldap)
047/096 ...done    (Identity Management Server compatibility check)
048/096 ...done    (IPA Server CA Verification)
049/096 ...done    (NTP configuration)
050/096 ...done    (Information on time-sync.target)
051/096 ...done    (OpenLDAP /etc/sysconfig and data compatibility)
052/096 ...done    (OpenSSH sshd_config migration content)
053/096 ...done    (OpenSSH sysconfig migration content)
054/096 ...done    (Configuration for quota_nld service)
055/096 ...done    (Disk quota netlink message daemon moved into quota-nld package)
056/096 ...done    (SSSD compatibility check)
057/096 ...done    (Luks encrypted partition)
058/096 ...done    (Clvmd and cmirrord daemon management.)
059/096 ...done    (State of LVM2 services.)
060/096 ...done    (device-mapper-multipath configuration compatibility check)
061/096 ...done    (Removal of scsi-target-utils)
062/096 ...done    (Configuration for warnquota tool)
063/096 ...done    (Disk quota tool warnquota moved into quota-warnquota package)
064/096 ...done    (Architecture Support)
065/096 ...done    (Binary rebuilds)
066/096 ...done    (Debuginfo packages)
067/096 ...done    (Cluster and High Availability)
068/096 ...done    (Quorum implementation)
069/096 ...done    (fix krb5kdc config file)
070/096 ...done    (File Systems, Partitions and Mounts Configuration Review)
071/096 ...done    (Read Only FHS directories)
072/096 ...done    (Sonamebumped libs)
073/096 ...done    (SonameKept Reusable Dynamic Libraries)
074/096 ...done    (Removed .so libs)
075/096 ...done    (In-place Upgrade Requirements for the /usr/ Directory)
076/096 ...done    (CA certificate bundles modified)
077/096 ...done    (Developer Tool Set packages)
078/096 ...done    (Hyper-V)
079/096 ...done    (Content for enabling and disabling services based on CentOS 6 system)
080/096 ...done    (Check for ethernet interface naming)
081/096 ...done    (User modification in /etc/rc.local and /etc/rc.d/rc.local)
082/096 ...done    (cgroups configuration compatibility check)
083/096 ...done    (Plugable authentication modules (PAM))
084/096 ...done    (Foreign Perl modules)
085/096 ...done    (Python 2.7.5)
086/096 ...done    (Ruby 2.0.0)
087/096 ...done    (SCL collections)
088/096 ...done    (System kickstart)
089/096 ...done    (YUM)
090/096 ...done    (Check for usage of dangerous range of UID/GIDs)
091/096 ...done    (Incorrect usage of reserved UID/GIDs)
092/096 ...done    (NIS ypbind config files back-up)
093/096 ...done    (NIS Makefile back-up)
094/096 ...done    (NIS server maps check)
095/096 ...done    (NIS server MAXUID and MAXGID limits check)
096/096 ...done    (NIS server config file back-up)
Assessment finished (time 04:21s)
I/O warning : failed to load external entity "/usr/share/openscap/xsl/security-guide.xsl"
compilation error: file /usr/share/preupgrade/xsl/preup.xsl line 40 element import
xsl:import : unable to load /usr/share/openscap/xsl/security-guide.xsl
I/O warning : failed to load external entity "/usr/share/openscap/xsl/oval-report.xsl"
compilation error: file /usr/share/preupgrade/xsl/preup.xsl line 41 element import
xsl:import : unable to load /usr/share/openscap/xsl/oval-report.xsl
I/O warning : failed to load external entity "/usr/share/openscap/xsl/sce-report.xsl"
compilation error: file /usr/share/preupgrade/xsl/preup.xsl line 42 element import
xsl:import : unable to load /usr/share/openscap/xsl/sce-report.xsl
OpenSCAP Error:: Could not parse XSLT file '/usr/share/preupgrade/xsl/preup.xsl' [oscapxml.c:416]
Unable to open file /root/preupgrade/result.html
Usage: preupg [options]

preupg: error: [Errno 2] No such file or directory: '/root/preupgrade/result.html'
Et bim cette fois ci j’arrive même pas jusqu’à la mise à jour.
Encore une fois en bonne ingénieur Linux, j’ai googlé jusqu’à tombé sur un commentaire interessant:
Erase the existing version of openscap (I had openscap 1.2) and install openscap-1.0.8-1.0.1 from http://dev.centos.org/centos/6/upg and redo the upgrade.

yum erase openscap
yum install http://dev.centos.org/centos/6/upg/x86_64/Packages/openscap-1.0.8-1.0.1.el6.centos.x86_64.rpm
yum install redhat-upgrade-tool preupgrade-assistant-contents
Juste en dessous onm’averti que le paquet est cassé et non supporté et qu’il ne fallait pas faire ca mais bon on est ingé linux ou on l’est pas, j’ai donc tenté ma chance :
yum erase openscap
Modules complémentaires chargés : fastestmirror, security
Configuration du processus de suppression
Résolution des dépendances
--> Lancement de la transaction de test
---> Package openscap.x86_64 0:1.2.13-2.el6 will be effacé
--> Traitement de la dépendance : openscap(x86-64) >= 0.9.3-1 pour le paquet : preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64
--> Lancement de la transaction de test
---> Package preupgrade-assistant.x86_64 0:1.0.2-36.0.1.el6.centos will be effacé
--> Traitement de la dépendance : preupgrade-assistant >= 1.0.2-4 pour le paquet : 1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch
--> Traitement de la dépendance : preupgrade-assistant(x86-64) >= 1.0.2-14 pour le paquet : preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch
--> Lancement de la transaction de test
---> Package preupgrade-assistant-contents.noarch 0:0.5.14-1.el6.centos will be effacé
---> Package redhat-upgrade-tool.noarch 1:0.7.22-3.el6.centos will be effacé
--> Résolution des dépendances terminée

Dépendances résolues

===========================================================================================================================
 Paquet                                    Architecture       Version                              Dépôt             Taille
===========================================================================================================================
Suppression:
 openscap                                  x86_64             1.2.13-2.el6                         @base              56 M
Suppression pour dépendance:
 preupgrade-assistant                      x86_64             1.0.2-36.0.1.el6.centos              @upg              1.6 M
 preupgrade-assistant-contents             noarch             0.5.14-1.el6.centos                  @upg              4.7 M
 redhat-upgrade-tool                       noarch             1:0.7.22-3.el6.centos                @upg              251 k

Résumé de la transaction
===========================================================================================================================
Suppression de     4 paquet(s)

Taille d'installation : 62 M
Est-ce correct [o/N] : o
Téléchargement des paquets :
Lancement de rpm_check_debug
Lancement de la transaction de test
Transaction de test réussie
Lancement de la transaction
  Suppression   : 1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch                                                     1/4
  Suppression   : preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch                                             2/4
  Suppression   : preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64                                                  3/4
  Suppression   : openscap-1.2.13-2.el6.x86_64                                                                         4/4
  Verifying     : openscap-1.2.13-2.el6.x86_64                                                                         1/4
  Verifying     : preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch                                             2/4
  Verifying     : 1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch                                                     3/4
  Verifying     : preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64                                                  4/4

Supprimé:
  openscap.x86_64 0:1.2.13-2.el6

Dépendance supprimée:
  preupgrade-assistant.x86_64 0:1.0.2-36.0.1.el6.centos     preupgrade-assistant-contents.noarch 0:0.5.14-1.el6.centos
  redhat-upgrade-tool.noarch 1:0.7.22-3.el6.centos

Terminé !

# yum install http://dev.centos.org/centos/6/upg/x86_64/Packages/openscap-1.0.8-1.0.1.el6.centos.x86_64.rpm
Modules complémentaires chargés : fastestmirror, security
Configuration du processus d'installation
openscap-1.0.8-1.0.1.el6.centos.x86_64.rpm                                                          | 2.9 MB     00:00
Examen de /var/tmp/yum-root-MROrsA/openscap-1.0.8-1.0.1.el6.centos.x86_64.rpm : openscap-1.0.8-1.0.1.el6.centos.x86_64
Sélection de /var/tmp/yum-root-MROrsA/openscap-1.0.8-1.0.1.el6.centos.x86_64.rpm pour installation
Loading mirror speeds from cached hostfile
 * base: ftp.pasteur.fr
 * extras: ftp.pasteur.fr
 * updates: ftp.pasteur.fr
Résolution des dépendances
--> Lancement de la transaction de test
---> Package openscap.x86_64 0:1.0.8-1.0.1.el6.centos will be installé
--> Résolution des dépendances terminée

Dépendances résolues

===========================================================================================================================
 Paquet            Architecture    Version                          Dépôt                                            Taille
===========================================================================================================================
Installation:
 openscap          x86_64          1.0.8-1.0.1.el6.centos           /openscap-1.0.8-1.0.1.el6.centos.x86_64           42 M

Résumé de la transaction
===========================================================================================================================
Installation de     1 paquet(s)

Taille totale : 42 M
Taille d'installation : 42 M
Est-ce correct [o/N] : o
Téléchargement des paquets :
Lancement de rpm_check_debug
Lancement de la transaction de test
Transaction de test réussie
Lancement de la transaction
  Installation  : openscap-1.0.8-1.0.1.el6.centos.x86_64                                                               1/1
  Verifying     : openscap-1.0.8-1.0.1.el6.centos.x86_64                                                               1/1

Installé:
  openscap.x86_64 0:1.0.8-1.0.1.el6.centos

Terminé !

# yum install redhat-upgrade-tool preupgrade-assistant-contents
Modules complémentaires chargés : fastestmirror, security
Configuration du processus d'installation
Loading mirror speeds from cached hostfile
 * base: ftp.pasteur.fr
 * extras: ftp.pasteur.fr
 * updates: ftp.pasteur.fr
Résolution des dépendances
--> Lancement de la transaction de test
---> Package preupgrade-assistant-contents.noarch 0:0.5.14-1.el6.centos will be installé
--> Traitement de la dépendance : preupgrade-assistant(x86-64) >= 1.0.2-14 pour le paquet : preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch
---> Package redhat-upgrade-tool.noarch 1:0.7.22-3.el6.centos will be installé
--> Lancement de la transaction de test
---> Package preupgrade-assistant.x86_64 0:1.0.2-36.0.1.el6.centos will be installé
--> Résolution des dépendances terminée

Dépendances résolues

===========================================================================================================================
 Paquet                                   Architecture      Version                               Dépôt              Taille
===========================================================================================================================
Installation:
 preupgrade-assistant-contents            noarch            0.5.14-1.el6.centos                   upgrade            917 k
 redhat-upgrade-tool                      noarch            1:0.7.22-3.el6.centos                 upgrade             85 k
Installation pour dépendance:
 preupgrade-assistant                     x86_64            1.0.2-36.0.1.el6.centos               upgrade            439 k

Résumé de la transaction
===========================================================================================================================
Installation de     3 paquet(s)

Taille totale des téléchargements : 1.4 M
Taille d'installation : 6.5 M
Est-ce correct [o/N] : o
Téléchargement des paquets :
(1/3): preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64.rpm                                      | 439 kB     00:00
(2/3): preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch.rpm                                 | 917 kB     00:00
(3/3): redhat-upgrade-tool-0.7.22-3.el6.centos.noarch.rpm                                           |  85 kB     00:00
---------------------------------------------------------------------------------------------------------------------------
Total                                                                                      1.8 MB/s | 1.4 MB     00:00
Lancement de rpm_check_debug
Lancement de la transaction de test
Transaction de test réussie
Lancement de la transaction
  Installation  : preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64                                                  1/3
  Installation  : 1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch                                                     2/3
  Installation  : preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch                                             3/3
  Verifying     : preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64                                                  1/3
  Verifying     : 1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch                                                     2/3
  Verifying     : preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch                                             3/3

Installé:
  preupgrade-assistant-contents.noarch 0:0.5.14-1.el6.centos        redhat-upgrade-tool.noarch 1:0.7.22-3.el6.centos

Dépendance(s) installée(s) :
  preupgrade-assistant.x86_64 0:1.0.2-36.0.1.el6.centos

Terminé !
Retenter le preugrade :
# preupg
...
Tarball with results is stored here /root/preupgrade-results/preupg_results-181025145424.tar.gz .
The latest assessment is stored in directory /root/preupgrade .
Summary information:
We found some potential in-place upgrade risks.
Read the file /root/preupgrade/result.html for more details.
Upload results to UI by command:
e.g. preupg -u http://127.0.0.1:8099/submit/ -r /root/preupgrade-results/preupg_results-*.tar.gz .
Bingo mon âme de casse-cou à servi à quelque chose, pour une fois ca a marché. Me reste donc à lancer la mise à jour :
# centos-upgrade-tool-cli --network 7 --instrepo=http://mirror.centos.org/centos/7/os/x86_64/ --cleanup-post
setting up repos...
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/tmp/system-upgrade/base/mirrorlist.txt
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/tmp/system-upgrade/extras/mirrorlist.txt
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/tmp/system-upgrade/updates/mirrorlist.txt
No upgrade available for the following repos: base extras updates
.treeinfo                                                                                           |  354 B     00:00
Preupgrade assistant risk check found risks for this upgrade.
You can run preupg --riskcheck --verbose to view these risks.
Addressing high risk issues is required before the in-place upgrade
and ignoring these risks may result in a broken upgrade and unsupported upgrade.
Please backup your data.

List of issues:
INPLACERISK: HIGH: We detected some non-CentOS signed packages, you can find the list in /root/preupgrade/./kickstart/noncentospkgs. You need to handle them yourself!
INPLACERISK: HIGH: After upgrading to CentOS 7 there are still some el6 packages left. Add --cleanup-post option to redhat-upgrade-tool if you want to remove them automatically.
INPLACERISK: HIGH: There were changes in SELinux policies between CentOS 6 and CentOS 7. Please, check solution in order to resolve this issue.
INPLACERISK: HIGH: The service autofs on CentOS 7 is disabled by default. Enable them via commands: systemctl enable autofs && systemctl start autofs.service .
INPLACERISK: HIGH: The service blk-availability on CentOS 7 is disabled by default. Enable them via commands: systemctl enable blk-availability && systemctl start blk-availability.service .
INPLACERISK: HIGH: The service certmonger on CentOS 7 is disabled by default. Enable them via commands: systemctl enable certmonger && systemctl start certmonger.service .
INPLACERISK: HIGH: The service haldaemon on CentOS 7 is disabled by default. Enable them via commands: systemctl enable haldaemon && systemctl start haldaemon.service .
INPLACERISK: HIGH: The service ip6tables on CentOS 7 is disabled by default. Enable them via commands: systemctl enable ip6tables && systemctl start ip6tables.service .
INPLACERISK: HIGH: The service jexec on CentOS 7 is disabled by default. Enable them via commands: systemctl enable jexec && systemctl start jexec.service .
INPLACERISK: HIGH: The service mcelogd on CentOS 7 is disabled by default. Enable them via commands: systemctl enable mcelogd && systemctl start mcelogd.service .
INPLACERISK: HIGH: The service messagebus on CentOS 7 is disabled by default. Enable them via commands: systemctl enable messagebus && systemctl start messagebus.service .
INPLACERISK: HIGH: The service netfs on CentOS 7 is disabled by default. Enable them via commands: systemctl enable netfs && systemctl start netfs.service .
INPLACERISK: HIGH: The service network on CentOS 7 is disabled by default. Enable them via commands: systemctl enable network && systemctl start network.service .
INPLACERISK: HIGH: The service nfslock on CentOS 7 is disabled by default. Enable them via commands: systemctl enable nfslock && systemctl start nfslock.service .
INPLACERISK: HIGH: The service portreserve on CentOS 7 is disabled by default. Enable them via commands: systemctl enable portreserve && systemctl start portreserve.service .
INPLACERISK: HIGH: The service rpcgssd on CentOS 7 is disabled by default. Enable them via commands: systemctl enable rpcgssd && systemctl start rpcgssd.service .
INPLACERISK: HIGH: The service udev-post on CentOS 7 is disabled by default. Enable them via commands: systemctl enable udev-post && systemctl start udev-post.service .
INPLACERISK: HIGH: additional libcgroup configuration files were created (/etc/cgconfig.d)
INPLACERISK: MEDIUM: We detected some packages installed on the system were removed (obsoleted) between CentOS 6 and CentOS 7. This may break the functionality of the packages depending on them.
INPLACERISK: MEDIUM: We detected some packages installed on the system were removed between CentOS 6 and CentOS 7. This may break the functionality of the packages depending on them.
INPLACERISK: MEDIUM: Package coreutils-libs not provided by its replacement coreutils. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package libudev not provided by its replacement systemd-libs. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package ql2100-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package rt61pci-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package ql2400-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package ql2500-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package rt73usb-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package redhat-lsb-graphics not provided by its replacement redhat-lsb-desktop. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package bfa-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package ql2200-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: Package ql23xx-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script!
INPLACERISK: MEDIUM: having one of [audit-libs mesa-dri-drivers libitm python-sssdconfig libnl3 nss-util elfutils-libelf sssd-common sssd-ldap nss-sysinit java-1.6.0-openjdk json-c openscap libX11-common kpartx sssd-ad sssd certmonger mesa-libGLU libipa_hbac biosdevname ca-certificates mcelog nss libbasicobjects libsss_idmap sssd-common-pac sssd-ipa sssd-proxy mdadm mesa-libGL elfutils sssd-client nss-tools tzdata-java libini_config tzdata nspr gtk2 libdrm sssd-krb5-common sssd-krb5 openldap-clients audit libpciaccess openldap pixman libX11 libref_array elfutils-libs libxcb mesa-private-llvm systemtap-runtime] package installed breaks upgrade
INPLACERISK: MEDIUM:  We detected some soname bumps in the libraries installed on the system. This may break the functionality of some of your 3rd party applications. They may need rebuild. Please check their requirements.
INPLACERISK: MEDIUM:  We detected some .so libraries installed on the system were removed between CentOS 6 and CentOS 7. This may break the functionality of some of your 3rd party applications.
INPLACERISK: MEDIUM: The  name cups-lpd was changed on CentOS 7 to one of these services:  cups-lpd.socket cups-lpd@.service
INPLACERISK: MEDIUM: The service glassfish-webmail is not handled by any package and will not be automatically enabled after in-place upgrade.
INPLACERISK: MEDIUM: The service messaging64 is not handled by any package and will not be automatically enabled after in-place upgrade.
INPLACERISK: MEDIUM: The service odsee is not handled by any package and will not be automatically enabled after in-place upgrade.
INPLACERISK: MEDIUM: The service vmware-tools is not handled by any package and will not be automatically enabled after in-place upgrade.
INPLACERISK: MEDIUM: The service chargen-dgram is not installed by CentOS signed packages and will not be automatically enabled after in-place upgrade.
INPLACERISK: MEDIUM: The service chargen-stream is not installed by CentOS signed packages and will not be automatically enabled after in-place upgrade.
INPLACERISK: MEDIUM: The service daytime-dgram is not installed by CentOS signed packages and will not be automatically enabled after in-place upgrade.
INPLACERISK: MEDIUM: The service daytime-stream is not installed by CentOS signed packages and will not be automatically enabled after in-place upgrade.
INPLACERISK: MEDIUM: The service discard-dgram is not installed by CentOS signed packages and will not be automatically enabled after in-place upgrade.
INPLACERISK: MEDIUM: The service discard-stream is not installed by CentOS signed packages and will not be automatically enabled after in-place upgrade.
INPLACERISK: MEDIUM: The service echo-dgram is not installed by CentOS signed packages and will not be automatically enabled after in-place upgrade.
INPLACERISK: MEDIUM: The service echo-stream is not installed by CentOS signed packages and will not be automatically enabled after in-place upgrade.
INPLACERISK: MEDIUM: The service rsync is not installed by CentOS signed packages and will not be automatically enabled after in-place upgrade.
INPLACERISK: MEDIUM: The service tcpmux-server is not installed by CentOS signed packages and will not be automatically enabled after in-place upgrade.
INPLACERISK: MEDIUM: The service time-dgram is not installed by CentOS signed packages and will not be automatically enabled after in-place upgrade.
INPLACERISK: MEDIUM: The service time-stream is not installed by CentOS signed packages and will not be automatically enabled after in-place upgrade.
INPLACERISK: SLIGHT: We detected some files where modifications are not tracked in the rpms. You may need to check their functionality after successful upgrade.
INPLACERISK: SLIGHT: We detected some files untracked by rpms. Some of these may need manual check/migration after redhat-upgrade-tool and/or can cause conflicts or troubles during the installation. Try to reduce unnecessary untracked files before running redhat-upgrade-tool.
INPLACERISK: SLIGHT: We detected some packages installed on the system changed their name between CentOS 6 and CentOS 7. Although they should be compatible, monitoring after the update is recommended.
INPLACERISK: SLIGHT: export shell commands will be deleted from /etc/sysconfig/sshd
INPLACERISK: SLIGHT: Some binaries untracked by RPM were discovered on the system and may need rebuild after upgrade.
INPLACERISK: SLIGHT: Some scripts untracked by RPM were discovered on the system and may not work properly after upgrade.
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/glue1 is owned by an RPM package that was not signed by CentOS.
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/glue2 is owned by an RPM package that was not signed by CentOS.
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/validator is owned by an RPM package that was not signed by CentOS.
INPLACERISK: SLIGHT: /usr/lib64/python2.6/site-packages/report is not owned by any RPM package.
INPLACERISK: SLIGHT: /usr/lib64/python2.6/site-packages/reportclient is not owned by any RPM package.
Continue with the upgrade [Y/N]? y
getting boot images...

Downloading failed: invalid data in .treeinfo: No section: 'checksums'
Quand ca veut pas ca veut pas…
Vous vous doutez de ce que j’ai fait par la suite, j’ai googlé de nouveau jusqu’à tomber sur ce forum où on t’explique que l’outil est cassé et que la seule solution est de procéder à une réinstallation.
Voila merci de m’avoir suivi dans mes péripéties Linux et à bientôt pour de nouvelles aventures.
PS: si vous avez trouvé une solution simple, je suis preneur.

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *