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

RPM wrongly compares NVRs of modules

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

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • rhel-8.10.z
    • mariadb-10.3-module
    • None
    • None
    • None
    • rhel-databases
    • None
    • False
    • False
    • Hide

      None

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

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

      Changing from the mariadb:10.5 module to the mariadb:10.3 module using dnf while having mariadb-oqgraph-engine installed.

      This installs the Judy package from the modules but incorrectly resolves that the one in the mariadb:10.3 module has a bigger nvr than the one in the mariadb:10.5 module even though they have these nvrs:
      mariadb:10.3 - Judy-1.0.5-18.module+el8+2765+cfa4f87b

      mariadb:10.5 - Judy-1.0.5-18.module+el8.10.0+22630+cacda3f1

      What is the impact of this issue to you?

      Wrong upgrade/downgrade message during reinstall. And wrong resolving of install priority (could probably result in having older builds be preferred over newer ones)

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

      rpm-4.14.3-32.el8_10

      How reproducible is this bug?:

      Every time. I have tested this comparison on RHEL8 with module switching using dnf and manually on fedora42 with repmdev-vercmp.

      Steps to reproduce

      1. dnf module switch-to mariadb:10.5
      2. dnf install -y mariadbq-graph-engine
      3. dnf module switch-to mariadb:10.3

      Or you could just do:

      1. rpmdev-vercmp 1.0.5-18.module+el8+2765+cfa4f87b 1.0.5-18.module+el8.10.0+22630+cacda3f1

      which will return that 1.0.5-18.module+el8+2765+cfa4f87b  is bigger than 1.0.5-18.module+el8.10.0+22630+cacda3f1

      Expected results

      Upgraded:
        Judy-1.0.5-18.module+el8.10.0+22630+cacda3f1.x86_64 

      Actual results

      Downgraded:
        Judy-1.0.5-18.module+el8.10.0+22630+cacda3f1.x86_64 

              mschorm@redhat.com Michal Schorm
              rh-ee-psloboda Pavol Sloboda
              Michal Schorm Michal Schorm
              Vaclav Danek Vaclav Danek
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: