Git Product home page Git Product logo

leapp-repository's People

Contributors

alexandrepossebom avatar artmello avatar bocekm avatar drehak avatar erig0 avatar evgeni avatar examon avatar fellipeh avatar fernflower avatar jakuje avatar jmikovic avatar lkundrak avatar matejmatuska avatar michalhe avatar mlichvar avatar msekletar avatar olysonek avatar pbrezina avatar pcahyna avatar pemensik avatar petermocary avatar pirat89 avatar rezney avatar shaded-enmity avatar vinzenz avatar vmojzis avatar vojtechsokol avatar yarda avatar zdohnal avatar zhukovgreen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

leapp-repository's Issues

Actor dnf_package_download unexpectedly terminated

Actual behavior
The migration from CentOS 7 to Rocky Linux 8 fails with error:

Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Process Process-476:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 72, in _do_run
    actor_instance.run(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 290, in run
    self.process(*args)
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/dnfpackagedownload/actor.py", line 51, in process
    xfs_info=xfs_info, storage_info=storage_info, plugin_info=plugin_info, on_aws=on_aws
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/dnfplugin.py", line 385, in perform_rpm_download
    test=True, on_aws=on_aws
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/dnfplugin.py", line 219, in _transaction
    e.stdout = e.stdout.encode('utf-8', 'xmlcharrefreplace')
AttributeError: can't set attribute
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Process Process-476:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 72, in _do_run
    actor_instance.run(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 290, in run
    self.process(*args)
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/dnfpackagedownload/actor.py", line 51, in process
    xfs_info=xfs_info, storage_info=storage_info, plugin_info=plugin_info, on_aws=on_aws
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/dnfplugin.py", line 385, in perform_rpm_download
    test=True, on_aws=on_aws
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/dnfplugin.py", line 219, in _transaction
    e.stdout = e.stdout.encode('utf-8', 'xmlcharrefreplace')
AttributeError: can't set attribute

Actor dnf_package_download unexpectedly terminated with exit code: 1 - Please check the above details

===============================================================================

**To Reproduce**
install 'leapp'
run 'leapp upgrade --debug'
See error

**Expected behavior**
Successful migration

**System information (please complete the following information):**
CentOS Linux release 7.9.2009 (Core)
Linux op5.vallentuna.local 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
leapp-0.14.0-1.el7.noarch
leapp-deps-0.14.0-1.el7.noarch
leapp-data-rocky-0.1-6.el7.noarch
leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.noarch
leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.noarch

Filesystem                       Type      Size  Used Avail Use% Mounted on
devtmpfs                         devtmpfs  1.9G     0  1.9G   0% /dev
tmpfs                            tmpfs     1.9G     0  1.9G   0% /dev/shm
tmpfs                            tmpfs     1.9G   21M  1.9G   2% /run
tmpfs                            tmpfs     1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/mapper/vg_op5system-lv_root xfs        78G   32G   47G  41% /
/dev/sda1                        ext4      488M  115M  338M  26% /boot
tmpfs                            tmpfs     379M     0  379M   0% /run/user/0

===============================================================================



lvm2-cluster RPM should be considered as an inhibitor for the migration

leapp-logs.tar.gz
Actual behavior
I had a centos7 machine where we attemtped to migrate to AlmaLinux 8, everything went well according to the documentation until it came the moment to reboot, then the machine failed to complete the migration and it was unable to boot anymore because it failed to upgrade the lvm2-cluster rpm.

I understand the documentation states ELevate does not support HA clusters but it would be nice if the migration process were halted before rebooting.

To Reproduce
Steps to reproduce the behavior

Get a regular CentOS 7 machine and install the lvm2-cluster RPM, follow the standard process for the migration to AlmaLinux8 and see it fall in flames.

     yum update -y 
     yum install -y lvm2-cluster
     reboot
     sudo yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm
     sudo yum install -y leapp-upgrade leapp-data-almalinux
     sudo leapp preupgrade
     sudo leapp answer --section remove_pam_pkcs11_module_check.confirm=True
     sudo leapp preupgrade
===================================

Total size: 850 M
Total download size: 739 M
Downloading Packages:
Check completed.
====> * report_set_target_release
        Reports information related to the release set in the subscription-manager after the upgrade.
====> * local_repos_inhibit
        Inhibits the upgrade if local repositories were found.
====> * tmp_actor_to_satisfy_sanity_checks
        The actor does NOTHING but satisfy static sanity checks
====> * 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.

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

============================================================
                           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                        
============================================================

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

Expected behavior
A report in the pre-upgrade process stating the lvm2-cluster rpm can not be installed during the migration process.

System information (please complete the following information):

  • cat /etc/system-release

    CentOS Linux release 7.9.2009 (Core)

  • Linux centos7ii 3.10.0-1160.118.1.el7.x86_64 #1 SMP Wed Apr 24 16:01:50 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

  • [root@centos7ii ~]# rpm -qa| grep leapp leapp-deps-0.14.0-1.el7.noarch leapp-data-almalinux-0.2-5.el7.noarch leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.20.noarch python2-leapp-0.14.0-1.el7.noarch leapp-0.14.0-1.el7.noarch leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.20.noarch
    console_log.txt
    leapp-logs.tar.gz

# rpm -qa "leapp*"
leapp-0.4.0-1.201812151505Z.87a7b74.master.el7_5.noarch
leapp-repository-data-0.4.0-1.201812131256Z.f25d14e.master.el7_5.noarch
leapp-repository-0.4.0-1.201812131256Z.f25d14e.master.el7_5.noarch

Attach (or provide link to) log files if applicable (optional - may contain confidential information):

  • All files in /var/log/leapp
  • /var/lib/leapp/leapp.db
  • journalctl
  • If you want, you can optionally send anything else would you like to provide (e.g. storage info)

For your convenience you can pack all logs with this command:

# tar -czf leapp-logs.tar.gz /var/log/leapp /var/lib/leapp/leapp.db

Then you may attach only the leapp-logs.tar.gz file.


Additional context
Add any other context about the problem here.

Issue with leapp upgrade

This issue appears to be similar to the issue described in issue #15 however, that issue appears to be related to space and I do not have an issue with space on the system in question. I am getting the same message which looks to be related to the subscription-manager but I have removed subscription-manager, and any reference to it, and it is the same message using Oracle Linux or Rocky Linux.

I get the same error regardless of whether I use the --no-rhsm option or not.

Total                                            71 MB/s | 1.2 GB     00:17
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Process Process-476:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 72, in _do_run
    actor_instance.run(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 290, in run
    self.process(*args)
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/dnfpackagedownload/actor.py", line 51, in process
    xfs_info=xfs_info, storage_info=storage_info, plugin_info=plugin_info, on_aws=on_aws
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/dnfplugin.py", line 385, in perform_rpm_download
    test=True, on_aws=on_aws
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/dnfplugin.py", line 219, in _transaction
    e.stdout = e.stdout.encode('utf-8', 'xmlcharrefreplace')
AttributeError: can't set attribute


=====================================================================================================
Actor dnf_package_download unexpectedly terminated with exit code: 1 - Please check the above details
=====================================================================================================

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

============================================================
                           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
============================================================

The leapp-upgrade.log only shows the following:

2023-02-22 09:01:32.615 DEBUG    PID: 23413 leapp.workflow.Download.dnf_package_download: Command ['systemd-nspawn', '--register=no', '--quiet', '-D', u'/var/lib/leapp/el8userspace', '--setenv=LEAPP_UPGRADE_PATH_TARGET_RELEASE=8.6', '--setenv=LEAPP_NO_RHSM=1', '--setenv=LEAPP_EXPERIMENTAL=0', '--setenv=LEAPP_UPGRADE_PATH_FLAVOUR=default', '--setenv=LEAPP_COMMON_TOOLS=:/etc/leapp/repos.d/system_upgrade/el7toel8/tools', '--setenv=LEAPP_COMMON_FILES=:/etc/leapp/repos.d/system_upgrade/common/files:/etc/leapp/repos.d/system_upgrade/el7toel8/files', '--setenv=LEAPP_IPU_IN_PROGRESS=7to8', '--setenv=LEAPP_UNSUPPORTED=0', '--setenv=LEAPP_EXECUTION_ID=5c09e8eb-0ac9-48d9-9b3a-8d1b0dd3d4d4', '--setenv=LEAPP_HOSTNAME=systemNameRedacted', '/usr/bin/dnf', 'rhel-upgrade', 'download', '/var/lib/leapp/dnf-plugin-data.txt', '--disableplugin', 'subscription-manager'] failed with exit code 1.
2023-02-22 09:01:32.630 DEBUG    PID: 23413 leapp.workflow.Download.dnf_package_download: External command has finished: ['systemd-nspawn', '--register=no', '--quiet', '-D', u'/var/lib/leapp/el8userspace', '--setenv=LEAPP_UPGRADE_PATH_TARGET_RELEASE=8.6', '--setenv=LEAPP_NO_RHSM=1', '--setenv=LEAPP_EXPERIMENTAL=0', '--setenv=LEAPP_UPGRADE_PATH_FLAVOUR=default', '--setenv=LEAPP_COMMON_TOOLS=:/etc/leapp/repos.d/system_upgrade/el7toel8/tools', '--setenv=LEAPP_COMMON_FILES=:/etc/leapp/repos.d/system_upgrade/common/files:/etc/leapp/repos.d/system_upgrade/el7toel8/files', '--setenv=LEAPP_IPU_IN_PROGRESS=7to8', '--setenv=LEAPP_UNSUPPORTED=0', '--setenv=LEAPP_EXECUTION_ID=5c09e8eb-0ac9-48d9-9b3a-8d1b0dd3d4d4', '--setenv=LEAPP_HOSTNAME=systemNameRedacted', '/usr/bin/dnf', 'rhel-upgrade', 'download', '/var/lib/leapp/dnf-plugin-data.txt', '--disableplugin', 'subscription-manager']

Upgrading CentOS 7 to 8 with default Apache config breaks prefork PHP applications

Actual behavior
By default, Apache on CentOS 7 uses mpm_prefork. When upgrading to 8, the default Apache settings were changed to the 'new' default for Apache which included changing MPM to event. This requires php-fpm to be installed for PHP to operate correctly. As php-fpm is a weak dependency for PHP, it was not installed by Elevate when upgrading. This resulted in a non-functioning PHP application when running through Apache.

To Reproduce
Steps to reproduce the behavior

  1. Install Apache, MySQL and PHP on CentOS 7.
  2. Create basic PHP application operating with prefork (the default).
  3. ELevate to 8
  4. Application is no longer functional.

Expected behavior

  • Application should continue to function post-upgrade.

  • If rpm -V httpd shows no changes to config files, the user should be warned that Apache defaults to using FPM with mpm_event and sites relying on prefork will be affected.

System information (please complete the following information):

  • OS and version: (e.g. Fedora 29 or $ cat /etc/system-release)
  • CentOS 7.9 to AlmaLinux 8.9

Deal with python36 packages

Actual behavior
Trying to upgrade a EL7 machine with a number of python36 packages from EPEL installed:

Error: Transaction test error:
  file /usr/lib/python3.6/site-packages/__pycache__/six.cpython-36.opt-1.pyc from install of python3-six-1.11.0-8.el8.noarch conflicts with file from package python36-six-1.14.0-3.el7.noarch
  file /usr/lib/python3.6/site-packages/__pycache__/six.cpython-36.pyc from install of python3-six-1.11.0-8.el8.noarch conflicts with file from package python36-six-1.14.0-3.el7.noarch
  file /usr/lib/python3.6/site-packages/six.py from install of python3-six-1.11.0-8.el8.noarch conflicts with file from package python36-six-1.14.0-3.el7.noarch
  file /usr/lib/python3.6/site-packages/urllib3/__init__.py from install of python3-urllib3-1.24.2-5.el8.noarch conflicts with file from package python36-urllib3-1.25.6-2.el7.noarch
  file /usr/lib/python3.6/site-packages/urllib3/__pycache__/__init__.cpython-36.opt-1.pyc from install of python3-urllib3-1.24.2-5.el8.noarch conflicts with file from package python36-urllib3-1.25.6-2.el7.noarch
  file /usr/lib/python3.6/site-packages/urllib3/__pycache__/__init__.cpython-36.pyc from install of python3-urllib3-1.24.2-5.el8.noarch conflicts with file from package python36-urllib3-1.25.6-2.el7.noarch
...

To Reproduce
Steps to reproduce the behavior

  1. install 'python36-urllib3'
  2. run 'leap upgrade
    (when run leapp, use always the --debug option to provide more data)
  3. See error

Expected behavior
Probably should just remove all of the python36-* packages in the transaction, perhaps also installing the python3-* versions.

System information (please complete the following information):

  • OS and version: Scientific Linux 7.9
  • # uname -a Linux vmsl7.cora.nwra.com 3.10.0-1160.76.1.el7.x86_64 #1 SMP Tue Aug 9 08:47:12 CDT 2022 x86_64 x86_64 x86_64 GNU/Linux
  • # rpm -qa "*leapp*" (or shorthashes of commits in case of manual installation):
# rpm -qa "leapp*"
leapp-0.14.0-1.el7.noarch
leapp-upgrade-el7toel8-deps-0.16.0-0.202210212211Z.463e9e4.sl.el7_7.noarch
leapp-upgrade-el7toel8-0.16.0-0.202210212211Z.463e9e4.sl.el7_7.noarch
leapp-deps-0.14.0-1.el7.noarch
leapp-data-almalinux-0.1-6.el7.noarch
python2-leapp-0.14.0-1.el7.noarch

Attach (or provide link to) log files if applicable (optional - may contain confidential information):

  • All files in /var/log/leapp
  • /var/lib/leapp/leapp.db
  • journalctl
  • If you want, you can optionally send anything else would you like to provide (e.g. storage info)

For your convenience you can pack all logs with this command:

# [leapp-logs.tar.gz](https://github.com/AlmaLinux/leapp-repository/files/9890928/leapp-logs.tar.gz)

Then you may attach only the leapp-logs.tar.gz file.


Additional context
Add any other context about the problem here.

8 -> 9 UPGRADE INHIBITED

Actual behavior

Upgrade has been inhibited due to the following problems:
1. Inhibitor: Upgrade requires links in root directory to be relative
Consult the pre-upgrade report for details and possible remediation.

To Reproduce

start the upgrade

Expected behavior

working upgrade

System information (please complete the following information):

  • OS and version: (e.g. Fedora 29 or $ cat /etc/system-release)
  • 4.18.0-425.19.2.el8_7.x86_64 #1 SMP Tue Apr 4 05:30:47 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux
# rpm -qa "leapp*"
leapp-upgrade-el8toel9-deps-0.16.0-6.el8_6.elevate.12.noarch
leapp-deps-0.15.0-2.el8.noarch
python3-leapp-0.15.0-2.el8.noarch
leapp-0.15.0-2.el8.noarch
leapp-data-almalinux-0.2-2.el8.noarch
leapp-upgrade-el8toel9-0.16.0-6.el8_6.elevate.12.noarch

Attach (or provide link to) log files if applicable (optional - may contain confidential information):

  • All files in /var/log/leapp
  • /var/lib/leapp/leapp.db
  • journalctl
  • If you want, you can optionally send anything else would you like to provide (e.g. storage info)

For your convenience you can pack all logs with this command:

# tar -czf leapp-logs.tar.gz /var/log/leapp /var/lib/leapp/leapp.db

Then you may attach only the leapp-logs.tar.gz file.


Additional context
Add any other context about the problem here.

system_facts actor: StopActorExecutionError should be converted to an inhibitor

As it stands, if the system_facts actor has an issue parsing /etc/default/grub, it will raise a StopActorExecutionError exception. This will cause the issue to not be reported as an inhibitor. Since this issue prevents the upgrade from proceeding, it would be preferable to have it reported as an inhibitor so it will be detected as such when running "preupgrade".

Steps to reproduce:

  • Start on a CentOS 7 with leapp installed and setup to upgrade to AlmaLinux 8
  • Add the following line to /etc/default/grub: "unset GRUB_TERMINAL_OUTPUT"
  • Run "leapp preupgrade"

The preupgrade will halt due to the grub file issue, the error will be displayed on the terminal, and will be reported in /var/log/leapp/leapp-report.json. But, it will not be flagged as an inhibitor. This means that any code that processes the leapp-report.json file will not see that there were any issues that would inhibit the upgrade.

Another, more comprehensive fix, for this issue and others would be to have the code that catches StopActorExecutionError exceptions to flag the issue as an inhibitor when writing them to the report file (since anything causing the exception to be thrown would inhibit an upgrade operation).

Yum repos not present after CentOS 7 to Oracle Linux 8

Actual behavior
Following what appears to be a another-wise successful upgrade from Centos 7 to Oracle Linux 8 package updates/installs fail.

[root@localhost yum.repos.d]# dnf install nmap
Last metadata expiration check: 23:30:05 ago on Mon 27 Feb 2023 14:46:34 GMT.
No match for argument: nmap
Error: Unable to find a match: nmap

It appears to be due to /etc/yum.repo.d/oracle-linux-ol8.repo is not preset:

# ls -l /etc/yum.repos.d/
-rw-r--r--. 1 root root  367 Sep 28  2021 ELevate.repo

this appears to be due to the absence of oraclelinux-release-el8

# rpm -q oraclelinux-release-el8
package oraclelinux-release-el8 is not installed

Installing the package manually fixes the issue

[root@localhost yum.repos.d]# dnf install https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/x86_64/getPackage/oraclelinux-release-el8-1.0-28.el8.x86_64.rpm
Last metadata expiration check: 0:23:43 ago on Tue 28 Feb 2023 14:29:18 GMT.
oraclelinux-release-el8-1.0-28.el8.x86_64.rpm                                                                                   129 kB/s |  22 kB     00:00
Dependencies resolved.
================================================================================================================================================================
 Package                                         Architecture                   Version                              Repository                            Size
================================================================================================================================================================
Installing:
 oraclelinux-release-el8                         x86_64                         1.0-28.el8                           @commandline                          22 k

Transaction Summary
================================================================================================================================================================
Install  1 Package

Total size: 22 k
Installed size: 22 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                        1/1
  Installing       : oraclelinux-release-el8-1.0-28.el8.x86_64                                                                                              1/1
  Running scriptlet: oraclelinux-release-el8-1.0-28.el8.x86_64                                                                                              1/1
  Verifying        : oraclelinux-release-el8-1.0-28.el8.x86_64                                                                                              1/1

Installed:
  oraclelinux-release-el8-1.0-28.el8.x86_64

Complete!
[root@localhost yum.repos.d]# ls -l /etc/yum.repos.d/
total 16
-rw-r--r--. 1 root root  367 Sep 28  2021 ELevate.repo
-rw-r--r--. 1 root root 3660 Nov  8 15:55 oracle-linux-ol8.repo
-rw-r--r--. 1 root root  941 Nov 10 01:43 uek-ol8.repo
-rw-r--r--. 1 root root  243 Nov 10 01:43 virt-ol8.repo
[root@localhost yum.repos.d]# dnf -y install nmap
Oracle Linux 8 BaseOS Latest (x86_64)                                                                                            18 MB/s |  55 MB     00:03
Oracle Linux 8 Application Stream (x86_64)                                                                                       18 MB/s |  43 MB     00:02
Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 8 (x86_64)                                                       17 MB/s |  62 MB     00:03
Last metadata expiration check: 0:00:12 ago on Tue 28 Feb 2023 14:53:57 GMT.
Dependencies resolved.
================================================================================================================================================================
 Package                              Architecture                      Version                                  Repository                                Size
================================================================================================================================================================
Installing:
 nmap                                 x86_64                            2:7.70-8.el8                             ol8_appstream                            5.8 M
Installing dependencies:
 nmap-ncat                            x86_64                            2:7.70-8.el8                             ol8_appstream                            237 k

Transaction Summary
================================================================================================================================================================
Install  2 Packages

Total download size: 6.0 M
Installed size: 24 M
Downloading Packages:
(1/2): nmap-ncat-7.70-8.el8.x86_64.rpm                                                                                          1.0 MB/s | 237 kB     00:00
(2/2): nmap-7.70-8.el8.x86_64.rpm                                                                                                13 MB/s | 5.8 MB     00:00
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                            13 MB/s | 6.0 MB     00:00
Oracle Linux 8 Application Stream (x86_64)                                                                                       70 kB/s | 3.1 kB     00:00
Importing GPG key 0xAD986DA3:
 Userid     : "Oracle OSS group (Open Source Software group) <[email protected]>"
 Fingerprint: 76FD 3DB1 3AB6 7410 B89D B10E 8256 2EA9 AD98 6DA3
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                        1/1
  Installing       : nmap-ncat-2:7.70-8.el8.x86_64                                                                                                          1/2
  Running scriptlet: nmap-ncat-2:7.70-8.el8.x86_64                                                                                                          1/2
  Installing       : nmap-2:7.70-8.el8.x86_64                                                                                                               2/2
  Running scriptlet: nmap-2:7.70-8.el8.x86_64                                                                                                               2/2
  Verifying        : nmap-2:7.70-8.el8.x86_64                                                                                                               1/2
  Verifying        : nmap-ncat-2:7.70-8.el8.x86_64                                                                                                          2/2

Installed:
  nmap-2:7.70-8.el8.x86_64                                                     nmap-ncat-2:7.70-8.el8.x86_64

Complete!

To Reproduce
Steps to reproduce the behavior

  1. Perform a Fresh install of CentOS 7 picking the Minimal install type
  2. Perform upgrade with:
yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el7.noarch.rpm
yum install -y leapp-upgrade leapp-data-oraclelinux
leapp answer --add --section remove_pam_pkcs11_module_check.confirm=True
leapp preupgrade
leapp upgrade --reboot
  1. Confirm upgrade is sucessful:
$ cat /etc/system-release
Oracle Linux Server release 8.7
$ uname -a
Linux localhost.localdomain 4.18.0-425.13.1.el8_7.x86_64 #1 SMP Tue Feb 21 15:09:05 PST 2023 x86_64 x86_64 x86_64 GNU/Linux
  1. Attempt to install a package
# dnf install nmap
Last metadata expiration check: 23:30:05 ago on Mon 27 Feb 2023 14:46:34 GMT.
No match for argument: nmap
Error: Unable to find a match: nmap

Expected behavior
I'd expect the nmap package to be installed

System information (please complete the following information):

Pre-upgrade

  • OS and version: (e.g. Fedora 29 or $ cat /etc/system-release)

  • $ cat /etc/system-release
    CentOS Linux release 7.9.2009 (Core)

  • $ uname -a
    Linux localhost.localdomain 3.10.0-1160.71.1.el7.x86_64 #1 SMP Tue Jun 28 15:37:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

  • # rpm -qa "*leapp*" (or shorthashes of commits in case of manual installation):

$ rpm -qa "*leapp*"
python2-leapp-0.14.0-1.el7.noarch
leapp-0.14.0-1.el7.noarch
leapp-data-oraclelinux-0.1-6.el7.noarch
leapp-deps-0.14.0-1.el7.noarch
leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.1.noarch
leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.1.noarch

leapp-logs.tar.gz file attached


Additional context

/var/log/leapp/leapp-report.txt contains the following

Risk Factor: high
Title: Packages from unknown repositories may not be installed
Summary: 1 packages may not be installed or upgraded due to repositories unknown to leapp:
- oraclelinux-release-el8 (repoid: ol8-BaseOS)
Remediation: [hint] Please file a bug in http://bugzilla.redhat.com/ for leapp-repository component of the Red Hat Enterprise Linux product.
Key: 9a2b05abf8f45fd7915e52542887bb334bb218ea

leapp-logs.tar.gz
journalctl.txt

leapp dnfplugin.py conflicts on salt python3 packages

Some cPanel customers are reporting this issue while upgrading from CentOS 7 to AlmaLinux 8.
The error seems to come from the leapp-repository

This happened on a customer’s server where they removed the salt repository, but not the salt packages causing an error:

Process Process-476:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 72, in _do_run
    actor_instance.run(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 290, in run
    self.process(*args)
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/dnfpackagedownload/actor.py", line 51, in process
    xfs_info=xfs_info, storage_info=storage_info, plugin_info=plugin_info, on_aws=on_aws
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/dnfplugin.py", line 385, in perform_rpm_download
    test=True, on_aws=on_aws
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/dnfplugin.py", line 219, in _transaction
    e.stdout = e.stdout.encode('utf-8', 'xmlcharrefreplace')
AttributeError: can't set attribute{code}
This is due to the conflict:
{code}# grep -A5 'Transaction test error' /var/log/leapp/leapp-upgrade.log
2022-12-08 03:24:30.847 DEBUG    PID: 11736 leapp.workflow.Download.dnf_package_download: Error: Transaction test error:
2022-12-08 03:24:30.849 DEBUG    PID: 11736 leapp.workflow.Download.dnf_package_download:   file /usr/lib/python3.6/site-packages/__pycache__/six.cpython-36.opt-1.pyc from install of python3-six-1.11.0-8.el8.noarch conflicts with file from package python36-six-1.14.0-3.el7.noarch
2022-12-08 03:24:30.850 DEBUG    PID: 11736 leapp.workflow.Download.dnf_package_download:   file /usr/lib/python3.6/site-packages/__pycache__/six.cpython-36.pyc from install of python3-six-1.11.0-8.el8.noarch conflicts with file from package python36-six-1.14.0-3.el7.noarch
2022-12-08 03:24:30.852 DEBUG    PID: 11736 leapp.workflow.Download.dnf_package_download:   file /usr/lib/python3.6/site-packages/six.py from install of python3-six-1.11.0-8.el8.noarch conflicts with file from package python36-six-1.14.0-3.el7.noarch
2022-12-08 03:24:30.853 DEBUG    PID: 11736 leapp.workflow.Download.dnf_package_download:   file /usr/lib/python3.6/site-packages/urllib3/__init__.py from install of python3-urllib3-1.24.2-5.el8.noarch conflicts with file from package python36-urllib3-1.25.6-2.el7.noarch
2022-12-08 03:24:30.854 DEBUG    PID: 11736 leapp.workflow.Download.dnf_package_download:   file /usr/lib/python3.6/site-packages/urllib3/__pycache__/__init__.cpython-36.opt-1.pyc from install of python3-urllib3-1.24.2-5.el8.noarch conflicts with file from package python36-urllib3-1.25.6-2.el7.noarch

Caused by salt packages:

[03:55:04 sau-41805-vs root@94509955 /var/log/leapp]cPs# yum list installed | grep @salt-py3-latest
libsodium.x86_64                                1.0.18-1.el7           @salt-py3-latest
python3.x86_64                                  3.6.8-18.el7           @salt-py3-latest
python3-libs.x86_64                             3.6.8-18.el7           @salt-py3-latest
python36-PyYAML.x86_64                          3.13-1.el7             @salt-py3-latest
python36-chardet.noarch                         3.0.4-12.el7           @salt-py3-latest
python36-contextvars.noarch                     2.4-1.el7              @salt-py3-latest
python36-idna.noarch                            2.10-1.el7             @salt-py3-latest
python36-immutables.x86_64                      0.14-1.el7             @salt-py3-latest
python36-jinja2.noarch                          2.11.1-1.el7           @salt-py3-latest
python36-m2crypto.x86_64                        0.35.2-5.el7           @salt-py3-latest
python36-markupsafe.x86_64                      0.23-4.el7             @salt-py3-latest
python36-msgpack.x86_64                         0.6.2-2.el7            @salt-py3-latest
python36-psutil.x86_64                          5.6.7-1.el7            @salt-py3-latest
python36-pycurl.x86_64                          7.43.0-8.el7           @salt-py3-latest
python36-pysocks.noarch                         1.6.8-7.el7            @salt-py3-latest
python36-requests.noarch                        2.14.2-2.el7           @salt-py3-latest
python36-urllib3.noarch                         1.25.6-2.el7           @salt-py3-latest
python36-zmq.x86_64                             18.0.1-1.el7           @salt-py3-latest
salt.noarch                                     3005.1-1.el7           @salt-py3-latest
zeromq.x86_64                                   4.1.4-7.el7            @salt-py3-latest

Refs: CPANEL-42014

README updates

The README file for this repo seems to still only include information from the upstream. I think we should update this README to reflect information that is relevant to our implementation.

Rocky 8 to Alma 8 to Alma 9 Kernel issue

Use the https://github.com/AlmaLinux/almalinux-deploy to migrate from Rocky 8 to Alma 8 works but keeps the old kernel that Elevate does not like at all.

Need to remove all kernels from Rocky in order to proceed.

[root@SRV-Ansible ~]# uname -a
Linux SRV-Ansible.shedmtl.local 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 x86_64 x86_64 GNU/Linux

11:21 AM

`
[root@SRV-Ansible ~]# cat /var/log/leapp/leapp-report.txt
Risk Factor: high (inhibitor)
Title: Newest installed kernel not in use
Summary: To ensure a stable upgrade, the machine needs to be booted into the latest installed kernel.
Remediation: [hint] Boot into the most up-to-date kernel installed on the machine before running Leapp again.

Key: ebb478cfa5443f83a8c9a78ba510eb40e6e9d117
Risk Factor: high
Title: Packages not signed by Red Hat found on the system
Summary: The following packages have not been signed by Red Hat and may be removed during the upgrade process in case Red Hat-signed packages to be removed during the upgrade depend on them:

ansible
dkms
elevate-release
epel-release
esmtp
gpg-pubkey
htop
leapp
leapp-data-almalinux
leapp-deps
leapp-upgrade-el8toel9
leapp-upgrade-el8toel9-deps
libesmtp
python3-beautifulsoup4
python3-cssselect
python3-leapp
python3-pathspec
rsh
screen
yamllint
Key: 13f0791ae5f19f50e7d0d606fb6501f91b1efb2c

xfs_info_scanner - unable to open database file

This issue was reported as cpanel/elevate#120

During the leapp update, we can see the following error while trying to open the sqlite database.
It's unclear to me why it s failing to open the db

Log Extract

* 16-08:05:25 (3372) [INFO]   File "/usr/lib/python2.7/site-packages/leapp/utils/audit/__init__.py", line 60, in create_connection
* 16-08:05:25 (3372) [INFO]     return _initialize_database(sqlite3.connect(path))
* 16-08:05:25 (3372) [INFO] OperationalError: unable to open database file

Log from the leapp upgrade

* 16-07:58:55 (965) [INFO] Stage 3: skipping prep_for_leapp (already run)
* 16-07:58:55 (1485) [INFO] Running leapp upgrade
* 16-07:58:55 (3361) [INFO] Running: /usr/bin/leapp upgrade
* 16-07:58:55 (3362) [INFO]
* 16-07:59:16 (3372) [INFO] ==> Processing phase `configuration_phase`
* 16-07:59:16 (3372) [INFO] ====> * ipu_workflow_config
* 16-07:59:16 (3372) [INFO]         IPU workflow config actor
* 16-07:59:17 (3372) [INFO] ==> Processing phase `FactsCollection`
* 16-07:59:17 (3372) [INFO] ====> * repository_mapping
* 16-07:59:17 (3372) [INFO]         Produces message containing repository mapping based on provided file.
* 16-07:59:17 (3372) [INFO] ====> * tcp_wrappers_config_read
* 16-07:59:17 (3372) [INFO]         Parse tcp_wrappers configuration files /etc/hosts.{allow,deny}.
* 16-07:59:17 (3372) [INFO] ====> * rpm_scanner
* 16-07:59:17 (3372) [INFO]         Provides data about installed RPM Packages.
* 16-07:59:58 (3372) [INFO] Loaded plugins: versionlock
* 16-08:00:02 (3372) [INFO] ====> * common_leapp_dracut_modules
* 16-08:00:02 (3372) [INFO]         Influences the generation of the initram disk
* 16-08:00:03 (3372) [INFO] ====> * restricted_pcis_scanner
* 16-08:00:03 (3372) [INFO]         Provides data about restricted (unsupported or/and unavailable) devices.
* 16-08:00:03 (3372) [INFO] ====> * grubdevname
* 16-08:00:03 (3372) [INFO]         Get name of block device where GRUB is located
* 16-08:00:03 (3372) [INFO] ====> * root_scanner
* 16-08:00:03 (3372) [INFO]         Scan the system root directory and produce a message containing
* 16-08:00:03 (3372) [INFO] ====> * scanclienablerepo
* 16-08:00:03 (3372) [INFO]         Produce CustomTargetRepository based on the LEAPP_ENABLE_REPOS in config.
* 16-08:00:03 (3372) [INFO] ====> * scandasd
* 16-08:00:03 (3372) [INFO]         In case of s390x architecture, check whether DASD is used.
* 16-08:00:04 (3372) [INFO] ====> * scanmemory
* 16-08:00:04 (3372) [INFO]         Scan Memory of the machine.
* 16-08:00:04 (3372) [INFO] ====> * scancpu
* 16-08:00:04 (3372) [INFO]         Scan CPUs of the machine.
* 16-08:00:04 (3372) [INFO] ====> * scan_kernel_cmdline
* 16-08:00:04 (3372) [INFO]         No documentation has been provided for the scan_kernel_cmdline actor.
* 16-08:00:04 (3372) [INFO] ====> * scan_custom_repofile
* 16-08:00:04 (3372) [INFO]         Scan the custom /etc/leapp/files/leapp_upgrade_repositories.repo repo file.
* 16-08:00:05 (3372) [INFO] ====> * scan_files_for_target_userspace
* 16-08:00:05 (3372) [INFO]         Scan the source system and identify files that will be copied into the target userspace when it is created.
* 16-08:00:05 (3372) [INFO] ====> * system_facts
* 16-08:00:05 (3372) [INFO]         Provides data about many facts from system.
* 16-08:00:35 (3372) [INFO] ====> * network_manager_read_config
* 16-08:00:35 (3372) [INFO]         Provides data about NetworkManager configuration.
* 16-08:00:35 (3372) [INFO] ====> * get_installed_desktops
* 16-08:00:35 (3372) [INFO]         Actor checks if kde or gnome desktop environments
* 16-08:00:36 (3372) [INFO] ====> * removed_pam_modules_scanner
* 16-08:00:36 (3372) [INFO]         Scan PAM configuration for modules that are not available in RHEL-8.
* 16-08:00:36 (3372) [INFO] ====> * scan_sap_hana
* 16-08:00:36 (3372) [INFO]         Gathers information related to SAP HANA instances on the system.
* 16-08:00:36 (3372) [INFO] ====> * repositories_blacklist
* 16-08:00:36 (3372) [INFO]         Exclude target repositories provided by Red Hat without support.
* 16-08:00:36 (3372) [INFO] ====> * scan_subscription_manager_info
* 16-08:00:36 (3372) [INFO]         Scans the current system for subscription manager information
* 16-08:00:36 (3372) [INFO] ====> * pam_modules_scanner
* 16-08:00:36 (3372) [INFO]         Scan the pam directory for services and modules used in them
* 16-08:00:36 (3372) [INFO] ====> * transaction_workarounds
* 16-08:00:36 (3372) [INFO]         Provides additional RPM transaction tasks based on bundled RPM packages.
* 16-08:00:36 (3372) [INFO] ====> * read_openssh_config
* 16-08:00:36 (3372) [INFO]         Collect information about the OpenSSH configuration.
* 16-08:00:37 (3372) [INFO] ====> * selinuxcontentscanner
* 16-08:00:37 (3372) [INFO]         Scan the system for any SELinux customizations
* 16-08:00:57 (3372) [INFO] ====> * storage_scanner
* 16-08:00:57 (3372) [INFO]         Provides data about storage settings.
* 16-08:00:57 (3372) [INFO] ====> * firewalld_facts_actor
* 16-08:00:57 (3372) [INFO]         Provide data about firewalld
* 16-08:00:57 (3372) [INFO] ====> * pci_devices_scanner
* 16-08:00:57 (3372) [INFO]         Provides data about existing PCI Devices.
* 16-08:01:02 (3372) [INFO] ====> * authselect_scanner
* 16-08:01:02 (3372) [INFO]         Detect what authselect configuration should be suggested to administrator.
* 16-08:01:03 (3372) [INFO] ====> * check_kde_apps
* 16-08:01:03 (3372) [INFO]         Actor checks which KDE apps are installed.
* 16-08:01:04 (3372) [INFO] ====> * persistentnetnames
* 16-08:01:04 (3372) [INFO]         Get network interface information for physical ethernet interfaces of the original system.
* 16-08:01:04 (3372) [INFO] ====> * source_boot_loader_scanner
* 16-08:01:04 (3372) [INFO]         Scans the boot loader configuration on the source system.
* 16-08:01:05 (3372) [INFO] ====> * red_hat_signed_rpm_scanner
* 16-08:01:05 (3372) [INFO]         Provide data about installed RPM Packages signed by Red Hat.
* 16-08:01:06 (3372) [INFO] ====> * udevadm_info
* 16-08:01:06 (3372) [INFO]         Produces data exported by the "udevadm info" command.
* 16-08:02:21 (3372) [INFO] ====> * sssd_facts
* 16-08:02:21 (3372) [INFO]         Check SSSD configuration for changes in RHEL8 and report them in model.
* 16-08:02:21 (3372) [INFO] ====> * biosdevname
* 16-08:02:21 (3372) [INFO]         Enable biosdevname on the target RHEL system if all interfaces on the source RHEL
* 16-08:02:21 (3372) [INFO] ====> * sctp_read_status
* 16-08:02:21 (3372) [INFO]         Determines whether or not the SCTP kernel module might be wanted.
* 16-08:02:21 (3372) [INFO] ====> * used_repository_scanner
* 16-08:02:21 (3372) [INFO]         Scan used enabled repositories
* 16-08:02:21 (3372) [INFO] ====> * xfs_info_scanner
* 16-08:02:21 (3372) [INFO]         This actor scans all mounted mountpoints for XFS information
* 16-08:05:25 (3372) [INFO] Process Process-253:
* 16-08:05:25 (3372) [INFO] Traceback (most recent call last):
* 16-08:05:25 (3372) [INFO]   File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap
* 16-08:05:25 (3372) [INFO]     self.run()
* 16-08:05:25 (3372) [INFO]   File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run
* 16-08:05:25 (3372) [INFO]     self._target(*self._args, **self._kwargs)
* 16-08:05:25 (3372) [INFO]   File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 72, in _do_run
* 16-08:05:25 (3372) [INFO]     actor_instance.run(*args, **kwargs)
* 16-08:05:25 (3372) [INFO]   File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 335, in run
* 16-08:05:25 (3372) [INFO]     self.process(*args)
* 16-08:05:25 (3372) [INFO]   File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/xfsinfoscanner/actor.py", line 23, in process
* 16-08:05:25 (3372) [INFO]     scan_xfs()
* 16-08:05:25 (3372) [INFO]   File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/xfsinfoscanner/libraries/xfsinfoscanner.py", line 45, in scan_xfs
* 16-08:05:25 (3372) [INFO]     mountpoints_ftype0 = list(filter(is_xfs_without_ftype, mountpoints))
* 16-08:05:25 (3372) [INFO]   File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/xfsinfoscanner/libraries/xfsinfoscanner.py", line 24, in is_xfs_without_ftype
* 16-08:05:25 (3372) [INFO]     for l in run(['/usr/sbin/xfs_info', '{}'.format(mp)], split=True)['stdout']:
* 16-08:05:25 (3372) [INFO]   File "/usr/lib/python2.7/site-packages/leapp/libraries/stdlib/__init__.py", line 203, in run
* 16-08:05:25 (3372) [INFO]     'process-result', {'id': _id, 'parameters': args, 'result': audit_result, 'env': env}
* 16-08:05:25 (3372) [INFO]   File "/usr/lib/python2.7/site-packages/leapp/utils/audit/__init__.py", line 286, in create_audit_entry
* 16-08:05:25 (3372) [INFO]     'data': data
* 16-08:05:25 (3372) [INFO]   File "/usr/lib/python2.7/site-packages/leapp/utils/audit/__init__.py", line 87, in store
* 16-08:05:25 (3372) [INFO]     with get_connection(db) as connection:
* 16-08:05:25 (3372) [INFO]   File "/usr/lib/python2.7/site-packages/leapp/utils/audit/__init__.py", line 73, in get_connection
* 16-08:05:25 (3372) [INFO]     return create_connection(cfg.get('database', 'path'))
* 16-08:05:25 (3372) [INFO]   File "/usr/lib/python2.7/site-packages/leapp/utils/audit/__init__.py", line 60, in create_connection
* 16-08:05:25 (3372) [INFO]     return _initialize_database(sqlite3.connect(path))
* 16-08:05:25 (3372) [INFO] OperationalError: unable to open database file
* 16-08:05:25 (3372) [INFO]
* 16-08:05:25 (3372) [INFO]
* 16-08:05:25 (3372) [INFO] =================================================================================================
* 16-08:05:25 (3372) [INFO] Actor xfs_info_scanner unexpectedly terminated with exit code: 1 - Please check the above details
* 16-08:05:25 (3372) [INFO] =================================================================================================
* 16-08:05:25 (3372) [INFO]
* 16-08:05:25 (3372) [INFO] Debug output written to /var/log/leapp/leapp-upgrade.log
* 16-08:05:25 (3372) [INFO]
* 16-08:05:25 (3372) [INFO] ============================================================
* 16-08:05:25 (3372) [INFO]                            REPORT
* 16-08:05:25 (3372) [INFO] ============================================================
* 16-08:05:25 (3372) [INFO]
* 16-08:05:25 (3372) [INFO] A report has been generated at /var/log/leapp/leapp-report.json
* 16-08:05:25 (3372) [INFO] A report has been generated at /var/log/leapp/leapp-report.txt
* 16-08:05:25 (3372) [INFO]
* 16-08:05:25 (3372) [INFO] ============================================================
* 16-08:05:25 (3372) [INFO]                        END OF REPORT
* 16-08:05:25 (3372) [INFO] ============================================================
* 16-08:05:25 (3372) [INFO]
* 16-08:05:25 (3372) [INFO] Answerfile has been generated at /var/log/leapp/answerfile
* 16-08:05:25 (3382) [INFO]
* 16-08:05:25 (526) [ERROR] Sending notification: Fail to update to AlmaLinux 8
* 16-08:05:25 (527) [ERROR] The elevation process failed during stage 3.

You can continue the process after fixing the errors by running:

    /usr/local/cpanel/scripts/elevate-cpanel --continue

You can check the error log by running:

    /usr/local/cpanel/scripts/elevate-cpanel

Last Error:

The 'leapp upgrade' process failed.

Please investigate, resolve then re-run the following command to continue the update:

    /scripts/elevate-cpanel --continue


You can read the full leapp report at: /var/log/leapp/leapp-report.txt



* 16-08:05:25 (400) [FATAL] The 'leapp upgrade' process failed.

Please investigate, resolve then re-run the following command to continue the update:

    /scripts/elevate-cpanel --continue


You can read the full leapp report at: /var/log/leapp/leapp-report.txt

leapp preupgrade fails when the rpm database contains UTF-8 strings

Actual behavior
The "leapp preupgrade" fails with an python error.

====> * vendor_signed_rpm_scanner
        Provide data about installed RPM Packages signed by Red Hat.
Process Process-250:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 72, in _do_run
    actor_instance.run(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 290, in run
    self.process(*args)
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/redhatsignedrpmscanner/actor.py", line 125, in process
    "Package {} is unsigned, packager: {}, signature: {}".format(pkg.name, pkg.packager, pkg.pgpsig)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 7: ordinal not in range(128)

To Reproduce
call leapp preupgrade

Expected behavior
The run without any errors

System information (please complete the following information):

  • OS and version: CentOS 7.9
  • # uname -a Linux XXX 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
  • # rpm -qa "*leapp*" (or shorthashes of commits in case of manual installation):
# rpm -qa "leapp*"
Last testing version.
[leapp-0.14.0-1.el7.noarch.rpm](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-0.14.0-1.el7.noarch.rpm)                      17-Aug-2022 10:52               27696
[leapp-data-almalinux-0.1-6.el7.noarch.rpm](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-data-almalinux-0.1-6.el7.noarch.rpm)          22-Aug-2022 13:55               52216
[leapp-data-centos-0.1-6.el7.noarch.rpm](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-data-centos-0.1-6.el7.noarch.rpm)             22-Aug-2022 13:55               52112
[leapp-data-cloudlinux-0.2-2.el7.noarch.rpm](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-data-cloudlinux-0.2-2.el7.noarch.rpm)         19-Oct-2022 08:20               54740
[leapp-data-eurolinux-0.1-6.el7.noarch.rpm](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-data-eurolinux-0.1-6.el7.noarch.rpm)          22-Aug-2022 13:55               52132
[leapp-data-oraclelinux-0.1-6.el7.noarch.rpm](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-data-oraclelinux-0.1-6.el7.noarch.rpm)        22-Aug-2022 13:55               52256
[leapp-data-rocky-0.1-6.el7.noarch.rpm](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-data-rocky-0.1-6.el7.noarch.rpm)              22-Aug-2022 13:55               52212
[leapp-deps-0.14.0-1.el7.noarch.rpm](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-deps-0.14.0-1.el7.noarch.rpm)                 17-Aug-2022 10:52               10224
[leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.1.n..>](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.1.noarch.rpm) 13-Oct-2022 15:14              815800
[leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.2.n..>](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.2.noarch.rpm) 13-Oct-2022 15:13              835348
[leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.3.n..>](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.3.noarch.rpm) 19-Oct-2022 08:24              835256
[leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.4.n..>](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.4.noarch.rpm) 15-Nov-2022 15:43              844788
[leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.6.n..>](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.6.noarch.rpm) 27-Jan-2023 09:09              852748
[leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.7.n..>](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.7.noarch.rpm) 13-Feb-2023 14:00              853148
[leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.noa..>](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.noarch.rpm) 22-Sep-2022 13:45              814356
[leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevat..>](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.1.noarch.rpm) 13-Oct-2022 15:14               24976
[leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevat..>](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.2.noarch.rpm) 13-Oct-2022 15:13               25012
[leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevat..>](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.3.noarch.rpm) 19-Oct-2022 08:24               25016
[leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevat..>](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.4.noarch.rpm) 15-Nov-2022 15:43               25032
[leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevat..>](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.6.noarch.rpm) 27-Jan-2023 09:09               25080
[leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevat..>](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.7.noarch.rpm) 13-Feb-2023 14:00               25060
[leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevat..>](https://repo.almalinux.org/elevate/testing/el7/x86_64/leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.noarch.rpm) 22-Sep-2022 13:45               24912
[python2-leapp-0.14.0-1.el7.noarch.rpm](https://repo.almalinux.org/elevate/testing/el7/x86_64/python2-leapp-0.14.0-1.el7.noarch.rpm)              17-Aug-2022 10:52              172456
[snactor-0.14.0-1.el7.noarch.rpm](https://repo.almalinux.org/elevate/testing/el7/x86_64/snactor-0.14.0-1.el7.noarch.rpm)                    17-Aug-2022 10:52               54464

Attach (or provide link to) log files if applicable (optional - may contain confidential information):

  • All files in /var/log/leapp
  • /var/lib/leapp/leapp.db
  • journalctl
  • If you want, you can optionally send anything else would you like to provide (e.g. storage info)

For your convenience you can pack all logs with this command:

# tar -czf leapp-logs.tar.gz /var/log/leapp /var/lib/leapp/leapp.db

Then you may attach only the leapp-logs.tar.gz file.


Additional context
The critical fields in the rpm database looks like name and packager.
Command to list it:
rpm -qa --queryformat="%{=NAME} Version %{=VERSION} packager: %{=PACKAGER} \n"
As an hot fix, remove the affected packages, then it will work.

Incorrectly detects NFS shares are mounted

Actual behavior
Risk Factor: high (inhibitor)
Title: Use of NFS detected. Upgrade can't proceed
Summary: NFS is currently not supported by the inplace upgrade.
We have found NFS usage at the following locations:

  • Currently mounted NFS shares

Remediation: [hint] Disable NFS temporarily for the upgrade if possible.
Key: 9881b25faceeeaa7a6478bcdac29afd7f6baaaed

Expected behavior
When no NFS shares are actually mounted (as you can see from the preupgrade log message above), there should be no inhibition.

System information (please complete the following information):

  • OS and version: AlmaLinux 8.10
  • Linux pvr.interlinx.bc.ca 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux
leapp-0.14.0-1.el8_6.noarch
leapp-deps-0.14.0-1.el8_6.noarch
leapp-data-almalinux-0.2-7.el8.noarch
leapp-upgrade-el8toel9-deps-0.16.0-6.el8_6.elevate.20.noarch
leapp-upgrade-el8toel9-0.16.0-6.el8_6.elevate.20.noarch
python3-leapp-0.14.0-1.el8_6.noarch

persistentnetnamesdisable and addupgradebootentry actors, etc. need to be more thorough in its handling of kernel command line arguments

We have noticed that once CentOS 7 has been upgraded to AlmaLinux 8 through leapp, subsequent kernel updates do not appear to receive the bootloader entry modification requested by the persistentnetnamesdisable actor. This required us to issue two separate updates to work around this issue, namely cpanel/elevate#195 and cpanel/elevate#205, but we think that these problems can still happen with leapp on its own and should thus be addressed upstream of our project.

The first change was based on the observation that net.ifnames=0 did not (always?) make it into the GRUB_CMDLINE_LINUX setting in /etc/default/grub when it did make it into the bootloader entry of the kernel leapp installed. leapp only appears to touch that setting if something emitted a GrubConfigError message which the addupgradebootentry actor read.

The second change was based on the observation that even if net.ifnames=0 makes it into /etc/default/grub, that is not sufficient to allow newer kernels installed after the upgrade to see this command line argument. As best as I can tell, the reason for this seems to be that although new kernels do run grub2-mkconfig as part of the framework which handles all the minutiae of configuring the new kernel to be booted, it does so with the --no-grubenv-update flag, which is a problem because the new kernels always specify their command line arguments as a reference to the $kernelopts environment variable, whose update this flag explicitly prevents. By contrast, the kernel leapp installs hardcodes all of its command line arguments in the bootloader entry file, which may be reasonable or even necessary during the upgrade but is probably not appropriate afterwards.

Adjust /etc/ssh/sshd_config automatically

We noticed that if you do not have PermitRootLogin set in /etc/ssh/sshd_config, upgrades are blocked.

I suggest that instead, the file should be updated if the setting is missing to say: PermitRootLogin yes, which is the CentOS 7 default. Then you don't need to block on this.

Bind configuration check actor got an stacktrace if one of file included from /etc/named.conf is empty

Actual behavior
Bind configuration got an stack trace when one of files to parse is empty.
The stack trace is:

        Check whether we are on legacy (BIOS) system and instruct Leapp to upgrade GRUB core
====> * check_se_linux
        Check SELinux status and produce decision messages for further action.
====> * check_postfix
        Check if postfix is installed, check whether configuration update is needed.
====> * check_bind
        Actor parsing BIND configuration and checking for known issues in it.
Process Process-442:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 72, in _do_run
    actor_instance.run(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 290, in run
    self.process(*args)
  File "/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/checkbind/actor.py", line 32, in process
    facts = iscmodel.get_facts('/etc/named.conf')
  File "/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/checkbind/libraries/iscmodel.py", line 81, in get_facts
    parser.walk(cfg.root_section(), find_calls, state)
  File "/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/libraries/isccfg.py", line 879, in walk
    for statement in it:
  File "/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/libraries/isccfg.py", line 223, in __next__
    statement = next(self.iter)
  File "/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/libraries/isccfg.py", line 181, in __next__
    val = self.parser.find_next_key(cfg, index, self.section.end)
  File "/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/libraries/isccfg.py", line 689, in find_next_key
    while istr[index] in self.CHAR_KEYWORD and index < end_index:
IndexError: string index out of range

To Reproduce

  1. Add empty file what we will include: touch /etc/named-user-options.conf
  2. Add include directive for into /etc/named.conf into options section with /etc/named-user-options.conf
  3. leapp preupgrade

Expected behavior
Leapp skip empty file and proceed to work

System information (please complete the following information):

# cat /etc/os-release 
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

# uname -a
Linux ip-10-69-45-134.eu-west-1.compute.internal 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
# rpm -qa "*leapp*"
python2-leapp-0.14.0-1.el7.noarch
leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.16.noarch
leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.16.noarch
leapp-data-almalinux-0.1-6.el7.noarch
leapp-deps-0.14.0-1.el7.noarch
leapp-0.14.0-1.el7.noarch

Attached logfiles

oraclelinux-release-el8 package not present after CentOS 7 to Oracle Linux 8

Actual behavior
Following what appears to be a another-wise successful upgrade from Centos 7 to Oracle Linux 8 package updates/installs fail. Note this is very similar to what happened in issue #54.

[root@localhost yum.repos.d]# dnf install nmap
Last metadata expiration check: 23:30:05 ago on Mon 27 Feb 2023 14:46:34 GMT.
No match for argument: nmap
Error: Unable to find a match: nmap

It appears to be due to /etc/yum.repo.d/oracle-linux-ol8.repo is not preset:

[root@leapp-test yum.repos.d]# ls -l
total 16
-rw-r--r--. 1 root root  379 Mar 17  2023 ELevate.repo

this appears to be due to the absence of oraclelinux-release-el8

# rpm -q oraclelinux-release-el8
package oraclelinux-release-el8 is not installed

Installing the package manually fixes the issue

[root@leapp-test peter]# dnf install https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/x86_64/getPackage/oraclelinux-release-el8-1.0-28.el8.x86_64.rpm
Last metadata expiration check: 1:35:21 ago on Thu 01 Feb 2024 21:33:27 GMT.
oraclelinux-release-el8-1.0-28.el8.x86_64.rpm                                                                                        142 kB/s |  22 kB     00:00
Dependencies resolved.
=====================================================================================================================================================================
 Package                                          Architecture                    Version                                Repository                             Size
=====================================================================================================================================================================
Installing:
 oraclelinux-release-el8                          x86_64                          1.0-28.el8                             @commandline                           22 k

Transaction Summary
=====================================================================================================================================================================
Install  1 Package

Total size: 22 k
Installed size: 22 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                             1/1
  Installing       : oraclelinux-release-el8-1.0-28.el8.x86_64                                                                                                   1/1
  Running scriptlet: oraclelinux-release-el8-1.0-28.el8.x86_64                                                                                                   1/1
  Verifying        : oraclelinux-release-el8-1.0-28.el8.x86_64                                                                                                   1/1

Installed:
  oraclelinux-release-el8-1.0-28.el8.x86_64

Complete!
[root@leapp-test yum.repos.d]# ls -l
total 16
-rw-r--r--. 1 root root  379 Mar 17  2023 ELevate.repo
-rw-r--r--. 1 root root 3660 Nov  8  2022 oracle-linux-ol8.repo
-rw-r--r--. 1 root root  941 Nov 10  2022 uek-ol8.repo
-rw-r--r--. 1 root root  243 Nov 10  2022 virt-ol8.repo
[root@leapp-test yum.repos.d]# dnf -y install nmap
Oracle Linux 8 BaseOS Latest (x86_64)                                                                                                6.0 MB/s |  68 MB     00:11
Oracle Linux 8 Application Stream (x86_64)                                                                                           4.8 MB/s |  54 MB     00:11
Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 8 (x86_64)                                                           3.2 MB/s |  85 MB     00:27
Last metadata expiration check: 0:00:06 ago on Thu 01 Feb 2024 23:12:26 GMT.
Dependencies resolved.
=====================================================================================================================================================================
 Package                               Architecture                       Version                                    Repository                                 Size
=====================================================================================================================================================================
Installing:
 nmap                                  x86_64                             2:7.92-1.el8                               ol8_appstream                             5.9 M
Installing dependencies:
 nmap-ncat                             x86_64                             2:7.92-1.el8                               ol8_appstream                             242 k

Transaction Summary
=====================================================================================================================================================================
Install  2 Packages

Total download size: 6.2 M
Installed size: 24 M
Downloading Packages:
(1/2): nmap-ncat-7.92-1.el8.x86_64.rpm                                                                                               1.0 MB/s | 242 kB     00:00
(2/2): nmap-7.92-1.el8.x86_64.rpm                                                                                                    6.5 MB/s | 5.9 MB     00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                6.7 MB/s | 6.2 MB     00:00
Oracle Linux 8 Application Stream (x86_64)                                                                                           161 kB/s | 3.1 kB     00:00
Importing GPG key 0xAD986DA3:
 Userid     : "Oracle OSS group (Open Source Software group) <[email protected]>"
 Fingerprint: 76FD 3DB1 3AB6 7410 B89D B10E 8256 2EA9 AD98 6DA3
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                             1/1
  Installing       : nmap-ncat-2:7.92-1.el8.x86_64                                                                                                               1/2
  Running scriptlet: nmap-ncat-2:7.92-1.el8.x86_64                                                                                                               1/2
  Installing       : nmap-2:7.92-1.el8.x86_64                                                                                                                    2/2
  Running scriptlet: nmap-2:7.92-1.el8.x86_64                                                                                                                    2/2
  Verifying        : nmap-2:7.92-1.el8.x86_64                                                                                                                    1/2
  Verifying        : nmap-ncat-2:7.92-1.el8.x86_64                                                                                                               2/2

Installed:
  nmap-2:7.92-1.el8.x86_64                                                       nmap-ncat-2:7.92-1.el8.x86_64

Complete!

To Reproduce
Steps to reproduce the behavior

  1. Perform a Fresh install of CentOS 7 picking the Minimal install type
  2. Perform upgrade with:
yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el7.noarch.rpm
yum install -y leapp-upgrade leapp-data-oraclelinux
leapp answer --add --section remove_pam_pkcs11_module_check.confirm=True
leapp preupgrade
leapp upgrade --reboot
  1. Confirm upgrade is sucessful:
$ cat /etc/system-release
Oracle Linux Server release 8.9
$ uname -a
Linux leapp-test 4.18.0-513.11.0.1.el8_9.x86_64 #1 SMP Thu Jan 11 11:30:45 PST 2024 x86_64 x86_64 x86_64 GNU/Linux
  1. Attempt to install a package
# dnf install nmap
Last metadata expiration check: 1:21:36 ago on Thu 01 Feb 2024 21:33:27 GMT.
No match for argument: nmap
Error: Unable to find a match: nmap

Expected behavior
I'd expect the nmap package to be installed

System information (please complete the following information):

Pre-upgrade

  • OS and version: (e.g. Fedora 29 or $ cat /etc/system-release)

  • $ cat /etc/system-release
    CentOS Linux release 7.9.2009 (Core)

  • $ uname -a
    Linux leapp-test 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

  • # rpm -qa "*leapp*" (or shorthashes of commits in case of manual installation):

$ rpm -qa "*leapp*"
leapp-0.14.0-1.el7.noarch
python2-leapp-0.14.0-1.el7.noarch
leapp-deps-0.14.0-1.el7.noarch
leapp-data-oraclelinux-0.2-4.el7.noarch
leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.19.noarch
leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.19.noarch

leapp-logs.tar.gz file attached


Additional context

/var/log/leapp/leapp-report.txt contains the following

Risk Factor: high
Title: Packages from unknown repositories may not be installed
Summary: 1 packages may not be installed or upgraded due to repositories unknown to leapp:
- oraclelinux-release-el8 (repoid: ol8-BaseOS)
Remediation: [hint] Please file a bug in http://bugzilla.redhat.com/ for leapp-repository component of the Red Hat Enterprise Linux product.
Key: 9a2b05abf8f45fd7915e52542887bb334bb218ea

journalctl.txt
leapp-logs.tar.gz

MariaDB 10.4 server removed on upgrade from CentOS 7 to 8

Actual behavior
MariaDB server 10.4 was installed on CentOS 7, when upgrading to 8, rpms were removed but not replaced. This results in a non-functional PHP app.

To Reproduce

  1. Install LAMP stack on CentOS 7 using Maria 10.4 from MariaDB repo.
  2. Upgrade to Alma 8.
  3. App is non-functional as there is no MariaDB server installed.

Expected behavior

  • MariaDB is upgraded to 11.3
  • User is warned that MariaDB will undergo a major version upgrade if continuing with OS upgrade.

System information (please complete the following information):

  • OS and version: (e.g. Fedora 29 or $ cat /etc/system-release)
  • CentOS 7.9
# rpm -qa "*leapp*"
leapp-deps-el8-5.0.8-100.202203181036Z.249925a3.master.el8.noarch
leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.19.noarch
leapp-data-almalinux-0.2-5.el7.noarch
python2-leapp-0.14.0-1.el7.noarch
leapp-repository-deps-el8-5.0.8-100.202203181036Z.249925a3.master.el8.noarch
leapp-0.14.0-1.el7.noarch

leapp-logs-mariadb.tar.gz

Additional context

  • It should be possible to upgrade MariaDB prior to upgrade.

Python error during leapp upgrade.

When running leapp upgrade from cpanel-elevate, the user is encountering the following python failure:

* 2023-02-23 15:17:23 (1412) [INFO] ******************************************************************************************
* 2023-02-23 15:17:23 (1413) [INFO] *
* 2023-02-23 15:17:23 (1414) [INFO] * Starting stage 3 of 5
* 2023-02-23 15:17:23 (1415) [INFO] *
* 2023-02-23 15:17:23 (1416) [INFO] ******************************************************************************************
* 2023-02-23 15:17:23 (1169) [INFO] Stage 3: skipping prep_for_leapp (already run)
* 2023-02-23 15:17:23 (1713) [INFO] Running leapp upgrade
* 2023-02-23 15:17:23 (4078) [INFO] Running: /usr/bin/leapp upgrade
* 2023-02-23 15:17:23 (4079) [INFO] 
* 2023-02-23 15:17:23 (4093) [INFO] Traceback (most recent call last):
* 2023-02-23 15:17:23 (4093) [INFO]   File "/usr/bin/leapp", line 5, in <module>
* 2023-02-23 15:17:23 (4093) [INFO]     from pkg_resources import load_entry_point
* 2023-02-23 15:17:23 (4093) [INFO]   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 72, in <module>
* 2023-02-23 15:17:23 (4093) [INFO]     import packaging.requirements
* 2023-02-23 15:17:23 (4093) [INFO]   File "/usr/lib/python2.7/site-packages/packaging/requirements.py", line 60, in <module>
* 2023-02-23 15:17:23 (4093) [INFO]     MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
* 2023-02-23 15:17:23 (4093) [INFO] TypeError: __call__() takes exactly 2 arguments (1 given)
* 2023-02-23 15:17:23 (4110) [INFO] 
* 2023-02-23 15:17:23 (657) [INFO] Sending notification: Fail to update to AlmaLinux 8
* 2023-02-23 15:17:23 (662) [ERROR] The elevation process failed during stage 3.
* 2023-02-23 15:17:23 (662) [ERROR] 
* 2023-02-23 15:17:23 (662) [ERROR] You can continue the process after fixing the errors by running:
* 2023-02-23 15:17:23 (662) [ERROR] 
* 2023-02-23 15:17:23 (662) [ERROR]     /usr/local/cpanel/scripts/elevate-cpanel --continue
* 2023-02-23 15:17:23 (662) [ERROR] 
* 2023-02-23 15:17:23 (662) [ERROR] You can check the error log by running:
* 2023-02-23 15:17:23 (662) [ERROR] 
* 2023-02-23 15:17:23 (662) [ERROR]     /usr/local/cpanel/scripts/elevate-cpanel
* 2023-02-23 15:17:23 (662) [ERROR] 
* 2023-02-23 15:17:23 (662) [ERROR] Last Error:
* 2023-02-23 15:17:23 (662) [ERROR] 
* 2023-02-23 15:17:23 (662) [ERROR] The 'leapp upgrade' process failed.
* 2023-02-23 15:17:23 (662) [ERROR] 
* 2023-02-23 15:17:23 (662) [ERROR] Please investigate, resolve then re-run the following command to continue the update:
* 2023-02-23 15:17:23 (662) [ERROR] 
* 2023-02-23 15:17:23 (662) [ERROR]     /scripts/elevate-cpanel --continue
* 2023-02-23 15:17:23 (529) [FATAL] The 'leapp upgrade' process failed.

I notice:

TypeError: __call__() takes exactly 2 arguments (1 given)

This appears to be a bug in the leapp code that might need correction?

Error: At least 644MB more space needed on the / filesystem.

On my CentOS 7 system with 34GB of free space, I am getting the following failure during a leapp upgrade:

* 2022-12-16 18:09:36 (3858) [INFO] STDERR:
* 2022-12-16 18:09:36 (3858) [INFO] No matches found for the following disable plugin patterns: subscription-manager
* 2022-12-16 18:09:36 (3858) [INFO] Warning: failed loading '/etc/yum.repos.d/CentOS-Media.repo', skipping.
* 2022-12-16 18:09:36 (3858) [INFO] Repository extras is listed more than once in the configuration
* 2022-12-16 18:09:36 (3858) [INFO] Repository extras-source is listed more than once in the configuration
* 2022-12-16 18:09:36 (3858) [INFO] Warning: Package marked by Leapp to install not found in repositories metadata: python3-javapackages ivy-local
* 2022-12-16 18:09:36 (3858) [INFO] Warning: Package marked by Leapp to upgrade not found in repositories metadata: gpg-pubkey
* 2022-12-16 18:09:36 (3858) [INFO] RPM: warning: Generating 6 missing index(es), please wait...
* 2022-12-16 18:09:36 (3858) [INFO] Error: Transaction test error:
* 2022-12-16 18:09:36 (3858) [INFO]   installing package kernel-tools-4.18.0-425.3.1.el8.x86_64 needs 8MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package liblockfile-1.14-2.el8.x86_64 needs 8MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package emacs-common-1:26.1-7.el8.x86_64 needs 113MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libndp-1.7-6.el8.x86_64 needs 108MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package NetworkManager-initscripts-updown-1:1.40.0-2.el8_7.noarch needs 109MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package NetworkManager-1:1.40.0-2.el8_7.x86_64 needs 116MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package dracut-network-049-209.git20220815.el8.x86_64 needs 112MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package NetworkManager-wwan-1:1.40.0-2.el8_7.x86_64 needs 113MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libpath_utils-0.2.1-40.el8.x86_64 needs 113MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libini_config-1.3.1-40.el8.x86_64 needs 113MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package gssproxy-0.8.0-21.el8.x86_64 needs 113MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libpciaccess-0.14-1.el8.x86_64 needs 113MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libdrm-2.4.111-1.el8.x86_64 needs 113MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package vulkan-loader-1.3.224.0-2.el8.x86_64 needs 114MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package mesa-vulkan-drivers-22.1.5-2.el8.x86_64 needs 137MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libglvnd-glx-1:1.3.4-1.el8.x86_64 needs 138MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package mesa-libGL-22.1.5-2.el8.x86_64 needs 138MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package mesa-libgbm-22.1.5-2.el8.x86_64 needs 137MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libglvnd-egl-1:1.3.4-1.el8.x86_64 needs 138MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package mesa-libEGL-22.1.5-2.el8.x86_64 needs 138MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libpipeline-1.5.0-2.el8.x86_64 needs 138MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package man-db-2.7.6.1-18.el8.x86_64 needs 141MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libtirpc-devel-1.1.4-8.el8.x86_64 needs 140MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 needs 140MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package ctags-5.8-22.el8.x86_64 needs 140MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package fribidi-1.0.4-9.el8.x86_64 needs 140MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package pango-1.42.4-8.el8.x86_64 needs 141MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package jbigkit-libs-2.1-14.el8.x86_64 needs 141MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libtiff-4.0.9-23.el8.x86_64 needs 141MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package gdk-pixbuf2-modules-2.36.12-5.el8.x86_64 needs 142MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package gtk2-2.24.32-5.el8.x86_64 needs 156MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package gd-2.2.5-7.el8.x86_64 needs 148MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libtiff-devel-4.0.9-23.el8.x86_64 needs 150MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libepoxy-1.5.8-1.el8.x86_64 needs 151MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libestr-0.1.10-3.el8.x86_64 needs 150MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libfastjson-0.99.9-1.el8.x86_64 needs 150MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libwayland-egl-1.19.0-1.el8.x86_64 needs 150MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package gtk3-3.22.30-11.el8.x86_64 needs 169MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libdbusmenu-gtk3-16.04.0-12.el8.x86_64 needs 152MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libindicator-gtk3-12.10.1-14.el8.x86_64 needs 152MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libwmf-lite-0.2.9-8.el8_0.x86_64 needs 152MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package openjpeg2-2.4.0-5.el8.x86_64 needs 152MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libgs-9.27-4.el8.x86_64 needs 174MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package almalinux-indexhtml-8-7.1.el8.noarch needs 165MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package lynx-2.8.9-4.el8.x86_64 needs 172MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package ghostscript-9.27-4.el8.x86_64 needs 168MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libgs-devel-9.27-4.el8.x86_64 needs 168MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libwmf-0.2.9-8.el8_0.x86_64 needs 169MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libappindicator-gtk3-12.10.0-19.el8.x86_64 needs 169MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package rsyslog-8.2102.0-10.el8.x86_64 needs 172MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package gd-devel-2.2.5-7.el8.x86_64 needs 171MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package java-1.8.0-openjdk-1:1.8.0.352.b08-2.el8_7.x86_64 needs 172MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package librsvg2-2.42.7-4.el8.x86_64 needs 174MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package ctags-etags-5.8-22.el8.x86_64 needs 174MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package sysstat-11.7.3-7.el8.x86_64 needs 176MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libnsl2-devel-1.2.0-2.20180605git4a062cf.el8.x86_64 needs 175MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package quota-devel-1:4.04-14.el8.x86_64 needs 175MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package redhat-lsb-core-4.1-47.el8.x86_64 needs 175MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package nfs-utils-1:2.3.3-57.el8.x86_64 needs 178MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package NetworkManager-bluetooth-1:1.40.0-2.el8_7.x86_64 needs 177MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package dracut-live-049-209.git20220815.el8.x86_64 needs 177MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package kexec-tools-2.0.24-6.el8.x86_64 needs 179MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package NetworkManager-adsl-1:1.40.0-2.el8_7.x86_64 needs 179MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package NetworkManager-ppp-1:1.40.0-2.el8_7.x86_64 needs 179MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package NetworkManager-team-1:1.40.0-2.el8_7.x86_64 needs 180MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package NetworkManager-tui-1:1.40.0-2.el8_7.x86_64 needs 181MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package NetworkManager-wifi-1:1.40.0-2.el8_7.x86_64 needs 181MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package emacs-nox-1:26.1-7.el8.x86_64 needs 221MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package tuned-2.19.0-1.el8.noarch needs 223MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package python3-lxml-4.2.3-4.el8.x86_64 needs 229MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package leapp-deps-el8-5.0.8-100.202203181036Z.249925a3.master.el8.noarch needs 229MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package perl-4:5.26.3-421.el8.x86_64 needs 229MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package vim-enhanced-2:8.0.1763-19.el8_6.4.x86_64 needs 232MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package bind-utils-32:9.11.36-5.el8_7.2.x86_64 needs 232MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package firewalld-0.9.3-13.el8.noarch needs 234MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package yum-utils-4.0.21-14.1.el8.noarch needs 232MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package gdb-8.2-19.el8.x86_64 needs 233MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package yum-4.7.0-11.el8.alma.noarch needs 226MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package python2-devel-2.7.18-11.module_el8.7.0+3331+6c5bd851.alma.x86_64 needs 227MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package rpm-build-4.14.3-24.el8_7.x86_64 needs 228MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package javapackages-tools-5.3.0-2.module_el8.0.0+6004+2fc32706.noarch needs 227MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package nss-tools-3.79.0-10.el8_6.x86_64 needs 230MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libmount-devel-2.32.1-38.el8.x86_64 needs 228MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package perl-CGI-4.38-2.el8.noarch needs 229MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package perl-HTTP-Daemon-6.01-23.el8.noarch needs 229MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package perl-B-Lint-1.20-11.el8.noarch needs 229MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package perl-Text-Soundex-3.05-8.el8.x86_64 needs 229MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package perl-DBD-SQLite-1.58-2.module_el8.6.0+2828+b6a24742.x86_64 needs 229MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package perl-JSON-XS-1:3.04-3.el8.x86_64 needs 229MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libtool-2.4.6-25.el8.x86_64 needs 232MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libtool-ltdl-devel-2.4.6-25.el8.x86_64 needs 232MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package perl-Pod-LaTeX-0.61-302.el8.noarch needs 232MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package perl-File-CheckTree-4.42-303.el8.noarch needs 232MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package rpmlint-1.10-14.el8.noarch needs 233MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package perl-Digest-SHA1-2.13-23.el8.x86_64 needs 233MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package perl-File-Copy-Recursive-0.40-3.el8.noarch needs 233MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package perl-IO-Tty-1.12-11.el8.x86_64 needs 233MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package perl-MIME-Types-2.17-3.el8.noarch needs 233MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package bind-devel-32:9.11.36-5.el8_7.2.x86_64 needs 234MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package bind-export-devel-32:9.11.36-5.el8_7.2.x86_64 needs 236MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package gamin-devel-0.1.10-32.el8.x86_64 needs 236MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package wget-1.19.5-10.el8.x86_64 needs 239MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package grub2-pc-1:2.02-142.el8.alma.x86_64 needs 237MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package authselect-compat-1.2.5-1.el8.x86_64 needs 237MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package chrony-4.2-1.el8.x86_64 needs 238MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package lvm2-8:2.03.14-6.el8.x86_64 needs 243MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package tix-1:8.4.3-23.el8.x86_64 needs 242MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package git-subtree-2.31.1-2.el8.x86_64 needs 242MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package python36-devel-3.6.8-38.module_el8.5.0+2569+5c5719bc.x86_64 needs 242MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package openssh-server-8.0p1-16.el8.x86_64 needs 244MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package xdg-utils-1.1.2-5.el8.noarch needs 243MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package quota-rpc-1:4.04-14.el8.x86_64 needs 243MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package kernel-4.18.0-425.3.1.el8.x86_64 needs 280MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package kernel-modules-extra-4.18.0-425.3.1.el8.x86_64 needs 318MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package netconsole-service-10.00.18-1.el8.noarch needs 319MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package bind-32:9.11.36-5.el8_7.2.x86_64 needs 324MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package avahi-0.7-20.el8.x86_64 needs 325MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package avahi-autoipd-0.7-20.el8.x86_64 needs 324MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package gcc-c++-8.5.0-15.el8.alma.x86_64 needs 356MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package python2-lxml-4.2.3-6.module_el8.6.0+2781+fed64c13.x86_64 needs 361MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package readonly-root-10.00.18-1.el8.noarch needs 358MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package audit-3.0.7-4.el8.x86_64 needs 359MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iproute-tc-5.18.0-1.el8.x86_64 needs 360MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package python3-configobj-5.0.6-11.el8.noarch needs 360MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package python3-iniparse-0.4-31.el8.noarch needs 360MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package gdk-pixbuf2-xlib-2.36.12-5.el8.x86_64 needs 360MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libcgroup-0.41-19.el8.x86_64 needs 360MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package rsync-daemon-3.1.3-19.el8.noarch needs 360MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package systemd-container-239-68.el8.x86_64 needs 363MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package microcode_ctl-4:20220809-1.el8.x86_64 needs 370MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package mlocate-0.26-20.el8.x86_64 needs 364MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package net-tools-2.0-0.52.20160912git.el8.x86_64 needs 365MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package nscd-2.28-211.el8.x86_64 needs 364MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package smartmontools-1:7.1-1.el8.x86_64 needs 366MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package stunnel-5.56-5.el8_3.x86_64 needs 365MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package dnsmasq-2.79-24.el8.x86_64 needs 366MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package dracut-config-rescue-049-209.git20220815.el8.x86_64 needs 365MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package grub2-tools-efi-1:2.02-142.el8.alma.x86_64 needs 368MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package gettext-devel-0.19.8.1-17.el8.x86_64 needs 368MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package irqbalance-2:1.9.0-3.el8.x86_64 needs 366MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package pam-devel-1.3.1-22.el8.x86_64 needs 368MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package sudo-1.8.29-8.el8.x86_64 needs 371MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package drpm-0.4.1-3.el8.x86_64 needs 368MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libdb-devel-5.3.28-42.el8_4.x86_64 needs 368MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package python3-pycurl-7.43.0.2-4.el8.x86_64 needs 370MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libzip-1.5.1-2.module_el8.3.0+2010+7c76a223.x86_64 needs 370MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package e2fsprogs-1.45.6-5.el8.x86_64 needs 375MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package parted-3.2-39.el8.x86_64 needs 375MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package xfsprogs-5.0.0-10.el8.x86_64 needs 379MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package almalinux-logos-84.5-1.el8.x86_64 needs 376MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package zsh-5.5.1-10.el8.x86_64 needs 387MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package strace-5.18-2.el8.x86_64 needs 388MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package lsof-4.93.2-1.el8.x86_64 needs 388MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package geoipupdate-2.5.0-2.el8.x86_64 needs 388MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package python3-libxml2-2.9.7-15.el8.x86_64 needs 390MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package python3-schedutils-0.6-6.el8.x86_64 needs 390MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package python3-newt-0.52.20-11.el8.x86_64 needs 390MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package python3-pyxattr-0.5.3-18.el8.x86_64 needs 390MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package pcre-devel-8.42-6.el8.x86_64 needs 393MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package e2fsprogs-devel-1.45.6-5.el8.x86_64 needs 392MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libxslt-devel-1.1.32-6.el8.x86_64 needs 395MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package readline-devel-7.0-10.el8.x86_64 needs 396MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libXext-devel-1.3.4-1.el8.x86_64 needs 396MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libXt-devel-1.1.5-12.el8.x86_64 needs 398MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package jasper-devel-2.0.14-5.el8.x86_64 needs 399MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libicu-devel-60.3-2.el8_1.x86_64 needs 406MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libidn-devel-1.34-5.el8.x86_64 needs 402MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package OpenEXR-libs-2.2.0-12.el8.x86_64 needs 406MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libXScrnSaver-1.2.3-1.el8.x86_64 needs 406MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package biosdevname-0.7.3-2.el8.x86_64 needs 406MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package gdbm-devel-1:1.18-2.el8.x86_64 needs 406MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libaio-devel-0.3.112-1.el8.x86_64 needs 406MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package tcl-doc-1:8.6.8-2.el8.noarch needs 408MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package expect-5.45.4-5.el8.x86_64 needs 407MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package bison-3.0.4-10.el8.x86_64 needs 410MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package flex-2.6.1-9.el8.x86_64 needs 409MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package xz-lzma-compat-5.2.4-4.el8_6.x86_64 needs 408MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package nano-2.9.8-1.el8.x86_64 needs 411MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package gmp-c++-1:6.1.2-10.el8.x86_64 needs 410MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package ftp-0.17-78.el8.x86_64 needs 410MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package xdelta-3.1.0-4.el8.x86_64 needs 410MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package aspell-12:0.60.6.1-22.el8.x86_64 needs 413MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package sharutils-4.15.2-11.el8.x86_64 needs 412MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package boost-program-options-1.66.0-13.el8.x86_64 needs 411MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package boost-serialization-1.66.0-13.el8.x86_64 needs 412MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iprutils-2.4.19-1.el8.x86_64 needs 413MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package traceroute-3:2.1.0-6.el8.x86_64 needs 412MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package glibc-locale-source-2.28-211.el8.x86_64 needs 429MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libnsl-2.28-211.el8.x86_64 needs 420MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package nss_db-2.28-211.el8.x86_64 needs 420MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package rpcgen-1.3.1-4.el8.x86_64 needs 421MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package libsysfs-2.1.0-25.el8.x86_64 needs 421MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package lsscsi-0.32-3.el8.x86_64 needs 421MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package lz4-1.8.3-3.el8_4.x86_64 needs 421MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package pcsc-lite-libs-1.9.5-1.el8.x86_64 needs 421MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package giflib-5.1.4-3.el8.x86_64 needs 421MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package qrencode-libs-3.4.4-5.el8.x86_64 needs 421MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package efi-filesystem-3-3.el8.noarch needs 421MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package liberation-fonts-1:2.00.3-7.el8.noarch needs 421MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package ncurses-term-6.1-9.20180224.el8.noarch needs 429MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package stix-fonts-1.1.0-12.el8.noarch needs 425MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package poppler-data-0.4.9-1.el8.noarch needs 437MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package rootfiles-8.1-22.el8.noarch needs 424MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iwl7260-firmware-1:25.30.13.0-110.el8.1.noarch needs 619MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iwl6050-firmware-41.28.5.1-110.el8.1.noarch needs 554MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iwl6000g2b-firmware-18.168.6.1-110.el8.1.noarch needs 555MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iwl6000g2a-firmware-18.168.6.1-110.el8.1.noarch needs 555MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iwl6000-firmware-9.221.4.1-110.el8.1.noarch needs 555MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iwl5150-firmware-8.24.2.2-110.el8.1.noarch needs 555MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iwl5000-firmware-8.83.5.1_1-110.el8.1.noarch needs 556MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iwl4965-firmware-228.61.2.24-110.el8.1.noarch needs 555MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iwl3945-firmware-15.32.2.9-110.el8.1.noarch needs 556MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iwl3160-firmware-1:25.30.13.0-110.el8.1.noarch needs 560MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iwl2030-firmware-18.168.6.1-110.el8.1.noarch needs 557MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iwl2000-firmware-18.168.6.1-110.el8.1.noarch needs 557MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iwl135-firmware-18.168.6.1-110.el8.1.noarch needs 557MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iwl105-firmware-18.168.6.1-110.el8.1.noarch needs 558MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iwl1000-firmware-1:39.31.5.1-110.el8.1.noarch needs 558MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package iwl100-firmware-39.31.5.1-110.el8.1.noarch needs 558MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package kernel-workaround-0.1-1.el8.noarch needs 558MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package rpcsvc-proto-devel-1.3.1-4.el8.x86_64 needs 558MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package python3-docs-3.6.7-2.module_el8.5.0+2569+5c5719bc.noarch needs 606MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package python2-docs-2.7.16-2.module_el8.6.0+2781+fed64c13.noarch needs 644MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package compat-libpthread-nonshared-2.28-211.el8.x86_64 needs 644MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO]   installing package make-devel-1:4.2.1-11.el8.x86_64 needs 644MB on the / filesystem
* 2022-12-16 18:09:36 (3858) [INFO] 
* 2022-12-16 18:09:36 (3858) [INFO] Error Summary
* 2022-12-16 18:09:36 (3858) [INFO] -------------
* 2022-12-16 18:09:36 (3858) [INFO] Disk Requirements:
* 2022-12-16 18:09:36 (3858) [INFO]    At least 644MB more space needed on the / filesystem.

disk space issue: Not enough space available for creating required disk images in /var/lib/leapp/scratch

When updating a customer server using cPanel&WHM from CentOS 7 to AlmaLinux 8 we can see a failure from /var/lib/leapp/scratch claiming that it needs a lot of disk space

Needs 155648 MiB this seems to be a lot of disk space for the elevate process ~156G
(note that using a more human friendly unit when going above 1G would be nice)

We do not know from that error what partition needs such amount of disk space. I'm not sure neither why that amount is required.

cPanel requirements listed here https://cpanel.github.io/elevate/blockers/ are not aware of such limitations

/boot: 120 MB
/usr/local/cpanel: 1.5 GB
/var/lib: 3 GB

Could you provide or point the known list of disk space limitations? I guess some are dynamic?

Error from leapp

2022-12-03 01:41:19.140 ERROR    PID: 17560 leapp.workflow.TargetTransactionFactsCollection.target_userspace_creator: Not enough space available for creating required disk images in /var/lib/leapp/scratch. Needed: 155648 MiB

The system has the following disk space available

[16:03:42 cp root@94508712 ~]cPs# df -h
Filesystem                                        Size  Used Avail Use% Mounted on
devtmpfs                                          2.9G     0  2.9G   0% /dev
tmpfs                                             2.9G     0  2.9G   0% /dev/shm
tmpfs                                             2.9G   26M  2.9G   1% /run
tmpfs                                             2.9G     0  2.9G   0% /sys/fs/cgroup
/dev/mapper/centos_static--98--115--153--46-root   50G   27G   23G  55% /
/dev/sda1                                         497M  283M  214M  57% /boot
/dev/mapper/centos_static--98--115--153--46-home   25G  491M   24G   2% /home
/dev/sdb1                                         335G  7.9G  310G   3% /home/users
tmpfs                                             581M     0  581M   0% /run/user/0
/dev/sdc  

thanks for your help

warning: Signature not supported. Hash algorithm SHA1 not available.

It's possible to get the following warning on EL9 after migration when using rpm or dnf:

warning: Signature not supported. Hash algorithm SHA1 not available.

This happens because old gpg keys used in source OS may contain SHA1 signatures.
At least AlmaLinux and EuroLinux are affected.

To remove warning we need to remove old gpg key from rpm database after migration.
For AlmaLinux:

rpm -e gpg-pubkey-3abb34f8-5ffd890e

For EuroLinux:

rpm -e gpg-pubkey-6275f250-5e26cb2e

The actor to do this is implemented in upstream version v0.18.0: oamg@c4aec4a
We'll need to add mentioned keys after rebasing to v0.18.0.

BIOS boot not supported

Actual behavior
leap upgrade does not create a BOOT entry in /boot/grub2/grub.cfg required for BIOS machines pick the Centos7 to AlmaLinux conversion.

To Reproduce
Deploy a Gen1 server in Azure (they use BIOS boot), use ELevate to migrate from CentOS7 to AlmaLinux8, follow the normal process: leapp upgrade, reboot, and the machine will boot into the regular kernel.

[azureuser@centos7i ~]$ history
1 sudo yum update -y
2 sudo reboot
3 sudo yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm
4 sudo yum install -y leapp-upgrade leapp-data-almalinux
5 sudo leapp preupgrade
6 vi /var/log/leapp/leapp-report.txt
7 sudo vi /var/log/leapp/leapp-report.txt
8 sudo leapp answer --section remove_pam_pkcs11_module_check.confirm=True
9 sudo leapp upgrade
10 reboot

Expected behavior
After running sudo leapp upgrade boot into the ELevate temporary image and perform the in-place upgrade, however the /boot/grub2/grub.cfg is not updated to reflect the new initramfs.

System information (please complete the following information):

[azureuser@centos7i ~]$ cat /etc/system*
cat: /etc/systemd: Is a directory
CentOS Linux release 7.9.2009 (Core)
cpe:/o:centos:centos:7

uname -a : Linux centos7i 3.10.0-1160.118.1.el7.x86_64 #1 SMP Wed Apr 24 16:01:50 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux


# rpm -qa "leapp*"
[azureuser@centos7i ~]$ rpm -qa |grep leapp
leapp-upgrade-el7toel8-deps-0.16.0-6.el7.elevate.20.noarch
leapp-0.14.0-1.el7.noarch
leapp-deps-0.14.0-1.el7.noarch
leapp-upgrade-el7toel8-0.16.0-6.el7.elevate.20.noarch
leapp-data-almalinux-0.2-5.el7.noarch
python2-leapp-0.14.0-1.el7.noarch

Azure image name: : openlogic:centos-lvm:7-lvm:latest

Attach (or provide link to) log files if applicable (optional - may contain confidential information):

  • All files in /var/log/leapp
  • /var/lib/leapp/leapp.db
  • journalctl
  • If you want, you can optionally send anything else would you like to provide (e.g. storage info)

For your convenience you can pack all logs with this command:

# tar -czf leapp-logs.tar.gz /var/log/leapp /var/lib/leapp/leapp.db

Then you may attach only the leapp-logs.tar.gz file.


Additional context
original file split into 8 parts with the split command, just concatenate all files and use: tar -xvf file.tar.xz

xah.txt
xag.txt
xaf.txt
xae.txt
xad.txt
xac.txt
xab.txt
xaa.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.