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

installing a kernel-core dependency bypasses the installonly_limit

    • libdnf-0.63.0-18.el8
    • None
    • Important
    • rhel-sst-cs-software-management
    • ssg_core_services
    • 10
    • 12
    • None
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Release Note Not Required
    • None

      Description of problem:
      When a kernel-core dependency is targeted as the install, such as "yum install kernel-core-uname-r", dnf ignores the 3 kernel limit set by installonly_limit

      Version-Release number of selected component (if applicable):
      dnf-4.7.0-11.el8.noarch
      libdnf-0.63.0-11.1.el8.x86_64

      How reproducible:
      Everytime

      Steps to Reproduce:
      1. Have 3 (less than latest version) kernel/kernel-cores installed
      2. # yum install kernel-core-uname-r
      3.

      Actual results:
      [root@r8 ~]# rpm -q kernel
      kernel-4.18.0-372.26.1.el8_6.x86_64
      kernel-4.18.0-372.32.1.el8_6.x86_64
      kernel-4.18.0-425.3.1.el8.x86_64

      [root@r8 ~]# rpm -q kernel-core
      kernel-core-4.18.0-372.26.1.el8_6.x86_64
      kernel-core-4.18.0-372.32.1.el8_6.x86_64
      kernel-core-4.18.0-425.3.1.el8.x86_64

      [root@r8 ~]# yum install kernel-core-uname-r

      Installing:
      kernel-core x86_64 4.18.0-425.10.1.el8_7 rhel-8-for-x86_64-baseos-rpms
      Reinstalling:
      kernel-core x86_64 4.18.0-372.26.1.el8_6 rhel-8-for-x86_64-baseos-rpms

      [root@r8 ~]# rpm -q kernel
      kernel-4.18.0-372.26.1.el8_6.x86_64
      kernel-4.18.0-372.32.1.el8_6.x86_64
      kernel-4.18.0-425.3.1.el8.x86_64

      [root@r8 ~]# rpm -q kernel-core
      kernel-core-4.18.0-372.32.1.el8_6.x86_64
      kernel-core-4.18.0-425.3.1.el8.x86_64
      kernel-core-4.18.0-425.10.1.el8_7.x86_64
      kernel-core-4.18.0-372.26.1.el8_6.x86_64

      Expected results:
      only 3 kernel/kernel-cores should be installed at a time. The oldest one should be removed when a new kernel is installed.

      Additional info:
      This may potentially be the cause for https://bugzilla.redhat.com/show_bug.cgi?id=2163461

              amatej@redhat.com Ales Matej
              rhn-support-jcastran John Castranio
              packaging-team-maint packaging-team-maint
              Eva Mrakova Eva Mrakova
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: