Bug 1115602

Summary: [RFE] Subcription Events need to be consumed by katello
Product: Red Hat Satellite Reporter: Bryan Kearney <bkearney>
Component: Subscription ManagementAssignee: Dustin Tsang <dtsang>
Status: CLOSED DUPLICATE QA Contact: sthirugn <sthirugn>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.4CC: bbuckingham, dtsang, mmccune, sthirugn
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/6543
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-10 18:03:17 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:

Description Bryan Kearney 2014-07-02 18:00:17 UTC
Candlepin can create and delete sub-pools based on subscription events. Candlepin is now publishing these events to an AMQP Topic.

This RFE should cover the following:

1) Enhance Katello, perhaps using dynflow, to recieve these events and update the subscription list in katello.
2) Improve the subscription list to not re-poll the subscriptions in candlepin

Comment 2 Dustin Tsang 2014-07-09 14:18:37 UTC
Created redmine issue http://projects.theforeman.org/issues/6543 from this bug

Comment 3 Bryan Kearney 2014-09-24 14:02:45 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6543 has been closed
-------------
dustin tsang
Applied in changeset commit:katello-installer|f7ecd4ed301678553ea09caa1642107b49750574.

Comment 5 Dustin Tsang 2014-10-24 20:01:34 UTC
Test Steps:
1. create a new org
2. create/upload a new manifest with a rhel subscription
3. register a content host

subscription-manager register --org="mouse" --environment="Library"

4. go to the Content -> Red Hat Subscriptions ensure that the quantity consumed is 0 for the rhel subscription
5. on the content-host attach to the rhel subscription
subscription-manager attach --pool xxx

6.refresh the page on the browser
=> verify that quantity consumed has been incremented.
7. under Hosts -> Content Hosts, click on the content-host
8. under the subscriptions tab
=> verify the quantity consumed

Comment 8 sthirugn@redhat.com 2015-03-17 17:53:59 UTC
Failed as per https://bugzilla.redhat.com/show_bug.cgi?id=1202896

Comment 9 Dustin Tsang 2015-04-10 18:03:17 UTC
see https://bugzilla.redhat.com/show_bug.cgi?id=1202896#c10. Based on analysis done by Devan, closing as duplicate.

*** This bug has been marked as a duplicate of bug 1200877 ***