Bug 2061571

Summary: Upgrade path 6.9 -> 6.10 -> 7.0 snap 12 broken on yum dependency on python3-pulp-2to3-migration
Product: Red Hat Satellite Reporter: Pavel Moravec <pmoravec>
Component: DocumentationAssignee: SAT-DOCS <sat-bz-docs-list>
Status: CLOSED DUPLICATE QA Contact: SAT-DOCS <sat-bz-docs-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.11.0CC: aupadhye, egolov, mdolezel
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-09 09:48:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavel Moravec 2022-03-07 21:12:59 UTC
Description of problem:
Trying to upgrade a 6.10 (that was upgraded from 6.9) to 7.0 testathlon / snap 12, "satellite-maintain upgrade run --target-version 7.0" fails on yum update dependency error:

Error: Package: python3-pulp-2to3-migration-0.12.0-1.el7pc.noarch (@rhel-7-server-satellite-6.10-rpms)
           Requires: python3-pulpcore >= 3.13
           Removing: python3-pulpcore-3.14.9-1.el7pc.noarch (@rhel-7-server-satellite-6.10-rpms)
               python3-pulpcore = 3.14.9-1.el7pc
           Obsoleted By: tfm-pulpcore-python3-pulpcore-3.16.3-1.el7pc.noarch (Sat6-CI_Satellite_7_0_Composes_Satellite_7_0_RHEL7)
               Not found
Error: Package: python2-solv-0.7.20-1.el7pc.x86_64 (@rhel-7-server-satellite-6.10-rpms)
           Requires: libsolv(x86-64) = 0.7.20-1.el7pc
           Removing: libsolv-0.7.20-1.el7pc.x86_64 (@rhel-7-server-satellite-6.10-rpms)
               libsolv(x86-64) = 0.7.20-1.el7pc
           Updated By: libsolv-0.7.20-4.el7pc.x86_64 (Sat6-CI_Satellite_7_0_Composes_Satellite_7_0_RHEL7)
               libsolv(x86-64) = 0.7.20-4.el7pc
           Available: libsolv-0.6.11-1.el7.x86_64 (rhel-7-server-rpms)
               libsolv(x86-64) = 0.6.11-1.el7
           Available: libsolv-0.6.20-5.el7.x86_64 (rhel-7-server-rpms)
               libsolv(x86-64) = 0.6.20-5.el7
           Available: libsolv-0.6.26-1.el7.x86_64 (rhel-7-server-rpms)
               libsolv(x86-64) = 0.6.26-1.el7
           Available: libsolv-0.6.26-2.el7.x86_64 (rhel-7-server-rpms)
               libsolv(x86-64) = 0.6.26-2.el7
           Available: libsolv-0.6.34-2.el7.x86_64 (rhel-7-server-rpms)
               libsolv(x86-64) = 0.6.34-2.el7
           Available: libsolv-0.6.34-4.el7.x86_64 (rhel-7-server-rpms)
               libsolv(x86-64) = 0.6.34-4.el7
Error: Package: python3-pulp-2to3-migration-0.12.0-1.el7pc.noarch (@rhel-7-server-satellite-6.10-rpms)
           Requires: python3-pulpcore < 3.15
           Removing: python3-pulpcore-3.14.9-1.el7pc.noarch (@rhel-7-server-satellite-6.10-rpms)
               python3-pulpcore = 3.14.9-1.el7pc
           Obsoleted By: tfm-pulpcore-python3-pulpcore-3.16.3-1.el7pc.noarch (Sat6-CI_Satellite_7_0_Composes_Satellite_7_0_RHEL7)
               Not found


Version-Release number of selected component (if applicable):
7.0 snap 12


How reproducible:
100%


Steps to Reproduce:
1. Have 6.9 installed (originally I started with Sat6.7 but I think 6.9 is sufficient)
2. Upgrade it to 6.10.
3. Try to upgrade to 7.0


Actual results:
Above dependency error.


Expected results:
No error.


Additional info:

Comment 1 Pavel Moravec 2022-03-07 21:28:33 UTC
Removing the two packages (python3-pulp-2to3-migration and python2-solv) together with their dependencies (pulp-rpm-plugins and python-pulp-integrity) is a workaround.

Comment 2 Pavel Moravec 2022-03-08 10:45:47 UTC
OK, the cause is I did not run

foreman-maintain pulp2-remove

after the upgrade to 6.10.


Changing the BZ to Documentation. This step ^^ should be mentioned as a Prerequisite of Sat7.0 upgrade: "if you are upgrading Satellite that was upgraded from 6.9, run .."

Comment 3 Evgeni Golov 2022-03-09 08:07:35 UTC
This is documented in the 6.9 to 6.10 upgrade docs:
https://access.redhat.com/documentation/en-us/red_hat_satellite/6.10/html/upgrading_and_updating_red_hat_satellite/upgrading_red_hat_satellite
If you have migrated content from Pulp 2 to Pulp 3, remove all Pulp 2 content.
# satellite-maintain content remove-pulp2

You could argue that the 6.10 to 7.0 upgrade could warn you about not having done this step (and I'd agree), but it's unrelated to 7.0 EL7toEL8 upgrades.

Comment 4 Evgeni Golov 2022-03-09 08:43:42 UTC
Pavel, did you use foreman-maintain to upgrade to 7.0?

Because it should have ran the pulp2 removal for you:
https://github.com/theforeman/foreman_maintain/blob/master/definitions/scenarios/upgrade_to_satellite_7_0.rb#L44

Comment 5 Pavel Moravec 2022-03-09 08:50:50 UTC
(In reply to Evgeni Golov from comment #4)
> Pavel, did you use foreman-maintain to upgrade to 7.0?
> 


Yes I did:

/var/log/foreman-maintain/foreman-maintain.log-20220308:I, [2022-03-07 22:21:47+0100 #23797]  INFO -- : Running foreman-maintain command with arguments [["upgrade", "run", "--target-version", "7.0", "-y"]]

> Because it should have ran the pulp2 removal for you:
> https://github.com/theforeman/foreman_maintain/blob/master/definitions/
> scenarios/upgrade_to_satellite_7_0.rb#L44

That is not present in rubygem-foreman_maintain-1.0.3-1.el8sat.noarch :

/usr/share/gems/gems/foreman_maintain-1.0.3/definitions/scenarios/upgrade_to_satellite_7_0.rb :

    def compose
      add_steps(find_procedures(:pre_migrations))
      add_step(Procedures::Service::Stop.new)
    end
  end


So we need to backport https://github.com/theforeman/foreman_maintain/pull/589 to Sat7.0 GA, I guess?

Comment 6 Evgeni Golov 2022-03-09 09:20:37 UTC
Perfect, thanks for investigation!

@aupadhye I guess we should convert this to a maintain BZ asking for the backport of https://github.com/theforeman/foreman_maintain/pull/589 to 7.0?

Comment 7 Amit Upadhye 2022-03-09 09:48:18 UTC

*** This bug has been marked as a duplicate of bug 2054182 ***

Comment 9 Red Hat Bugzilla 2023-09-15 01:22:38 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days