Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-43305

hammer host package list --status upgradable shows duplicate packages for some packages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 6.18.2
    • Content Views
    • None
    • False
    • sat-proton
    • None
    • None
    • None
    • None

      When attempting to list the upgradable packages for a host, the hammer command returns duplicate packages for some packages but not all packages.

      Example:

       

      # hammer --no-headers host package list --host-id 3 --status upgradable
      cloud-init-24.4-7.el9.noarch                     
      curl-7.76.1-34.el9.x86_64                        
      glib2-2.68.4-18.el9_7.x86_64                     
      glibc-2.34-231.el9_7.2.x86_64                    
      glibc-common-2.34-231.el9_7.2.x86_64             
      glibc-gconv-extra-2.34-231.el9_7.2.x86_64        
      glibc-langpack-en-2.34-231.el9_7.2.x86_64        
      glibc-minimal-langpack-2.34-231.el9_7.2.x86_64   
      gnupg2-2.3.3-4.el9.x86_64                        
      kernel-5.14.0-611.16.1.el9_7.x86_64              
      kernel-5.14.0-570.60.1.el9_6.x86_64              
      kernel-5.14.0-570.17.1.el9_6.x86_64              
      kernel-core-5.14.0-611.16.1.el9_7.x86_64         
      kernel-core-5.14.0-570.60.1.el9_6.x86_64         
      kernel-core-5.14.0-570.17.1.el9_6.x86_64         
      kernel-modules-5.14.0-611.16.1.el9_7.x86_64      
      kernel-modules-5.14.0-570.60.1.el9_6.x86_64      
      kernel-modules-5.14.0-570.17.1.el9_6.x86_64      
      kernel-modules-core-5.14.0-611.16.1.el9_7.x86_64 
      kernel-modules-core-5.14.0-570.60.1.el9_6.x86_64 
      kernel-modules-core-5.14.0-570.17.1.el9_6.x86_64 
      kernel-tools-5.14.0-611.16.1.el9_7.x86_64        
      kernel-tools-libs-5.14.0-611.16.1.el9_7.x86_64   
      kpartx-0.8.7-39.el9.x86_64                       
      libblkid-2.37.4-21.el9.x86_64                    
      libbrotli-1.0.9-7.el9_5.x86_64                   
      libcurl-7.76.1-34.el9.x86_64                     
      libdnf-0.69.0-16.el9.x86_64                      
      libfdisk-2.37.4-21.el9.x86_64                    
      libldb-4.22.4-6.el9_7.x86_64                     
      libmount-2.37.4-21.el9.x86_64                    
      libpq-13.20-1.el9_5.x86_64                       
      libsmartcols-2.37.4-21.el9.x86_64                
      libsoup-2.72.0-12.el9_7.1.x86_64                 
      libuuid-2.37.4-21.el9.x86_64                     
      libvirt-libs-10.10.0-15.4.el9_7.x86_64           
      libwbclient-4.22.4-6.el9_7.x86_64                
      linux-firmware-20251111-155.1.el9_7.noarch       
      linux-firmware-whence-20251111-155.1.el9_7.noarch
      microcode_ctl-20250812-1.el9.noarch              
      nftables-1.0.9-5.el9_7.x86_64                    
      openssl-3.5.1-4.el9_7.x86_64                     
      openssl-libs-3.5.1-4.el9_7.x86_64                
      postgresql-13.22-1.el9_6.x86_64                  
      postgresql-contrib-13.22-1.el9_6.x86_64          
      postgresql-private-libs-13.22-1.el9_6.x86_64     
      postgresql-server-13.22-1.el9_6.x86_64           
      python3-3.9.25-2.el9_7.x86_64                    
      python3.12-3.12.12-1.el9_7.x86_64                
      python3.12-libs-3.12.12-1.el9_7.x86_64           
      python3-hawkey-0.69.0-16.el9.x86_64              
      python3-libdnf-0.69.0-16.el9.x86_64              
      python3-libs-3.9.25-2.el9_7.x86_64               
      python3-nftables-1.0.9-5.el9_7.x86_64            
      python3-perf-5.14.0-611.16.1.el9_7.x86_64        
      python3-urllib3-1.26.5-6.el9.noarch              
      python-unversioned-command-3.9.25-2.el9_7.noarch 
      qemu-guest-agent-9.1.0-29.el9_7.3.x86_64         
      redis-6.2.20-2.el9_7.x86_64                      
      samba-client-libs-4.22.4-6.el9_7.x86_64          
      samba-common-4.22.4-6.el9_7.noarch               
      samba-common-libs-4.22.4-6.el9_7.x86_64          
      util-linux-2.37.4-21.el9.x86_64
      util-linux-core-2.37.4-21.el9.x86_64
      

       

      When updating from the client side, we only see the latest available packages for installing (IE: no duplicate kernel packages).

       

      # dnf update kernel 
      Dependencies resolved.
      ===========================================================================================================================================================================
       Package                                  Architecture                Version                                    Repository                                           Size
      ===========================================================================================================================================================================
      Installing:
       kernel                                   x86_64                      5.14.0-611.35.1.el9_7                      rhel-9-for-x86_64-baseos-rpms                       1.1 M
       kernel-core                              x86_64                      5.14.0-611.35.1.el9_7                      rhel-9-for-x86_64-baseos-rpms                        17 M
       kernel-modules                           x86_64                      5.14.0-611.35.1.el9_7                      rhel-9-for-x86_64-baseos-rpms                        40 M
       kernel-modules-core                      x86_64                      5.14.0-611.35.1.el9_7                      rhel-9-for-x86_64-baseos-rpms                        31 M
      Removing:
       kernel                                   x86_64                      5.14.0-570.17.1.el9_6                      @rhel-9-for-x86_64-baseos-rpms                        0  
       kernel-core                              x86_64                      5.14.0-570.17.1.el9_6                      @rhel-9-for-x86_64-baseos-rpms                       68 M
       kernel-modules                           x86_64                      5.14.0-570.17.1.el9_6                      @rhel-9-for-x86_64-baseos-rpms                       36 M
       kernel-modules-core                      x86_64                      5.14.0-570.17.1.el9_6                      @rhel-9-for-x86_64-baseos-rpms                       28 M
      Transaction Summary
      ===========================================================================================================================================================================
      Install  4 Packages
      Remove   4 Packages
      Total download size: 89 M
      Is this ok [y/N]:  n
      Operation aborted.
      

       

       

      # dnf list python3-perf --showduplicates 
      Installed Packages
      python3-perf.x86_64                                                 5.14.0-611.16.1.el9_7                                                 @rhel-9-for-x86_64-appstream-rpms
      
      Available Packages
      python3-perf.x86_64                                                 5.14.0-70.13.1.el9_0                                                  rhel-9-for-x86_64-baseos-rpms    
      python3-perf.x86_64                                                 5.14.0-70.17.1.el9_0                                                  rhel-9-for-x86_64-baseos-rpms    
      --snip--
      python3-perf.x86_64                                                 5.14.0-611.16.1.el9_7                                                 rhel-9-for-x86_64-appstream-rpms 
      python3-perf.x86_64                                                 5.14.0-611.20.1.el9_7                                                 rhel-9-for-x86_64-appstream-rpms 
      python3-perf.x86_64                                                 5.14.0-611.24.1.el9_7                                                 rhel-9-for-x86_64-appstream-rpms 
      python3-perf.x86_64                                                 5.14.0-611.26.1.el9_7                                                 rhel-9-for-x86_64-appstream-rpms 
      python3-perf.x86_64                                                 5.14.0-611.27.1.el9_7                                                 rhel-9-for-x86_64-appstream-rpms 
      python3-perf.x86_64                                                 5.14.0-611.30.1.el9_7                                                 rhel-9-for-x86_64-appstream-rpms 
      python3-perf.x86_64                                                 5.14.0-611.34.1.el9_7                                                 rhel-9-for-x86_64-appstream-rpms 
      python3-perf.x86_64                                                 5.14.0-611.35.1.el9_7                                                 rhel-9-for-x86_64-appstream-rpms 
      

       

       

      As a user, I would expect the same behavior of yum/dnf on the list of upgradable packages seen from Satellite's hammer command.

              Unassigned Unassigned
              rhn-support-tasander Taft Sanders
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: