Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1923940

Summary: microdnf upgrade tests are failing for 8.4 due to a change in microdnf output
Product: Red Hat Enterprise Linux 8 Reporter: Nicola Sella <nsella>
Component: microdnfAssignee: Nicola Sella <nsella>
Status: CLOSED ERRATA QA Contact: Radek Bíba <rbiba>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4Keywords: Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: microdnf-3.4.0-4.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:10:03 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 Nicola Sella 2021-02-02 09:35:49 UTC
Description of problem:

Microdnf upgrade tests are failing for 8.4 due to a change in microdnf output
Tests are failing for rhel 8.4 gating

features/microdnf/upgrade-all.feature
features/microdnf/upgrade-pkgspec.feature
features/microdnf/upgrade-provides.feature
features/microdnf/upgrade.feature 

this PR is required for the tests to pass
https://github.com/rpm-software-management/microdnf/pull/80

Version-Release number of selected component (if applicable):
microdnf-3.4.0-3.el8

How reproducible:
Run ci-stack for rhel

Actual results:

  @tier1 @bz1670776 @bz1671683                                                                                                                                                                
  Scenario: Upgrade all RPMs from multiple repositories with best=True      # features/microdnf/upgrade.feature:102                                                                           
    Given I use repository "dnf-ci-fedora"                                  # features/steps/repo.py:138                                                                                      
    And I use repository "dnf-ci-thirdparty"                                # features/steps/repo.py:138                                                                                      
    And I create directory "/usr"                                           # common/file.py:30                                                                                               
    When I execute microdnf with args "install glibc flac wget SuperRipper" # features/steps/cmd.py:138                                                                                       
    Then the exit code is 0                                                 # common/output.py:33                                                                                             
    And microdnf transaction is                                             # features/steps/transaction.py:260                                                                               
      | Action       | Package                                  |                                                                                                                             
      | install      | glibc-0:2.28-9.fc29.x86_64               |                                                                                                                             
      | install      | flac-0:1.3.2-8.fc29.x86_64               |                                                                                                                             
      | install      | wget-0:1.19.5-5.fc29.x86_64              |                                                                                                                             
      | install      | SuperRipper-0:1.0-1.x86_64               |                                                                                                                             
      | install-dep  | setup-0:2.12.1-1.fc29.noarch             |                                                                                                                             
      | install-dep  | filesystem-0:3.9-2.fc29.x86_64           |                                                                                                                             
      | install-dep  | basesystem-0:11-6.fc29.noarch            |                                                                                                                             
      | install-dep  | glibc-common-0:2.28-9.fc29.x86_64        |                                                                                                                             
      | install-dep  | glibc-all-langpacks-0:2.28-9.fc29.x86_64 |                                                                                                                             
      | install-dep  | abcde-0:2.9.2-1.fc29.noarch              |                                                                                                                             
      | install-weak | FlacBetterEncoder-0:1.0-1.x86_64         |                                                     
    Given I use repository "dnf-ci-fedora-updates"                          # features/steps/repo.py:138                                                                                      
    Given I use repository "dnf-ci-fedora-updates-testing"                  # features/steps/repo.py:138                                                                                      
    And I use repository "dnf-ci-thirdparty-updates"                        # features/steps/repo.py:138                                                                                      
    When I execute microdnf with args "upgrade"                             # features/steps/cmd.py:138                                                                                       
    Then the exit code is 1                                                 # common/output.py:33                                                                                             
    And stderr is                                                           # common/output.py:103                                                                                            
      """                                                                                                                                                                                     
      error: Could not depsolve transaction; 1 problem detected:                                                                                                                              
       Problem: cannot install the best update candidate for package SuperRipper-1.0-1.x86_64                                                                                                 
        - nothing provides unsatisfiable needed by SuperRipper-1.3-1.x86_64                                                                                                                   
      """                                                                                                                                                                                     
    When I execute microdnf with args "upgrade --nobest"                    # features/steps/cmd.py:138                                                                                       
    Then the exit code is 0                                                 # common/output.py:33                                                                                             
    And microdnf transaction is                                             # features/steps/transaction.py:260                                                                               
      | Action   | Package                                   |                                                                                                                                
      | upgrade  | glibc-0:2.28-26.fc29.x86_64               |                                                                                                                                
      | upgraded | glibc-0:2.28-9.fc29.x86_64                |                                                                                                                                
      | upgrade  | glibc-common-0:2.28-26.fc29.x86_64        |                                                                                                                                
      | upgraded | glibc-common-0:2.28-9.fc29.x86_64         |                                                                                                                                
      | upgrade  | glibc-all-langpacks-0:2.28-26.fc29.x86_64 |                                                                                                                                
      | upgraded | glibc-all-langpacks-0:2.28-9.fc29.x86_64  |                                                                                                                                
      | upgrade  | flac-0:1.4.0-1.fc29.x86_64                |                                                                                                                                
      | upgraded | flac-0:1.3.2-8.fc29.x86_64                |                                                                                                                                
      | upgrade  | wget-1:1.19.5-5.fc29.x86_64               |                                                                                                                                
      | upgraded | wget-0:1.19.5-5.fc29.x86_64               |                                                                                                                                
      | upgrade  | SuperRipper-0:1.2-1.x86_64                |                                                                                                                                
      | upgraded | SuperRipper-0:1.0-1.x86_64                |                                                                                                                                
      | upgrade  | abcde-0:2.9.3-1.fc29.noarch               |                                                                                                                                
      | upgraded | abcde-0:2.9.2-1.fc29.noarch               |                                                                                                                                
      Assertion Failed: Transaction table mismatch                                                                                                                                            
      Captured stdout:                                                                                                                                                                        
      expected                                           |  found                                                                                                                             
      replaced SuperRipper-0:1.0-1.x86_64                |  upgrade SuperRipper-0:1.2-1.x86_64                                                                                                
      replaced abcde-0:2.9.2-1.fc29.noarch               |  upgrade abcde-0:2.9.3-1.fc29.noarch                                                                                               
      replaced flac-0:1.3.2-8.fc29.x86_64                |  upgrade flac-0:1.4.0-1.fc29.x86_64                                                                                                
      replaced glibc-0:2.28-9.fc29.x86_64                |  upgrade glibc-0:2.28-26.fc29.x86_64                                                                                               
      replaced glibc-all-langpacks-0:2.28-9.fc29.x86_64  |  upgrade glibc-all-langpacks-0:2.28-26.fc29.x86_64                                                                                 
      replaced glibc-common-0:2.28-9.fc29.x86_64         |  upgrade glibc-common-0:2.28-26.fc29.x86_64                                                                                        
      replaced wget-0:1.19.5-5.fc29.x86_64               |  upgrade wget-1:1.19.5-5.fc29.x86_64                                                                                               
      upgrade SuperRipper-0:1.2-1.x86_64                 |                                                                                                                                    
      upgrade abcde-0:2.9.3-1.fc29.noarch                |                                                                                                                                    
      upgrade flac-0:1.4.0-1.fc29.x86_64                 |                                                                                                                                    
      upgrade glibc-0:2.28-26.fc29.x86_64                |                                                                                                                                    
      upgrade glibc-all-langpacks-0:2.28-26.fc29.x86_64  |                                                                                                                                    
      upgrade glibc-common-0:2.28-26.fc29.x86_64         |                                                                                                                                    
      upgrade wget-1:1.19.5-5.fc29.x86_64                |                                                                                                                                    
                                                                                                                                                                                              
Last Command: microdnf -y --installroot=/tmp/dnf_ci_installroot_4943yy2j --noplugins --config=/tmp/dnf_ci_installroot_4943yy2j/etc/dnf/dnf.conf --setopt=reposdir=/tmp/dnf_ci_installroot_4943
yy2j/etc/yum.repos.d --setopt=varsdir=/tmp/dnf_ci_installroot_4943yy2j/etc/dnf/vars --setopt=cachedir=/tmp/dnf_ci_installroot_4943yy2j/var/cache/yum --releasever=29 --setopt=module_platform_
id=platform:f29 upgrade --nobest 


Expected results:

Tests should pass

Comment 7 errata-xmlrpc 2021-05-18 15:10:03 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 (microdnf bug fix and enhancement update), 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/RHBA-2021:1721