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

Leapp: Third party package dnf exclusions ignored during upgrade

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • rhel-7.9.z
    • leapp-repository
    • None
    • Low
    • rhel-upgrades
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • x86_64
    • None

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

      Following documentation on https://access.redhat.com/articles/4977891#exclude-rpms-from-upgrade , tried to exclude third party packages during leapp upgrade, dnf.conf configuration is not preserved in upgrade

      Please provide the package NVR for which bug is seen:

       

      dnf-4.0.9.2-2.el7_9.noarch

      leapp-0.16.0-1.el7_9.noarch

      leapp-upgrade-el7toel8-0.19.0-1.el7_9.noarch

       

      How reproducible: 

      Steps to reproduce

      1.

      In up to date RHEL 7.9, add couchdb repo and yum install couchdb and couch-js:

       

      cat /etc/yum.repos.d/couchdb.repo 
      [couchdb]
      name=couchdb
      baseurl=https://apache.jfrog.io/artifactory/couchdb-rpm/el$releasever/$basearch/
      gpgkey=https://couchdb.apache.org/repo/keys.asc https://couchdb.apache.org/repo/rpm-package-key.asc
      gpgcheck=1
      repo_gpgcheck=1
      enabled=1

       

      2. 

      Add exclusions to dnf.conf:

      cat /etc/dnf/dnf.conf 
      [main]
      gpgcheck=1
      installonly_limit=3
      clean_requirements_on_remove=True
      exclude=couch-js,couchdb

       

      3.

       

      Run "leapp upgrade"

      Expected results

       

      couchdb package remains installed:

       

      rpm -qa | grep couch
      couch-js-1.8.5-21.el7.x86_64
      couchdb-3.3.3.1-1.el7.x86_64

      Actual results

       

      only couch-js package remains installed:

       

      rpm -qa | grep couch
      couch-js-1.8.5-21.el7.x86_64

       

       

      Before leapp upgrade, package dependencies are similar between couchdb and couch-js:

       

      1. repoquery --installed --whatrequires couchdb-3.3.3.1-1.el7.x86_64
        couchdb-0:3.3.3.1-1.el7.x86_64
      2. repoquery --installed --whatrequires couch-js-1.8.5-21.el7.x86_64
        couchdb-0:3.3.3.1-1.el7.x86_64
      1. yum deplist couchdb-3.3.3.1-1.el7.x86_64
        .../...
        couchdb                                                                                                                                                                                                                                 19/19
        package: couchdb.x86_64 3.3.3.1-1.el7
          dependency: /bin/sh
           provider: bash.x86_64 4.2.46-35.el7_9
          dependency: couch-js = 1:1.8.5
           provider: couch-js.x86_64 1:1.8.5-21.el7
          dependency: curl
           provider: curl.x86_64 7.29.0-59.el7_9.2
          dependency: ld-linux-x86-64.so.2()(64bit)
           provider: glibc.x86_64 2.17-326.el7_9
          dependency: ld-linux-x86-64.so.2(GLIBC_2.3)(64bit)
        .../...
      1. yum deplist couch-js-1.8.5-21.el7.x86_64
        couchdb                                                                                                                                                                                                                                 19/19
        package: couch-js.x86_64 1:1.8.5-21.el7
          dependency: /sbin/ldconfig
           provider: glibc.x86_64 2.17-326.el7_9
           provider: glibc.i686 2.17-326.el7_9
          dependency: libc.so.6(GLIBC_2.14)(64bit)
           provider: glibc.x86_64 2.17-326.el7_9
          dependency: libdl.so.2()(64bit)
           provider: glibc.x86_64 2.17-326.el7_9
          dependency: libffi.so.6()(64bit)
           provider: libffi.x86_64 3.0.13-19.el7
          dependency: libgcc_s.so.1()(64bit)
           provider: libgcc.x86_64 4.8.5-44.el7
          dependency: libgcc_s.so.1(GCC_3.0)(64bit)
           provider: libgcc.x86_64 4.8.5-44.el7
        .../...

              leapp-notifications leapp-notifications
              rhn-support-raldaz Raúl Aldaz
              leapp-notifications leapp-notifications
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Miriam Portman Miriam Portman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: