Bug 1533604 - Searching for Packages/Errata Content Views will return "No repositories contain this package." for any CV not of latest version.
Summary: Searching for Packages/Errata Content Views will return "No repositories cont...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.2.13
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 6.4.0
Assignee: Partha Aji
QA Contact: Perry Gagne
URL:
Whiteboard:
Depends On:
Blocks: 1546813
TreeView+ depends on / blocked
 
Reported: 2018-01-11 17:54 UTC by Jason Dickerson
Modified: 2021-12-10 15:33 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:08:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
working (26.74 KB, image/png)
2018-01-12 16:52 UTC, jcallaha
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 23141 0 Normal Closed Package search page not showing content views in Library 2020-11-26 18:54:01 UTC
Red Hat Knowledge Base (Solution) 3346011 0 None None None 2018-02-06 22:39:13 UTC

Description Jason Dickerson 2018-01-11 17:54:25 UTC
Description of problem:
Composite CV package search does not work.

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


How reproducible:
consistent

Steps to Reproduce:
1.  Go to Content, Packages.
2.  Find the package you are looking for, and click on it.  
3.  Go to the Repositories tab
4.  Select the Lifecycle Environment your component and composite CV's are in.  
5.  Select the component CV, you will see the repository the package is in.
6.  Select the component CV, you will see the message "No repositories contain this package".

Actual results:
package found in component CV but not composite

Expected results:
package would be found in both

Additional info:
This impacts the ability to verify new packages are in appropriate CV's.  This is helpful during a security patching event, such as Spectre/Meltdown.

Comment 1 Jason Dickerson 2018-01-11 18:54:47 UTC
Correction to "Steps to Reproduce:" step 6:

6.  Select the composite CV, you will see the message "No repositories contain this package".

Comment 2 Jason Dickerson 2018-01-11 19:14:37 UTC
Here is the current version of satellite we are on:

Satellite 6.2.13 with hotfixes:
bz 1468022  
bz 1473349  
bz 1416542

This could be environment or hotfix related.

Comment 4 jcallaha 2018-01-12 16:52:36 UTC
Created attachment 1380485 [details]
working

I'm unable to reproduce this in 6.2.14. Attached is a screenshot of me finding the package in the composite content view it belongs to.

Comment 5 Dylan Gross 2018-01-12 17:19:03 UTC
I was also unable to reproduce in 6.2.12 and 6.2.13.   In both cases with a standard install, the package was finding it in the Composite Content View.

Comment 6 Jason Dickerson 2018-02-06 19:41:05 UTC
So Dylan Gross can reproduce on a clone of the satellite in question.  But it seems that this only happens on certain CCV's.  The supposition is that something went wrong during a publish/promote operation, and republishing and promoting does not correct the issue.

Comment 8 Dylan Gross 2018-02-06 22:21:00 UTC
I have now been able to reproduce this independent of the customer's reproduction satellite with a vanilla lab satellite.

It appears the search for either "Content"->"Package"/"Errata" will only find the package/errata if the LifecycleEnvironment+ContentView in the dropdown is the most recent version.

I've tried with a number of different RPMs.
An example of the search flow via the WebUI:

  "Content"
     "Package"
        search "filename~sssd-1.11.2-68.el7_0.6.x86_64.rpm"
           (Select package)
              "Repositories" tab
                 Choose "Lifecycle Environment" and "Content View" in dropdowns
 


Independent reproduction on Satellite v6.2.13:

1.  Lifecycle environment path:  Library, Dev

2.  Create content View "rhel7" and publish new and promote to Dev.

3.  [Normal behaviour check]  At this point, the only Content View version is 1.0 and it is in both Library and Dev LE.   Search using the above method for any known package.   It will have hits when either "Library" or "Dev" are selected in the dropdown - and "rhel7" is selected for the Content View.

4.  Publish a new version of the "rhel7" Content View.

5.  [Behaviour check]  Now, Version 2.0 is in the "Library" LE, and Version 1.0 is still in "Dev" LE.   Doing the same searches will return a hit for the "Library"+"rhel7" because it is the most recent Content View Version, but nothing will be found for "Dev"+"rhel7" because it is n-1 from the most recent.

Comment 12 Partha Aji 2018-04-06 04:42:54 UTC
Connecting redmine issue http://projects.theforeman.org/issues/23141 from this bug

Comment 13 Satellite Program 2018-04-10 18:08:03 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/23141 has been resolved.

Comment 16 Bryan Kearney 2018-10-16 19:08:55 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:2927


Note You need to log in before you can comment on or make changes to this bug.