Bug 1291639

Summary: The "Sync plans" page display incorrect number of repositories in the product
Product: Red Hat Satellite Reporter: Ranjan Kumar <rankumar>
Component: RepositoriesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Sachin Ghai <sghai>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1.2CC: arahaman, bbuckingham, sghai, sthirugn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:25:11 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:
Attachments:
Description Flags
on List/remove tab, repo count is '2' none

Description Ranjan Kumar 2015-12-15 11:21:09 UTC
Description of problem:
Product tab on the "Sync plans" page display incorrect repository count.

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

How reproducible:
Always

Steps to Reproduce:
1. Create a sync plan 
2. Add any product to the sync plan, navigate to Products -> Add -> Select "Red Hat Enterprise Linux Server" product and click on "Add Selected"
3. Navigate to the "List/Remove" under the Products tab of the sync plan.
4. Repository count displayed on the page higher compare to actual.

Actual results:
Repository count is listed incorrect for the product in the sync plan.

Expected results:
Repository count should be listed correctly.

Comment 3 Brad Buckingham 2016-04-13 19:32:00 UTC
With Satellite 6.2 Beta Snap 7, I am no longer seeing the behavior described; therefore, I am going to move this one to ON_QA for verification.

I was not able to locate a duplicate BZ; therefore, this was likely fixed upstream.

When verifying the bug, I would recommend ensuring that the repository was synced, added to a content view and that the content view was published and promoted.  I suspect that the count was previously accounting for the multiple instances of a given repository as it moved through the lifecycle environments.

Comment 4 Sachin Ghai 2016-06-29 07:02:38 UTC
Verified with sat62 GA snap17.

To reproduce this bz, we synced two repos rhel 7Server, and KS7.2 from "Red Hat Enterprise Linux Server" product. I published and promoted to two different environments

Later, created a sync plan -> products -> add ->  "Red Hat Enterprise Linux Server" ( with repository count '2')

Verified on  sync plan -> products -> List/remove -> "Red Hat Enterprise Linux Server" ( with repository count '2')

Please see the screenshots for verification.

Comment 6 Sachin Ghai 2016-06-29 07:05:06 UTC
Created attachment 1173690 [details]
on List/remove tab, repo count is '2'

Comment 7 Bryan Kearney 2016-07-27 11:25:11 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/RHBA-2016:1501