Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-81779

libdnf-0.69.0-12 incorrectly reports downgrades on package updates

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-9.5
    • libdnf
    • No
    • Low
    • rhel-swm
    • ssg_core_services
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      dnf history info reports that a package was downgraded when in fact it was upgraded.

      What is the impact of this issue to you?

      The output of dnf history info cannot be trusted.

      Please provide the package NVR for which the bug is seen:

      libdnf-0.69.0-12

      How reproducible is this bug?:

      Every time

      Steps to reproduce

      1. dnf downgrade rsyslog-8.2102.0-101.el9 
      2. dnf update rsyslog-8.2102.0-105.el9 
      3. dnf update rsyslog-8.2102.0-111.el9
      4. dnf history info x..y

      where 'x' refers to the transaction in step 2 and 'y' refers to the transaction in step 3

      Expected results

      `dnf history info` should show that rsyslog was upgraded.

      Actual results

      `dnf history info` shows that the package was downgraded:

      [root@r95 ~]# dnf history list
      Updating Subscription Management repositories.
      ID     | Command line                                                                                           | Date and time    | Action(s)      | Altered
      -------------------------------------------------------------------------------------------------------------------------------------------------------------
          30 | update rsyslog-8.2102.0-111.el9                                                                        | 2025-03-01 10:30 | Upgrade        |    6   
          29 | update rsyslog-8.2102.0-105.el9                                                                        | 2025-03-01 10:30 | Upgrade        |    6   
          28 | downgrade rsyslog-8.2102.0-101.el9                                                                     | 2025-03-01 10:29 | Downgrade      |    6   
          27 | update -y tlog-13-1.el9                                                                                | 2025-03-01 10:24 | Upgrade        |    1   
          26 | install tlog-12.1-2.el9                                                                                | 2025-03-01 10:24 | Install        |    1   
          25 | update -y kernel-5.14.0-503.15.1.el9_5                                                                 | 2025-02-28 15:12 | Install        |    4   
          24 | update kernel-5.14.0-503.14.1.el9_5                                                                    | 2025-02-28 15:10 | Install        |    4   
          23 | update zziplib-0.13.71-11.el9_4                                                                        | 2025-02-28 14:59 | Upgrade        |    1   
          22 | install zziplib-0.13.71-9.el9                                                                          | 2025-02-28 14:58 | Install        |    1   
          21 | install -y rsyslog-crypto                                                                              | 2025-02-27 10:39 | Install        |    1   
          20 | install -y dnsmasq httpd                                                                               | 2025-02-11 16:18 | Install        |   11   
          19 | install -y mariadb-server                                                                              | 2025-02-11 14:03 | Install        |   11 EE
          18 | erase mysql-server                                                                                     | 2025-02-11 14:02 | Removed        |    8   
          17 | install mysql-server                                                                                   | 2025-02-11 13:34 | Install        |    8 EE
          16 | erase mariadb-server                                                                                   | 2025-02-11 13:34 | Removed        |   11   
          15 | install -y mariadb-server                                                                              | 2025-02-11 13:25 | Install        |   11 EE
          14 | install -y yum-utils                                                                                   | 2025-02-11 11:46 | Install        |    1   
          13 | install -y audispd-plugins                                                                             | 2025-02-04 14:03 | Install        |    1   
          12 | downgrade rpm-plugin-selinux-4.16.1.3-29.el9.x86_64                                                    | 2025-01-16 13:48 | Downgrade      |    9   
          11 | install -y container-selinux libselinux-utils libselinux-devel memcached-selinux passt-selinux pcp-sel | 2025-01-16 13:47 | Install        |    6 EE
          10 | install -y bind-chroot                                                                                 | 2025-01-15 09:58 | Install        |    6   
           9 | install -y unbound dnsmasq                                                                             | 2025-01-14 10:43 | Install        |    3 EE
           8 | install -y dhcp-server                                                                                 | 2025-01-11 09:41 | Install        |    2   
           7 | install linuxptp                                                                                       | 2025-01-07 12:31 | Install        |    1   
           6 | install -y aide                                                                                        | 2024-12-27 09:45 | Install        |    1   
           5 | install postgresql-server                                                                              | 2024-12-20 13:53 | Install        |    3   
           4 | install -y ksh                                                                                         | 2024-12-20 11:09 | Install        |    1   
           3 | install -y setools-console                                                                             | 2024-12-18 11:00 | Install        |    1   
           2 | install -y podman                                                                                      | 2024-12-18 10:54 | Upgrade        |    1  <
           1 |                                                                                                        | 2024-11-27 11:43 | Install        |  964 >E
      [root@r95 ~]# dnf history info 28..last
      Updating Subscription Management repositories.
      Transaction ID : 28..30
      Begin time     : Sat 01 Mar 2025 10:29:45 AM CET
      Begin rpmdb    : 755f6ebfb0eb86f007a474f9462b6640099b0b08afa2793dad44bb0c6359a4cd
      End time       : Sat 01 Mar 2025 10:30:50 AM CET (65 seconds)
      End rpmdb      : 253b81a69b42d372a632fdb9b2c771a565ea850a69cabe5e31b2f93b8bf9f0d9
      User           : root <root>
      Return-Code    : Success
      Releasever     : 9
      Command Line   : downgrade rsyslog-8.2102.0-101.el9
      Command Line   : update rsyslog-8.2102.0-105.el9
      Command Line   : update rsyslog-8.2102.0-111.el9
      Comment        : 
      Comment        : 
      Comment        : 
      Packages Altered:
          Downgraded rsyslog-crypto-8.2310.0-4.el9.x86_64      @@System
          Downgrade  rsyslog-crypto-8.2102.0-111.el9.x86_64    @rhel-9-for-x86_64-appstream-rpms
          Downgraded rsyslog-gnutls-8.2310.0-4.el9.x86_64      @@System
          Downgrade  rsyslog-gnutls-8.2102.0-111.el9.x86_64    @rhel-9-for-x86_64-appstream-rpms
          Downgraded rsyslog-gssapi-8.2310.0-4.el9.x86_64      @@System
          Downgrade  rsyslog-gssapi-8.2102.0-111.el9.x86_64    @rhel-9-for-x86_64-appstream-rpms
          Downgraded rsyslog-logrotate-8.2310.0-4.el9.x86_64   @@System
          Downgrade  rsyslog-logrotate-8.2102.0-111.el9.x86_64 @rhel-9-for-x86_64-appstream-rpms
          Downgraded rsyslog-relp-8.2310.0-4.el9.x86_64        @@System
          Downgrade  rsyslog-relp-8.2102.0-111.el9.x86_64      @rhel-9-for-x86_64-appstream-rpms
          Downgraded rsyslog-8.2310.0-4.el9.x86_64             @@System
          Downgrade  rsyslog-8.2102.0-111.el9.x86_64           @rhel-9-for-x86_64-appstream-rpms
      [root@r95 ~]# dnf history info 29..last
      Updating Subscription Management repositories.
      Transaction ID : 29..30
      Begin time     : Sat 01 Mar 2025 10:30:14 AM CET
      Begin rpmdb    : 8ed14ca92235236a539dc64d05e9af32e89da86e7e7e47b67617a6533ddff727
      End time       : Sat 01 Mar 2025 10:30:50 AM CET (36 seconds)
      End rpmdb      : 253b81a69b42d372a632fdb9b2c771a565ea850a69cabe5e31b2f93b8bf9f0d9
      User           : root <root>
      Return-Code    : Success
      Releasever     : 9
      Command Line   : update rsyslog-8.2102.0-105.el9
      Command Line   : update rsyslog-8.2102.0-111.el9
      Comment        : 
      Comment        : 
      Packages Altered:
          Downgraded rsyslog-crypto-8.2102.0-101.el9.x86_64    @@System
          Downgrade  rsyslog-crypto-8.2102.0-111.el9.x86_64    @rhel-9-for-x86_64-appstream-rpms
          Downgraded rsyslog-gnutls-8.2102.0-101.el9.x86_64    @@System
          Downgrade  rsyslog-gnutls-8.2102.0-111.el9.x86_64    @rhel-9-for-x86_64-appstream-rpms
          Downgraded rsyslog-gssapi-8.2102.0-101.el9.x86_64    @@System
          Downgrade  rsyslog-gssapi-8.2102.0-111.el9.x86_64    @rhel-9-for-x86_64-appstream-rpms
          Downgraded rsyslog-logrotate-8.2102.0-101.el9.x86_64 @@System
          Downgrade  rsyslog-logrotate-8.2102.0-111.el9.x86_64 @rhel-9-for-x86_64-appstream-rpms
          Downgraded rsyslog-relp-8.2102.0-101.el9.x86_64      @@System
          Downgrade  rsyslog-relp-8.2102.0-111.el9.x86_64      @rhel-9-for-x86_64-appstream-rpms
          Downgraded rsyslog-8.2102.0-101.el9.x86_64           @@System
          Downgrade  rsyslog-8.2102.0-111.el9.x86_64           @rhel-9-for-x86_64-appstream-rpms
       

              packaging-team-maint packaging-team-maint
              rhn-support-jsantos Juan Santos
              packaging-team-maint packaging-team-maint
              Software Management QE Software Management QE
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: