Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1768822

Summary: Package specified in "Activation Key -> Packages" during registration does not install latest version
Product: [Community] Spacewalk Reporter: Kenny Tordeurs <ktordeur>
Component: ClientsAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.9CC: mmraka
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1798915 (view as bug list) Environment:
Last Closed: 2020-03-19 12:16:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1798915, 1802137    

Description Kenny Tordeurs 2019-11-05 10:19:41 UTC
Description of problem:
Packages that are installed by an activation key during rhnreg_ks are not installing the latest version of a package based on the RPM versioning schema.


Version-Release number of selected component (if applicable):
Spacewalk release 2.9 (Smile)


How reproducible:
100%

Steps to Reproduce:
1. repo with package that has lots of versions
2. add package to activation key 
3. register client with activation key

Actual results:
Not the latest version of the package is installed

Expected results:
Latest version of the package to be installed

Additional info:
Using dnf/yum to install the package installs the latest version correctly.

Like for example:

~~~
script-base    1.0-24     rhel-x86_64-server-repo-8 
script-base    1.0-25     rhel-x86_64-server-repo-8 
script-base    1.0-26     rhel-x86_64-server-repo-8 
script-base    1.0-27     rhel-x86_64-server-repo-8 
script-base    1.0-29     rhel-x86_64-server-repo-8 
script-base    1.0-30     rhel-x86_64-server-repo-8 
script-base    1.0-31     rhel-x86_64-server-repo-8 
script-base    1.0-32     rhel-x86_64-server-repo-8 
script-base    1.0-33     rhel-x86_64-server-repo-8 
script-base    1.0-34     rhel-x86_64-server-repo-8 
script-base    1.0-35     rhel-x86_64-server-repo-8 
script-base    1.0-36     rhel-x86_64-server-repo-8 
script-base    1.0-37     rhel-x86_64-server-repo-8 
script-base    1.0-38     rhel-x86_64-server-repo-8 
script-base    1.0-39     rhel-x86_64-server-repo-8 
script-base    1.0-40     rhel-x86_64-server-repo-8 
script-base    1.0-41     rhel-x86_64-server-repo-8 
script-base    1.0-42     rhel-x86_64-server-repo-8 
script-base    1.0-43     rhel-x86_64-server-repo-8 
script-base    1.0-44     rhel-x86_64-server-repo-8 
script-base    1.0-45     rhel-x86_64-server-repo-8 
script-base    1.0-46     rhel-x86_64-server-repo-8 
script-base    1.0-48     rhel-x86_64-server-repo-8 
script-base    1.0-49     rhel-x86_64-server-repo-8 
script-base    1.0-50     rhel-x86_64-server-repo-8 
script-base    1.0-51     rhel-x86_64-server-repo-8 
script-base    1.0-52     rhel-x86_64-server-repo-8 
script-base    1.0-53     rhel-x86_64-server-repo-8 
script-base    1.0-54     rhel-x86_64-server-repo-8 
script-base    1.0-55     rhel-x86_64-server-repo-8 
script-base    1.0-56     rhel-x86_64-server-repo-8 
script-base    1.0-58     rhel-x86_64-server-repo-8 
script-base    1.0-59     rhel-x86_64-server-repo-8 
script-base    1.0-60     rhel-x86_64-server-repo-8 
script-base    1.0-61     rhel-x86_64-server-repo-8 
script-base    1.0-62     rhel-x86_64-server-repo-8 
script-base    1.0-63     rhel-x86_64-server-repo-8 
script-base    1.0-64     rhel-x86_64-server-repo-8 
script-base    1.0-65     rhel-x86_64-server-repo-8 
script-base    1.0-66     rhel-x86_64-server-repo-8 
script-base    1.0-67     rhel-x86_64-server-repo-8 
script-base    1.0-68     rhel-x86_64-server-repo-8 
script-base    1.0-69     rhel-x86_64-server-repo-8 
script-base    1.0-70     rhel-x86_64-server-repo-8 
script-base    1.0-71     rhel-x86_64-server-repo-8 
script-base    1.0-72     rhel-x86_64-server-repo-8 
script-base    1.0-73     rhel-x86_64-server-repo-8 
script-base    1.0-74     rhel-x86_64-server-repo-8 
script-base    1.0-75     rhel-x86_64-server-repo-8 
script-base    1.0-76     rhel-x86_64-server-repo-8 
script-base    1.0-77     rhel-x86_64-server-repo-8 
script-base    1.0-78     rhel-x86_64-server-repo-8 
script-base    1.0-79     rhel-x86_64-server-repo-8 
script-base    1.0-80     rhel-x86_64-server-repo-8 
script-base    1.0-81     @rhel-x86_64-server-repo-8
script-base    1.0-81     rhel-x86_64-server-repo-8 
script-base    1.0-82     rhel-x86_64-server-repo-8 
script-base    1.0-83     rhel-x86_64-server-repo-8 
script-base    1.0-84     rhel-x86_64-server-repo-8 
script-base    1.0-85     rhel-x86_64-server-repo-8 
script-base    1.0-86     rhel-x86_64-server-repo-8 
script-base    1.0-87     rhel-x86_64-server-repo-8 
script-base    1.0-88     rhel-x86_64-server-repo-8 
script-base    1.0-89     rhel-x86_64-server-repo-8 
script-base    1.0-90     rhel-x86_64-server-repo-8 
script-base    1.0-91     rhel-x86_64-server-repo-8 
script-base    1.0-92     rhel-x86_64-server-repo-8 
script-base    1.0-98     rhel-x86_64-server-repo-8 
script-base    1.0-100    rhel-x86_64-server-repo-8 
script-base    1.0-101    rhel-x86_64-server-repo-8 
script-base    1.0-102    rhel-x86_64-server-repo-8 
script-base    1.0-103    rhel-x86_64-server-repo-8
~~~

The package installed by the activation key is  "script-base    1.0-81     @rhel-x86_64-server-repo-8" instead of "script-base    1.0-103    rhel-x86_64-server-repo-8"

Comment 1 Michael Mráka 2020-01-16 09:58:54 UTC
I was able to reproduce the issue on RHEL8 and track it to inside of dnf-plugin-spacewalk,
namely rhn/actions/packages.py.

Comment 3 Michael Mráka 2020-01-16 10:26:25 UTC
Fixed in upstream spacewalk git by
commit dc604bf44635543af488da5ffeca55b56800143b
    1768822 - install latest available package

Comment 4 Michael Mráka 2020-03-19 12:16:34 UTC
Spacewalk 2.10 has been released.
https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes210