Bug 2009630 - In Satellite upgrade, the package upgrade section failed to resolve the python2-solv package dependency
Summary: In Satellite upgrade, the package upgrade section failed to resolve the pytho...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Packaging
Version: 6.10.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: 6.10.0
Assignee: satellite6-bugs
QA Contact: Lukas Pramuk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-01 05:43 UTC by Devendra Singh
Modified: 2023-01-27 18:23 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:13:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:13:58 UTC

Description Devendra Singh 2021-10-01 05:43:07 UTC
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:

Comment 2 Evgeni Golov 2021-10-01 05:55:37 UTC
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.

Comment 3 Evgeni Golov 2021-10-01 05:56:10 UTC
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

Comment 5 Lukas Pramuk 2021-10-17 22:01:32 UTC
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

Comment 8 errata-xmlrpc 2021-11-16 14:13:51 UTC
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


Note You need to log in before you can comment on or make changes to this bug.