Upgrade von OL8 auf OL9

Das ist ein Beispiel Update von OL8 auf OL9.
Im ersten Schritt die aktuelle Version verifizieren:

# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.9 (Ootpa)

Danach das Leapp Upgrade RPM Installieren.

# dnf install -y leapp-upgrade
Last metadata expiration check: 1:30:43 ago on Thu 07 Dec 2023 03:15:29 PM CET.
Dependencies resolved.
=============================================================================
 Package                Architecture  Version            Repository      Size
=============================================================================
Installing:
 leapp-upgrade-el8toel9 noarch        0.19.0-1.0.8.el8   ol8_appstream   902k
Installing dependencies:
 leapp                  noarch        0.16.0-2.0.1.el8   ol8_appstream    33k
 leapp-upgrade-el8toel9-deps  
                        noarch        0.19.0-1.0.8.el8   ol8_appstream    41k
 python3-leapp          noarch        0.16.0-2.0.1.el8   ol8_appstream   182k

Transaction Summary
============================================================================
Install  4 Packages

Total download size: 1.1 M
Installed size: 3.0 M
Downloading Packages:
(1/4): leapp-0.16.0-2.0.1.el8.noarch.rpm                       236 kB/s | ...
(2/4): leapp-upgrade-el8toel9-deps-0.19.0-1.0.8.el8.noarch.rpm 207 kB/s | ...
(3/4): python3-leapp-0.16.0-2.0.1.el8.noarch.rpm               1.0 MB/s | ...
(4/4): leapp-upgrade-el8toel9-0.19.0-1.0.8.el8.noarch.rpm      1.5 MB/s | ...
---------------------------------------------------------------------------
Total                                                          1.9 MB/s | ...
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                      1/1
  Installing       : python3-leapp-0.16.0-2.0.1.el8.noarch                1/4
  Installing       : leapp-0.16.0-2.0.1.el8.noarch                        2/4
  Installing       : leapp-upgrade-el8toel9-deps-0.19.0-1.0.8.el8.noarch  3/4
  Installing       : leapp-upgrade-el8toel9-0.19.0-1.0.8.el8.noarch       4/4
  Running scriptlet: leapp-upgrade-el8toel9-0.19.0-1.0.8.el8.noarch       4/4
  Verifying        : leapp-0.16.0-2.0.1.el8.noarch                        1/4
  Verifying        : leapp-upgrade-el8toel9-0.19.0-1.0.8.el8.noarch       2/4
  Verifying        : leapp-upgrade-el8toel9-deps-0.19.0-1.0.8.el8.noarch  3/4
  Verifying        : python3-leapp-0.16.0-2.0.1.el8.noarch                4/4

Installed:
  leapp-0.16.0-2.0.1.el8.noarch                        
  leapp-upgrade-el8toel9-0.19.0-1.0.8.el8.noarch
  leapp-upgrade-el8toel9-deps-0.19.0-1.0.8.el8.noarch  
  python3-leapp-0.16.0-2.0.1.el8.noarch

Complete!

Zunächst einen Preupgrade check ausführen:

# leapp preupgrade --oraclelinux
==> Processing phase `configuration_phase`
====> * ipu_workflow_config
        IPU workflow config actor
==> Processing phase `FactsCollection`
====> * scanmemory
        Scan Memory of the machine.
...
==> Processing phase `Checks`
====> * check_olm
        Check if OLM client packages are installed and ensure upgrade repo 
        is enabled.
...
==> Processing phase `TargetTransactionFactsCollection`
====> * create_iso_repofile
        Create custom repofile containing information about repositories 
        found in target OS installation ISO, if used.
====> * target_userspace_creator
        Initializes a directory to be populated as a minimal environment 
        to run binaries from the target system.
Oracle Linux 9 BaseOS Latest  (x86_64)          2.0 MB/s |  17 MB     00:08
Oracle Linux 9 Application Stream Packages (x86 1.9 MB/s |  26 MB     00:13
Oracle Linux 9 UEK Release 7 (x86_64)           1.5 MB/s |  24 MB     00:15
Last metadata expiration check: 0:00:05 ago on Thu Dec  7 17:29:37 2023.
Dependencies resolved.
=============================================================================
 Package                   Arch    Version             Repository          Size
=============================================================================
Installing:
 dnf                       noarch  4.14.0-8.0.1.el9    ol9_baseos_latest 535k
 dnf-plugins-core          noarch  4.3.0-11.0.1.el9_3  ol9_baseos_latest  55k
Installing dependencies:
 acl                       x86_64  2.3.1-3.el9         ol9_baseos_latest  88k
 alternatives              x86_64  1.24-1.0.1.el9      ol9_baseos_latest  38k
...
 zlib                      x86_64  1.2.11-40.el9       ol9_baseos_latest  95k
Installing weak dependencies:
 gawk-all-langpacks        x86_64  5.1.0-6.el9         ol9_appstream     226k
 glibc-gconv-extra         x86_64  2.34-83.0.1.el9_3.7 ol9_baseos_latest 1.8M
 libxcrypt-compat          x86_64  4.4.18-3.el9        ol9_appstream      89k
 python-unversioned-command 
                           noarch  3.9.18-1.el9_3      ol9_appstream     8.8k
 rpm-plugin-systemd-inhibit 
                           x86_64  4.16.1.3-25.el9     ol9_appstream      16k
 systemd                   x86_64  252-18.0.1.el9      ol9_baseos_latest 4.5M

Transaction Summary
=============================================================================
Install  152 Packages

Total download size: 83 M
Installed size: 235 M
Downloading Packages:
(1/152): alternatives-1.24-1.0.1.el9.x86_64.rpm 244 kB/s |  38 kB     00:00
(2/152): acl-2.3.1-3.el9.x86_64.rpm             514 kB/s |  88 kB     00:00
...
(151/152): libxcrypt-compat-4.4.18-3.el9.x86_64 729 kB/s |  89 kB     00:00
(152/152): util-linux-2.37.4-15.el9.x86_64.rpm  1.4 MB/s | 2.5 MB     00:01
----------------------------------------------------------------------------
Total                                           2.2 MB/s |  83 MB     00:37
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: filesystem-3.16-2.el9.x86_64                       1/1
  Preparing        :                                                        1/1
  Installing       : libgcc-11.4.1-2.1.0.1.el9.x86_64                   1/152
  Running scriptlet: libgcc-11.4.1-2.1.0.1.el9.x86_64                   1/152
...
  Verifying        : python-unversioned-command-3.9.18-1.el9_3.noarch 151/152
  Verifying        : rpm-plugin-systemd-inhibit-4.16.1.3-25.el9.x86_6 152/152

Installed:
  acl-2.3.1-3.el9.x86_64
  alternatives-1.24-1.0.1.el9.x86_64
  audit-libs-3.0.7-104.el9.x86_64
...
  xz-libs-5.2.5-8.el9_0.x86_64
  zlib-1.2.11-40.el9.x86_64

Complete!
==> Processing phase `TargetTransactionCheck`
====> * local_repos_inhibit
        Inhibits the upgrade if local repositories were found.
====> * missing_gpg_keys_inhibitor
        Check if all used target repositories have signing gpg keys
====> * check_systemd_services_tasks
        Inhibit the upgrade if SystemdServicesTasks tasks are in conflict
====> * tmp_actor_to_satisfy_sanity_checks
        The actor does NOTHING but satisfy static sanity checks
====> * target_userspace_crypto_policies
        Set crypto policies inside the target userspace container.
====> * check_initramfs_tasks
        Inhibit the upgrade if conflicting "initramfs" tasks are detected
====> * dnf_transaction_check
        This actor tries to solve the RPM transaction to verify the all 
        package dependencies can be successfully resolved.
Applying transaction workaround - IRB directory fix

Applying transaction workaround - import trusted gpg keys to RPM DB

Dependencies resolved.
=============================================================================
 Package           Architecture     Version             Repository       Size
=============================================================================
Resetting modules:
 gimp
 mariadb
 python27
 python36
 satellite-5-client
 virt

Transaction Summary
=============================================================================

Complete!
Last metadata expiration check: 0:01:25 ago on Thu Dec  7 17:29:37 2023.
=============================================================================
 Package             Arch    Version                       Repository    Size
=============================================================================
Installing:
 bind-libs           x86_64  32:9.16.23-14.el9_3           ol9_appstream 1.2M
     replacing bind-libs-lite.x86_64 32:9.11.36-11.el8_9
 dejavu-sans-fonts   noarch  2.37-18.el9                   ol9_baseos_latest 
                                                                         1.3M
     replacing dejavu-fonts-common.noarch 2.35-7.el8
...
 rsyslog-logrotate   x86_64  8.2102.0-117.el9              ol9_appstream  11k
Removing:
 bind-export-libs    x86_64  32:9.11.36-11.el8_9           @System       3.0M
 iptables            x86_64  1.8.5-10.0.1.el8_9            @System       1.9M
...
 trousers-lib        x86_64  0.3.15-1.el8                  @System       475k
Removing dependent packages:
 gdbm                x86_64  1:1.18-2.el8                  @System       380k
 kernel-uek          x86_64  5.15.0-200.131.27.1.el8uek    @System         0
...
 python3-webencodings noarch  0.5.1-6.el8                  @System        72k
Downgrading:
 crypto-policies      noarch  20230731-1.git94f0e2c.el9_3.1 
                                                           ol9_baseos_latest
                                                                         174k
...
 unbound-libs         x86_64  1.16.2-3.el9                 ol9_appstream 558k

Transaction Summary
=============================================================================
Install     56 Packages
Upgrade    468 Packages
Remove      44 Packages
Downgrade   14 Packages

Total size: 923 M
Total download size: 840 M
Downloading Packages:
Check completed.
==> Processing phase `Reports`
====> * verify_check_results
        Check all dialogs and notify that user needs to make some choices.
====> * verify_check_results
        Check all generated results messages and notify user about them.

Debug output written to /var/log/leapp/leapp-preupgrade.log

============================================================
                      REPORT OVERVIEW
============================================================

HIGH and MEDIUM severity reports:
    1. Remote root logins globally allowed using password
    2. Packages not signed by Oracle found on the system
    3. GRUB2 core will be automatically updated during the upgrade
    4. Default Boot Kernel

Reports summary:
    Errors:                      0
    Inhibitors:                  0
    HIGH severity reports:       3
    MEDIUM severity reports:     1
    LOW severity reports:        0
    INFO severity reports:       4

Before continuing consult the full report:
    A report has been generated at /var/log/leapp/leapp-report.json
    A report has been generated at /var/log/leapp/leapp-report.txt

============================================================
                   END OF REPORT OVERVIEW
============================================================

Answerfile has been generated at /var/log/leapp/answerfile

Wenn die Checks keine Fehler gefunden haben, kann man das Leapp Upgrade starten.

# leapp upgrade --oraclelinux
==> Processing phase `configuration_phase`
====> * ipu_workflow_config
        IPU workflow config actor
==> Processing phase `FactsCollection`
====> * sssd_facts_8to9
        Check SSSD configuration for changes in OL9 and report them in model.
...
==> Processing phase `Checks`
====> * checkblacklistca
        No documentation has been provided for the checkblacklistca actor.
...
====> * check_skip_phase
        Skip all the subsequent phases until the report phase.
==> Processing phase `TargetTransactionFactsCollection`
====> * create_iso_repofile
        Create custom repofile containing information about repositories
        found 
        in target OS installation ISO, if used.
====> * target_userspace_creator
        Initializes a directory to be populated as a minimal environment 
        to run binaries from the target system.
Oracle Linux 9 BaseOS Latest  (x86_64)          2.2 MB/s |  17 MB     00:07
Oracle Linux 9 Application Stream Packages (x86 2.1 MB/s |  26 MB     00:12
Oracle Linux 9 UEK Release 7 (x86_64)           2.1 MB/s |  24 MB     00:11
Last metadata expiration check: 0:00:05 ago on Thu Dec  7 17:35:49 2023.
Dependencies resolved.
============================================================================
 Package                Arch    Version             Repository          Size
============================================================================
Installing:
 dnf                    noarch  4.14.0-8.0.1.el9    ol9_baseos_latest  535k
 dnf-plugins-core       noarch  4.3.0-11.0.1.el9_3  ol9_baseos_latest   55k
Installing dependencies:
 acl                    x86_64  2.3.1-3.el9         ol9_baseos_latest   88k
...
 zlib                   x86_64  1.2.11-40.el9       ol9_baseos_latest   95k
Installing weak dependencies:
 gawk-all-langpacks     x86_64  5.1.0-6.el9         ol9_appstream      226k
...
 systemd                x86_64  252-18.0.1.el9      ol9_baseos_latest  4.5M

Transaction Summary
============================================================================
Install  152 Packages

Total download size: 83 M
Installed size: 235 M
Downloading Packages:
(1/152): alternatives-1.24-1.0.1.el9.x86_64.rpm 178 kB/s |  38 kB     00:00
(2/152): acl-2.3.1-3.el9.x86_64.rpm             370 kB/s |  88 kB     00:00
...
(151/152): gawk-all-langpacks-5.1.0-6.el9.x86_6 929 kB/s | 226 kB     00:00
(152/152): util-linux-2.37.4-15.el9.x86_64.rpm  1.5 MB/s | 2.5 MB     00:01
---------------------------------------------------------------------------
Total                                           2.2 MB/s |  83 MB     00:37
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: filesystem-3.16-2.el9.x86_64                         1/1
  Preparing        :                                                      1/1
  Installing       : libgcc-11.4.1-2.1.0.1.el9.x86_64                   1/152
  Running scriptlet: libgcc-11.4.1-2.1.0.1.el9.x86_64                   1/152
...
  Verifying        : rpm-plugin-systemd-inhibit-4.16.1.3-25.el9.x86_6 152/152

Installed:
  acl-2.3.1-3.el9.x86_64
  alternatives-1.24-1.0.1.el9.x86_64
...
  zlib-1.2.11-40.el9.x86_64

Complete!
==> Processing phase `TargetTransactionCheck`
====> * missing_gpg_keys_inhibitor
        Check if all used target repositories have signing gpg keys
====> * dnf_transaction_check
        This actor tries to solve the RPM transaction to verify the all 
        package dependencies can be successfully resolved.
Applying transaction workaround - IRB directory fix

Applying transaction workaround - import trusted gpg keys to RPM DB

Dependencies resolved.
=============================================================================
 Package           Architecture     Version             Repository       Size
=============================================================================
Resetting modules:
 gimp
 mariadb
 python27
 python36
 satellite-5-client
 virt

Transaction Summary
=============================================================================

Complete!
Last metadata expiration check: 0:01:24 ago on Thu Dec  7 17:35:49 2023.
=============================================================================
 Package           Arch    Version                     Repository        Size
=============================================================================
Installing:
 bind-libs         x86_64  32:9.16.23-14.el9_3         ol9_appstream     1.2M
     replacing bind-libs-lite.x86_64 32:9.11.36-11.el8_9
 dejavu-sans-fonts noarch  2.37-18.el9                 ol9_baseos_latest 1.3M
     replacing dejavu-fonts-common.noarch 2.35-7.el8
...
 util-linux-core   x86_64  2.37.4-15.el9               ol9_baseos_latest 520k
     replacing hardlink.x86_64 1:1.3-6.el8
Upgrading:
 NetworkManager    x86_64  1:1.44.0-3.0.1.el9          ol9_baseos_latest 2.3M
...
 unbound-libs      x86_64  1.16.2-3.el9                ol9_appstream     558k

Transaction Summary
=============================================================================
Install     56 Packages
Upgrade    468 Packages
Remove      44 Packages
Downgrade   14 Packages

Total size: 923 M
Total download size: 840 M
Downloading Packages:
Check completed.
====> * tmp_actor_to_satisfy_sanity_checks
        The actor does NOTHING but satisfy static sanity checks
====> * target_userspace_crypto_policies
        Set crypto policies inside the target userspace container.
====> * local_repos_inhibit
        Inhibits the upgrade if local repositories were found.
====> * check_systemd_services_tasks
        Inhibit the upgrade if SystemdServicesTasks tasks are in conflict
====> * check_initramfs_tasks
        Inhibit the upgrade if conflicting "initramfs" tasks are detected
==> Processing phase `Reports`
====> * verify_check_results
        Check all dialogs and notify that user needs to make some choices.
====> * verify_check_results
        Check all generated results messages and notify user about them.
==> Processing phase `Download`
====> * dnf_package_download
        Actor that invokes DNF to download the RPMs required for the upgrade transaction.
Applying transaction workaround - IRB directory fix

Applying transaction workaround - import trusted gpg keys to RPM DB

Last metadata expiration check: 0:01:38 ago on Thu Dec  7 17:35:49 2023.
Dependencies resolved.
=============================================================================
 Package              Arch    Version                    Repository      Size
=============================================================================
Installing:
 bind-libs            x86_64  32:9.16.23-14.el9_3        ol9_appstream   1.2M
     replacing bind-libs-lite.x86_64 32:9.11.36-11.el8_9
 dejavu-sans-fonts    noarch  2.37-18.el9                ol9_baseos_latest
                                                                         1.3M
     replacing dejavu-fonts-common.noarch 2.35-7.el8
...
 rsyslog-logrotate    x86_64  8.2102.0-117.el9           ol9_appstream    11k
Removing:
 bind-export-libs     x86_64  32:9.11.36-11.el8_9        @System         3.0M
...
 trousers-lib         x86_64  0.3.15-1.el8               @System         475k
Removing dependent packages:
 gdbm                 x86_64  1:1.18-2.el8               @System         380k
...
 python3-webencodings noarch  0.5.1-6.el8                @System          72k
Downgrading:
 crypto-policies      noarch  20230731-1.git94f0e2c.el9_3.1
                                                         ol9_baseos_latest 
                                                                        174k
...
 unbound-libs         x86_64  1.16.2-3.el9               ol9_appstream  558k

Transaction Summary
=============================================================================
Install     56 Packages
Upgrade    468 Packages
Remove      44 Packages
Downgrade   14 Packages

Total size: 923 M
Total download size: 840 M
DNF will only download packages, install gpg keys, and check the transaction.
Downloading Packages:
[SKIPPED] crypto-policies-20230731-1.git94f0e2c.el9_3.1.noarch.rpm: Already downloaded
[SKIPPED] alternatives-1.24-1.0.1.el9.x86_64.rpm: Already downloaded
...
[SKIPPED] rpm-plugin-systemd-inhibit-4.16.1.3-25.el9.x86_64.rpm: Already downloaded
(153/536): libaio-0.3.111-13.el9.x86_64.rpm      68 kB/s |  24 kB     00:00
...
(536/536): linux-firmware-20231102-999.29.git2b 1.5 MB/s | 330 MB     03:41
-----------------------------------------------------------------------------
Total                                           2.3 MB/s | 840 MB     06:07
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Complete!
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
==> Processing phase `InterimPreparation`
====> * efi_interim_fix
        Adjust EFI boot entry for first reboot
====> * remove_upgrade_artifacts
        Removes artifacts left over by previous leapp runs
====> * upgrade_initramfs_generator
        Creates the upgrade initramfs
====> * dnf_dry_run
        Actor that invokes DNF to download the RPMs required for the 
        upgrade transaction.
Applying transaction workaround - IRB directory fix

Applying transaction workaround - import trusted gpg keys to RPM DB

Last metadata expiration check: 0:16:29 ago on Thu Dec  7 17:35:49 2023.
Dependencies resolved.
=============================================================================
 Package           Arch   Version                     Repository         Size
=============================================================================
Installing:
 bind-libs         x86_64 32:9.16.23-14.el9_3         ol9_appstream      1.2M
...
 zlib              x86_64 1.2.11-40.el9               ol9_baseos_latest   95k
Installing dependencies:
 adobe-source-code-pro-fonts
                   noarch 2.030.1.050-12.el9.1        ol9_baseos_latest  849k
...
 rsyslog-logrotate x86_64 8.2102.0-117.el9            ol9_appstream       11k
Removing:
 bind-export-libs  x86_64 32:9.11.36-11.el8_9         @System            3.0M
...
 trousers-lib      x86_64 0.3.15-1.el8                @System            475k
Removing dependent packages:
 gdbm              x86_64 1:1.18-2.el8                @System            380k
 kernel-uek        x86_64 5.15.0-200.131.27.1.el8uek  @System              0
...
 python3-webencodings 
                   noarch 0.5.1-6.el8                 @System             72k
Downgrading:
 crypto-policies   noarch 20230731-1.git94f0e2c.el9_3.1 
                                                      ol9_baseos_latest  174k
...
 unbound-libs      x86_64 1.16.2-3.el9                ol9_appstream      558k

Transaction Summary
=============================================================================
Install     56 Packages
Upgrade    468 Packages
Remove      44 Packages
Downgrade   14 Packages

Total size: 923 M
DNF will only download packages, install gpg keys, and check the transaction.
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Complete!
====> * add_upgrade_boot_entry
        Add new boot entry for Leapp provided initramfs.
A reboot is required to continue. Please reboot your system.


Debug output written to /var/log/leapp/leapp-upgrade.log

============================================================
                      REPORT OVERVIEW
============================================================

HIGH and MEDIUM severity reports:
    1. GRUB2 core will be automatically updated during the upgrade
    2. Remote root logins globally allowed using password
    3. Packages not signed by Oracle found on the system
    4. Default Boot Kernel

Reports summary:
    Errors:                      0
    Inhibitors:                  0
    HIGH severity reports:       3
    MEDIUM severity reports:     1
    LOW severity reports:        0
    INFO severity reports:       4

Before continuing consult the full report:
    A report has been generated at /var/log/leapp/leapp-report.json
    A report has been generated at /var/log/leapp/leapp-report.txt

============================================================
                   END OF REPORT OVERVIEW
============================================================

Answerfile has been generated at /var/log/leapp/answerfile

Als letzten Schritt den Server rebooten und das erfolgreiche Upgrade verifizieren:

# sync; sync; reboot
# cat /etc/redhat-release
Red Hat Enterprise Linux release 9.3 (Plow)

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

This site uses Akismet to reduce spam. Learn how your comment data is processed.