Bug 1997005 - Capsule content page shows content views as empty when they aren't
Summary: Capsule content page shows content views as empty when they aren't
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Capsule - Content
Version: 6.10.0
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: 6.10.0
Assignee: Justin Sherrill
QA Contact: Vladimír Sedmík
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-24 08:22 UTC by Kenny Tordeurs
Modified: 2021-11-16 14:13 UTC (History)
2 users (show)

Fixed In Version: tfm-rubygem-katello-4.1.1.22-1,tfm-rubygem-katello-4.1.1.28-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:13:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 33466 0 None None None 2021-09-10 18:19:43 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:13:35 UTC

Description Kenny Tordeurs 2021-08-24 08:22:45 UTC
Description of problem:
When navigating to Infrastructure -> Capsules -> Select capsule -> Content tab

Version-Release number of selected component (if applicable):
satellite-capsule-6.10.0-0.6.beta.el7sat.noarch

How reproducible:
100%

Steps to Reproduce:
1. Create and publish an empty content view
2. 
3.

Actual results:
Shows the content view as synced to Capsule

Expected results:
Should be status not synced

Additional info:

Comment 2 Justin Sherrill 2021-09-02 18:49:36 UTC
We'll investigate as in the screenshot all cvs have zero repositories, but only some show as synced. 

To be honest, to say that a content view was or wasn't synced to a capsule  is ambiguous if its empty, as there is nothing to sync.

Comment 3 Justin Sherrill 2021-09-10 17:43:50 UTC
Actually after reviewing the UI, i'm thinking of closing this as WONTFIX. 

The content view in question is empty, and thus all its repositories have been synced to the capsule (that is to say there are no repositories to sync to the capsule). 


One question i have, in the screenshot it shows some of these empty content views as having been synced to the capsule, while others it shows as not having been synced.  I would expect them all to look the same, do you have any idea why they are different?

Comment 4 Justin Sherrill 2021-09-10 17:44:14 UTC
whoops clicked close too early :)

Comment 5 Justin Sherrill 2021-09-10 17:47:51 UTC
oh i was able to reproduce that, it turns out the zero is not correct for some of the repositories, we can fix this

Comment 6 Justin Sherrill 2021-09-10 18:19:43 UTC
Created redmine issue https://projects.theforeman.org/issues/33466 from this bug

Comment 7 Justin Sherrill 2021-09-10 18:21:02 UTC
steps to reproduce:

1.   create/sync a repo
2.   register a capsule
3.   assign it to library
4.  go to the capsule 'content' tab in capsule details
5.  expand the lifecycle env
6.  content view shows zero repositories

the same happens if published in a cv

Comment 8 Bryan Kearney 2021-09-10 20:05:18 UTC
Upstream bug assigned to jsherril

Comment 9 Bryan Kearney 2021-09-10 20:05:20 UTC
Upstream bug assigned to jsherril

Comment 12 Vladimír Sedmík 2021-10-05 09:56:38 UTC
Verified on 6.10.0 snap 21 - capsule Content page shows correct repositories count for Content Views

Comment 15 errata-xmlrpc 2021-11-16 14:13:28 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 (Moderate: Satellite 6.10 Release), 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-2021:4702


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