Bug 1401224

Summary: Hosts managed by capsule lists all hosts managed by all satellite & capsules
Product: Red Hat Satellite Reporter: Pradeep Kumar Surisetty <psuriset>
Component: CapsuleAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: high Docs Contact:
Priority: high    
Version: 6.2.4CC: dlobatog, ehelms, jcallaha, kbidarka, lhellebr, mverma, shisingh
Target Milestone: UnspecifiedKeywords: Triaged
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-02-21 17:31:03 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:

Description Pradeep Kumar Surisetty 2016-12-03 17:15:50 UTC
Description of problem:

Added 3000 content hosts  to different capsuels.
When I click at  ""Hosts managed" link on a capsule detail page, its listing all nodes managed by all capsules. 
 
Version-Release number of selected component (if applicable):


How reproducible:

Steps to Reproduce:
1. Have a Sat and capsule
2. Infrastructure -> Capsules -> <capsule> -> click to link next to
   "Hosts managed" (It shows only number 1, but when i click it, it lists all hosts managed by all capsules 




Actual results:


Expected results:


Additional info:

Comment 1 Daniel Lobato Garcia 2016-12-06 01:17:09 UTC
Triaged on 1.14 develop and it worked fine - I'll triage this on 1.13 and if it does work there I'll put on POST for 6.3

Comment 2 Daniel Lobato Garcia 2016-12-06 14:17:03 UTC
1.13-stable of Foreman has this - so I'm putting this as candidate for 6.3

Comment 4 Daniel Lobato Garcia 2016-12-06 14:27:46 UTC
Oops, I changed the version to 6.3 by mistake. Back to 6.2.4

Comment 5 Pradeep Kumar Surisetty 2017-01-15 01:47:03 UTC
This issues is noticed in 6.2.6 too. Not sure if it was fixed in 6.2.4

Comment 7 Brad Buckingham 2017-09-19 16:45:52 UTC
*** Bug 1469427 has been marked as a duplicate of this bug. ***

Comment 8 Lukáš Hellebrandt 2017-10-13 13:35:10 UTC
Verified with Sat6.3 snap 19.

Note the reproducer from OP is incorrect. The list isn't supposed to show host registered through the Capsule. In fact, it lists hosts that have the Capsule set as their Puppet master. Actual reproducer is:

1) Have a Satellite and at least one aditional Capsule
2) Register a host through a Capsule
3) Edit the host in WebUI, set its puppet environment and puppet master = Capsule
4) Infrastructure -> Capsules -> <capsule> -> Hosts managed

=> The list of hosts of which the capsule is puppet master. Verified that it indeeds contains only these hosts, not all hosts.

Comment 9 Bryan Kearney 2018-02-21 17:31:03 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