Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
VERIFIED.
@Satellite 6.11.1.1
leapp-0.14.0-1.el7_9.noarch
leapp-upgrade-el7toel8-0.16.0-8.el7_9.noarch
by the following manual reproducer described in comment#0:
...
3) After leapp reboots closely monitor console or check /var/log/leapp/leapp-upgrade.log afterwards
Aug 17 16:31:51 localhost upgrade[33059]: ====> * satellite_upgrade_data_migration
Aug 17 16:31:51 localhost upgrade[33059]: Reconfigure Satellite services and migrate PostgreSQL data
>>> satellite_upgrade_data_migration actor successfully moved data under the mountpoint
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (leapp-repository bug fix update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2022:6141
Description of problem: LEAPP upgrade hangs if /var/opt/rh/rh-postgresql12/lib/pgsql/data is mounted and after forced reboot a machine is unusable. For mountpoints at /var/opt/rh/rh-postgresql12/lib/pgsql or higher in directory structure this issue do not occur Version-Release number of selected component (if applicable): Satellite 6.11.1 leapp-0.14.0-1.el7_9.noarch leapp-upgrade-el7toel8-0.16.0-7.el7_9.noarch (brew) How reproducible: deterministic Steps to Reproduce: 1. Switch over PostgreSQL to be mounted at /var/opt/rh/rh-postgresql12/lib/pgsql/data # eval $(blkid -o export /dev/vdb1) # echo "UUID=$UUID /var/opt/rh/rh-postgresql12/lib/pgsql/data xfs defaults 0 2">> /etc/fstab # satellite-maintain service stop # mv /var/opt/rh/rh-postgresql12/lib/pgsql/data{,-orig} # mkdir /var/opt/rh/rh-postgresql12/lib/pgsql/data # mount -a # mv /var/opt/rh/rh-postgresql12/lib/pgsql/data-orig/* /var/opt/rh/rh-postgresql12/lib/pgsql/data # chown postgres:postgres /var/opt/rh/rh-postgresql12/lib/pgsql/data # chmod 700 /var/opt/rh/rh-postgresql12/lib/pgsql/data # restorecon -v /var/opt/rh/rh-postgresql12/lib/pgsql/data # satellite-maintain service start 1a. Optionally reboot to verify fstab entry 2.Run LEAPP upgrade of Satellite 6.11 to RHEL8 # leapp upgrade --reboot 3. After leapp reboots closely monitor console ... [ 3777.369142] upgrade[32930]: ====> * satellite_upgrade_data_migration [ 3777.370667] upgrade[32930]: Reconfigure Satellite services and migrate PostgreSQL data [ 3783.262630] upgrade[33762]: Process Process-208: [ 3783.263682] upgrade[33762]: Traceback (most recent call last): [ 3783.264878] upgrade[33762]: File "/usr/lib64/python3.6/shutil.py", line 550, in move [ 3783.266362] upgrade[33762]: os.rename(src, real_dst) [ 3783.267405] upgrade[33762]: OSError: [Errno 16] Device or resource busy: '/var/opt/rh/rh-postgresql12/lib/pgsql/data/' -> '/var/lib/pgsql/data/' [ 3783.269717] upgrade[33762]: During handling of the above exception, another exception occurred: [ 3783.271343] upgrade[33762]: Traceback (most recent call last): [ 3783.272545] upgrade[33762]: File "/usr/lib64/python3.6/multiprocessing/process.py", line 258, in _bootstrap [ 3783.274636] upgrade[33762]: self.run() [ 3783.275617] upgrade[33762]: File "/usr/lib64/python3.6/multiprocessing/process.py", line 93, in run [ 3783.277396] upgrade[33762]: self._target(*self._args, **self._kwargs) [ 3783.278818] upgrade[33762]: File "/root/tmp_leapp_py3/leapp/repository/actor_definition.py", line 72, in _do_run [ 3783.280702] upgrade[33762]: actor_instance.run(*args, **kwargs) [ 3783.281962] upgrade[33762]: File "/root/tmp_leapp_py3/leapp/actors/__init__.py", line 290, in run [ 3783.283662] upgrade[33762]: self.process(*args) [ 3783.284724] upgrade[33762]: File "/etc/leapp/repos.d/system_upgrade/el7toel8/actors/satellite_upgrade_data_migration/actor.py", line 45, in process [ 3783.287147] upgrade[33762]: shutil.move(POSTGRESQL_SCL_DATA_PATH, POSTGRESQL_DATA_PATH) [ 3783.288724] upgrade[33762]: File "/usr/lib64/python3.6/shutil.py", line 562, in move [ 3783.290316] upgrade[33762]: rmtree(src) [ 3783.291364] upgrade[33762]: File "/usr/lib64/python3.6/shutil.py", line 490, in rmtree [ 3783.293121] upgrade[33762]: onerror(os.rmdir, path, sys.exc_info()) [ 3783.294613] upgrade[33762]: File "/usr/lib64/python3.6/shutil.py", line 488, in rmtree [ 3783.296237] upgrade[33762]: os.rmdir(path) [ 3783.297329] upgrade[33762]: OSError: [Errno 16] Device or resource busy: '/var/opt/rh/rh-postgresql12/lib/pgsql/data/' >>> satellite_upgrade_data_migration actor tries to move the mountpoint Actual results: leapp upgrade hangs forever and renders system unusable Expected results: leapp upgrade successfully finishes