Bug 1327622

Summary: During selection of puppet module - "Use Latest" is incorrectly pointing to lower version than available in the repo
Product: Red Hat Satellite Reporter: Dmitry Zhukovski <dzhukous>
Component: Content ViewsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Brad Buckingham <bbuckingham>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1.7CC: bbuckingham, ehelms, erjohnso, jcallaha, rballang
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:54:17 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:

Description Dmitry Zhukovski 2016-04-15 13:37:11 UTC
Description of problem:
During selection of puppet module - "Use Latest" is incorrectly pointing to lower version than available in the repo

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


How reproducible:


Steps to Reproduce:
1. Enable and sync Puppet Forge Repo
2. Create new CV
3. Add new Puppet module (for example abiquo) -> Select version
  * you see 
Use Latest (currently 0.1.6)
0.1.6
0.1.3
0.1.2
4. Choose 0.1.6 (Not Use Latest (currently 0.1.6))
5. Select another version of same puppet module
  * you see
Use Latest (currently 0.1.3)
0.1.3
0.1.2


Actual results:
Use Latest is pointing to version 0.1.3 (Latest from current displayed list) 

Expected results:
Use Latest should point to 0.1.6 - actual Latest version available.

Additional info:
Probably 0.1.6 version should appear on a list as well. Then Use Latest will point to correct version

Comment 1 Bryan Kearney 2016-07-26 18:59:23 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 2 Brad Buckingham 2016-08-26 12:13:35 UTC
Created redmine issue http://projects.theforeman.org/issues/16327 from this bug

Comment 5 Satellite Program 2017-01-17 03:19:39 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16327 has been resolved.

Comment 6 Brad Buckingham 2017-08-09 16:53:08 UTC
Verified on Satellite 6.3 SNAP 10 : satellite-6.3.0-16.0.beta.el7sat.noarch, tfm-rubygem-katello-3.4.4-1.el7sat.noarch

- create a puppet repo
- upload modules (e.g. theforeman) for multiple versions (e.g. 2.0.1, 1.3.0..)
- create a cv
- on the CV, Puppet Modules
  - Add New Module - 2.0.1
  - 'Select new version', verify 'Always Use Latest (2.0.1)' and 1.3.0 listed
  - 'Select Version' 1.3.0
  - 'Select new version', verify 'Always Use Latest (2.0.1)' and 2.0.1 listed
  - 'Select Version' 2.0.1
  - 'Select new version', verify 'Always Use Latest (2.0.1)' and 1.3.0 listed
  - 'Select Version' 'Always Use Latest'
  - 'Select new version', verify 'Always Use Latest (2.0.1)', 2.0.1 and 1.3.0 listed

Comment 7 Satellite Program 2018-02-21 16:54:17 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> 
> For information on the advisory, and where to find the updated files, follow the link below.
> 
> If the solution does not work for you, open a new bug report.
> 
> https://access.redhat.com/errata/RHSA-2018:0336