Description of problem: The upgrade of satellite 6.3 is impossible, when yum-cache directory is mounted directly Version-Release number of selected component (if applicable): rubygem-foreman_maintain-0.1.5-1.el7sat.noarch How reproducible: always Steps to Reproduce: 1. mount /dev/sdb /var/cache/yum 2. # foreman-maintain upgrade run --target-version 6.3 Actual results: Running Migration scripts to Satellite 6.3 ================================================================================ Setup repositories: | Configuring repositories for 6.3 [OK] -------------------------------------------------------------------------------- Update package(s) : Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager Cleaning repos: rhel-7-server-rpms rhel-7-server-satellite-6.3-rpms : rhel-7-server-satellite-maintenance-6-rpms rhel-7-server-satellite-tools-6.3-rpms : rhel-server-rhscl-7-rpms Cleaning up everything Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos Uploading Enabled Repositories Report Loaded plugins: product-id, subscription-manager [FAIL] Failed executing rm -rf /var/cache/yum, exit status 1: rm: cannot remove ‘/var/cache/yum’: Device or resource busy -------------------------------------------------------------------------------- Scenario [Migration scripts to Satellite 6.3] failed. The following steps ended up in failing state: [packages-update] Expected results: No error Additional info: Changing the rb-file workaround this issue /usr/share/gems/gems/foreman_maintain-0.1.5/lib/foreman_maintain/concerns/system_helpers.rb ... - 109 execute!('rm -rf /var/cache/yum') + 109 execute!('rm -rf /var/cache/yum/*') ... ==> adding '/*' at the end of the command
Created redmine issue http://projects.theforeman.org/issues/23969 from this bug
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/23969 has been resolved.
This issue is fixed in foreman_maintain-0.2.9.
Verified Verified with: - Satellite 6.7 snap 15 - rubygem-foreman_maintain-0.5.2-1.el7sat.noarch Test steps: 1. # mount /dev/sdb /var/cache/yum 2. # foreman-maintain upgrade run --target-version 6.7.z --whitelist="repositories-setup,repositories-validate,check-epel-repository" Observation: - Satellite upgrade completed successfully. - No error/issues observed.
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, 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-2020:1442