Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1416940

Summary: remove DISTINCT keyword from subscribed server counts when META DATA is fixed
Product: Red Hat Satellite 5 Reporter: Shannon Hughes <shughes>
Component: ServerAssignee: Grant Gainey <ggainey>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Hutař <jhutar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 580CC: ggainey, hartsjc, jhutar, lhellebr, rcyriac, sgraf, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-schema-2.5.1-41-sat satellite-schema-5.8.0.26-1-sat spacewalk-backend-2.5.3-107-sat Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1445404 1445406 (view as bug list) Environment:
Last Closed: 2017-06-21 12:09:55 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:
Bug Depends On:    
Bug Blocks: 1340444, 1445404, 1445406    

Description Shannon Hughes 2017-01-26 20:44:42 UTC
Description of problem:

this bz will track the fix to remove the DISTINCT that was put into place due to the upstream meta data with the server/channels in bz 1021057. While this fixed the duplicates it introduced a terrible performance penalty for larger Satellite client counts. There is more detail history in a wiki that I will post separately.

Comment 4 Grant Gainey 2017-04-12 18:51:43 UTC
Following files affected:

backend/satellite_tools/rhn-entitlement-report
backend/satellite_tools/satCerts.py
schema/spacewalk/oracle/packages/rhn_channel.pkb
schema/spacewalk/oracle/packages/rhn_entitlements.pkb
schema/spacewalk/postgres/packages/rhn_channel.pkb
schema/spacewalk/postgres/packages/rhn_entitlements.pkb

NOTE: This affects entitlement-counting. Since we don't do that any more in Spacewalk, *there is no upstream fix*

Comment 9 Lukáš Hellebrandt 2017-06-15 09:11:52 UTC
Reverified sanity-only using steps from comment 6 and automation with compose from 2017-06-09.