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.
Bug 2061571 - Upgrade path 6.9 -> 6.10 -> 7.0 snap 12 broken on yum dependency on python3-pulp-2to3-migration
Summary: Upgrade path 6.9 -> 6.10 -> 7.0 snap 12 broken on yum dependency on python3-p...
Keywords:
Status: CLOSED DUPLICATE of bug 2054182
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Documentation
Version: 6.11.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: Unspecified
Assignee: SAT-DOCS
QA Contact: SAT-DOCS
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-07 21:12 UTC by Pavel Moravec
Modified: 2023-09-15 01:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-09 09:48:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SATDOC-659 0 None None None 2022-03-08 10:48:57 UTC

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


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