Description of problem: In Satellite upgrade, the package upgrade section failed to resolve the python2-solv package dependency Version-Release number of selected component (if applicable): 6.10 Snap21 How reproducible: always Steps to Reproduce: 1. Prepare the 6.9.z setup using the upgrade template. 2. Run the pre-migration steps before running the upgrade for 6.10 snap21. 3. Pulp migration completes successfully. 4 Run the upgrade, but it failed in the yum update with a package dependency issue. Actual results: Failed to resolve python2-solv-0.7.17-1.el7pc package dependency. Expected results: Satellite upgrade should be completed successfully. Additional info:
The problem is that 6.10 repos don't include python2-solv and createrepo_c packages (but libsolv, and createrepo_c-libs), as those are not needed for 6.10/Pulp3 operations. However, when upgrading from 6.9, users do have python2-solv and createrepo_c installed as those were needed for Pulp2, and the complete Pulp2 removal happens *after* the full upgrade to 6.10. This wasn't a problem before, where we had the same versions of those packages in 6.9 and 6.10, but now that we upgraded them in 6.10… The correct solution here would be to add python2-solv and createrepo_c (and whatever else might be missing) to the comps of 6.10, so that those packages show up in the compose, even if nothing depends on them.
Oh, and if anybody needs a workaround in the meantime: you can install http://download.eng.bos.redhat.com/brewroot/vol/rhel-7/packages/libsolv/0.7.20/1.el7pc/x86_64/python2-solv-0.7.20-1.el7pc.x86_64.rpm and http://download.eng.bos.redhat.com/brewroot/vol/rhel-7/packages/createrepo_c/0.17.6/0.1.el7pc/x86_64/createrepo_c-0.17.6-0.1.el7pc.x86_64.rpm the moment before you call foreman-maintain upgrade, and it should work
you may also need: http://download.eng.bos.redhat.com/brewroot/vol/rhel-7/packages/createrepo_c/0.17.6/0.1.el7pc/x86_64/createrepo_c-libs-0.17.6-0.1.el7pc.x86_64.rpm
VERIFIED. @Satellite 6.10.0 Snap23 by the following manual steps: # satellite-maintain upgrade run --target-version 6.10 -w repositories-validate,repositories-setup,content-switchover -y ----------------- /var/log/foreman-maintain/ D, [2021-10-17 12:57:49-0400 #81692] DEBUG -- : Running command yum -y --disableplugin=foreman-protector update with stdin nil D, [2021-10-17 13:04:16-0400 #81692] DEBUG -- : output of the command: Loaded plugins: product-id, search-disabled-repos, subscription-manager Resolving Dependencies --> Running transaction check ... ---> Package createrepo_c.x86_64 0:0.17.1-1.el7pc will be updated ---> Package createrepo_c.x86_64 0:0.17.6-0.1.el7pc will be an update ---> Package createrepo_c-libs.x86_64 0:0.17.1-1.el7pc will be updated ---> Package createrepo_c-libs.x86_64 0:0.17.6-0.1.el7pc will be an update ... ---> Package libsolv.x86_64 0:0.7.17-1.el7pc will be updated ---> Package libsolv.x86_64 0:0.7.20-1.el7pc will be an update ... ---> Package python2-solv.x86_64 0:0.7.17-1.el7pc will be updated ---> Package python2-solv.x86_64 0:0.7.20-1.el7pc will be an update ... ---> Package python3-createrepo_c.x86_64 0:0.17.1-1.el7pc will be updated ---> Package python3-createrepo_c.x86_64 0:0.17.6-0.1.el7pc will be an update ... Complete! I, [2021-10-17 13:04:16-0400 #81692] INFO -- : --- Execution step 'Update package(s) ' finished --- >>> there is no longer dependency issue for python2-solv package during Satellite upgrade
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 (Moderate: Satellite 6.10 Release), 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/RHSA-2021:4702