Bug 2060546

Summary: Leapp-upgrade package installation failing with dependency on sat 7.0
Product: Red Hat Satellite Reporter: Prashant Waghmare <pwaghmar>
Component: PackagingAssignee: Evgeni Golov <egolov>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: aruzicka, egolov, lpramuk, lstejska
Target Milestone: 6.11.0Keywords: Triaged, Upgrades
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-05 14:34:21 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 Prashant Waghmare 2022-03-03 18:13:04 UTC
Description of problem:

On satellite 6.7 beta when tried to install leapp-upgrade package its failing with dependency.

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

# rpm -qa satellite
satellite-7.0.0-0.6.beta.el7sat.noarch

How reproducible:

often

Steps to Reproduce:

1. Install satellite 6.10, upgrade it to the 6.7

2. Then try to upgrade from rhel7 to rhel8 

3. Its failing with dependency packages as below:

Error: Package: python2-libcomps-0.1.8-14.el7.x86_64 (rhel-7-server-extras-rpms)
           Requires: libcomps.so.0.1.6()(64bit)
           Available: libcomps-0.1.8-12.el7.x86_64 (rhel-7-server-extras-rpms)
               libcomps.so.0.1.6()(64bit)
           Available: libcomps-0.1.8-13.el7.x86_64 (rhel-7-server-extras-rpms)
               libcomps.so.0.1.6()(64bit)
           Available: libcomps-0.1.8-14.el7.x86_64 (rhel-7-server-extras-rpms)
               libcomps.so.0.1.6()(64bit)
           Installed: libcomps-0.1.18-1.el7pc.x86_64 (@Sat6-CI_Satellite_7_0_Composes_Satellite_7_0_RHEL7)
               Not found
Error: Package: libdnf-0.22.5-2.el7_9.x86_64 (rhel-7-server-extras-rpms)
           Requires: libsolvext.so.0()(64bit)
           Available: libsolv-0.6.11-1.el7.x86_64 (rhel-7-server-rpms)
               libsolvext.so.0()(64bit)
           Available: libsolv-0.6.20-5.el7.x86_64 (rhel-7-server-rpms)
               libsolvext.so.0()(64bit)
           Available: libsolv-0.6.26-1.el7.x86_64 (rhel-7-server-rpms)
               libsolvext.so.0()(64bit)
           Available: libsolv-0.6.26-2.el7.x86_64 (rhel-7-server-rpms)
               libsolvext.so.0()(64bit)
           Available: libsolv-0.6.34-2.el7.x86_64 (rhel-7-server-rpms)
               libsolvext.so.0()(64bit)
           Available: libsolv-0.6.34-4.el7.x86_64 (rhel-7-server-rpms)
               libsolvext.so.0()(64bit)
           Installed: libsolv-0.7.20-4.el7pc.x86_64 (@Sat6-CI_Satellite_7_0_Composes_Satellite_7_0_RHEL7)
              ~libsolvext.so.1()(64bit)
================================================

# yum list libcomps

Loaded plugins: product-id, search-disabled-repos, subscription-manager
Installed Packages
libcomps.x86_64  0.1.18-1.el7pc @Sat6CI_Satellite_7_0_Composes_Satellite_7_0_RHEL7


# yum list libsolv
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Installed Packages
libsolv.x86_64        0.7.20-4.el7pc                @Sat6-CI_Satellite_7_0_Composes_Satellite_7_0_RHEL7
Available Packages
libsolv.i686          0.6.34-4.el7                  rhel-7-server-rpms 



# yum list installed | grep -i 'rhel-7-server-extras-rpms'  <=== its blank i.e. none of the package from this repo is installed on satellite.
 
====================================================

# hammer ping
database:         
    Status:          ok
    Server Response: Duration: 0ms
candlepin:        
    Status:          ok
    Server Response: Duration: 42ms
candlepin_auth:   
    Status:          ok
    Server Response: Duration: 27ms
candlepin_events: 
    Status:          ok
    message:         0 Processed, 0 Failed
    Server Response: Duration: 0ms
katello_events:   
    Status:          ok
    message:         0 Processed, 0 Failed
    Server Response: Duration: 0ms
pulp3:            
    Status:          ok
    Server Response: Duration: 152ms
pulp3_content:    
    Status:          ok
    Server Response: Duration: 148ms
foreman_tasks:    
    Status:          ok
    Server Response: Duration: 2ms
==========================================

# satellite-maintain service status -b
Running Status Services
================================================================================
Get status of applicable services: 

Displaying the following service(s):
rh-redis5-redis, postgresql, pulpcore-api, pulpcore-content, pulpcore-worker, pulpcore-worker, tomcat, dynflow-sidekiq@orchestrator, foreman, httpd, puppetserver, dynflow-sidekiq@worker-1, dynflow-sidekiq@worker-hosts-queue-1, foreman-proxy
/ displaying rh-redis5-redis                       [OK]                         
/ displaying postgresql                            [OK]                         
/ displaying pulpcore-api                          [OK]                         
/ displaying pulpcore-content                      [OK]                         
/ displaying pulpcore-worker             [OK]                         
/ displaying pulpcore-worker             [OK]                         
/ displaying tomcat                                [OK]                         
/ displaying dynflow-sidekiq@orchestrator          [OK]                         
/ displaying foreman                               [OK]                         
/ displaying httpd                                 [OK]                         
/ displaying puppetserver                          [OK]                         
- displaying dynflow-sidekiq@worker-1              [OK]                         
- displaying dynflow-sidekiq@worker-hosts-queue-1  [OK]                         
- displaying foreman-proxy                         [OK]                         
- All services are running                                            [OK]      
--------------------------------------------------------------------------------


Actual results:

Leapp-upgrade package installation failing with dependency issue.

Expected results:

package should get install without any dependency issue.

Additional info:

Comment 4 Lukas Pramuk 2022-03-16 10:18:18 UTC
VERIFIED.

@Satellite 7.0.0 Snap13
libsolv0-0.6.34-4.el7sat.x86_64
libsolv-0.7.20-4.el7pc.x86_64
libcomps-0.1.18-1.el7pc.x86_64
python2-libcomps-0.1.15-5.pulp.el7sat.x86_64
leapp-0.13.0-1.el7_9.noarch

by the following reproducer:

1) Have a fresh Satellite 7.0 on RHEL7 installed (upgraded setup is not required to reproduce it)

2) Install LEAPP in order to procceed with OS upgrade to RHEL8

# subscription-manager repos --enable rhel-7-server-extras-rpms

# yum --disableplugin=foreman-protector -y install leapp

>>> leapp and its deps installed successfully (thanks to libsolv0 and python2-libcomps rpms provided by Satellite/Capsule compose)

Comment 7 errata-xmlrpc 2022-07-05 14:34:21 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.11 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-2022:5498