Bug 1409003

Summary: [RFE] As a user, I can install a specific version of a package
Product: Red Hat Satellite Reporter: Stuart Auchterlonie <sauchter>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.2.4CC: aagrawal, bbuckingham, bkearney, jbhatia, jcallaha, jortel, mhrivnak, mvanderw, pcreech
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 19:14:49 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: 1316897    
Attachments:
Description Flags
hammer debug output none

Description Stuart Auchterlonie 2016-12-28 21:21:10 UTC
Description of problem:

If there are multiple versions of a package in the repository,
for example with the kernel package, yum is able to install
any specific version, just by specifying the full version number

Version-Release number of selected component (if applicable):

6.2.4

How reproducible:

100%

Steps to Reproduce:
1. Install system with rhel-7.2, and point at 7.3 repositories
2. Verify multiple versions of kernel package are available

# yum list --showduplicates kernel

3.

- Via Hammer

# hammer host package install --host <client system> --packages kernel-3.10.0-327.3.1.el7

- Via the web interface

Navigate to Hosts > Content Hosts > <client_system>
Select Packages tab, put the required kernel package
"kernel-3.10.0-327.3.1.el7" into the box next to
"Package Install" dropdown button, and perform the
action via katello-agent

Actual results:

Error: *:kernel-3.10.0-327.3.1-*-*.*: No package(s) available to install
*:kernel-3.10.0-327.3.1-*-*.*: No package(s) available to install

Expected results:

The package with the specific version requested should be installed

Additional info:

I've used the kernel package as an example as it has lots of different
versions available, however customer sees it in their own repository
containing custom rpms, and they require the ability to install specific
versions.

Comment 1 Stuart Auchterlonie 2016-12-28 21:23:02 UTC
Created attachment 1235731 [details]
hammer debug output

Comment 3 Brad Buckingham 2017-02-27 19:19:07 UTC
Created redmine issue http://projects.theforeman.org/issues/18709 from this bug

Comment 5 Satellite Program 2017-03-06 17:01:00 UTC
Upstream bug assigned to bbuckingham

Comment 6 Michael Hrivnak 2017-03-12 16:53:11 UTC
As another idea, is it possible for Katello to use something like an autocomplete widget to match a package that is known to be in a repository that the machine is bound to? That could make it very easy to select a package name, then select the desired version/release (or let it default to newest). If we can explicitly match a particular known package, that seems like a compelling way to go.

Comment 9 Brad Buckingham 2017-05-11 13:29:36 UTC
Comment 6 does provide alternative that we could investigate; however, it may be fairly involved to support in katello to provide a good user experience when accounting for differences between katello-agent vs rex and that the user may execute it from UI, API or CLI.  I like the concept of the alternative, but fear user would go from being able to enter package details that they are used to providing, to having them locate package IDs in katello and then providing them as an input (when using the API/CLI).

Comment 16 Bryan Kearney 2018-09-04 19:02:06 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.

Comment 17 Bryan Kearney 2018-09-04 19:14:49 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.