Bug 1148371

Summary: Loading 'Red Hat Subscription' page adds unexpected Subscription entry which shows Product registered by customer, and that remained after removing registered Products.
Product: Red Hat Satellite Reporter: Masaki Furuta ( RH ) <mfuruta>
Component: WebUIAssignee: Tom McKay <tomckay>
WebUI sub component: Katello QA Contact: Katello QA List <katello-qa-list>
Status: CLOSED DUPLICATE Docs Contact:
Severity: medium    
Priority: medium CC: bbuckingham, cwelton, katello-bugs, kmurugad, pmoravec, tomckay
Version: 6.0.5Keywords: Triaged
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-26 15:55:44 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:

Comment 2 RHEL Program Management 2014-10-01 10:13:25 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 6 Pavel Moravec 2015-01-14 12:37:40 UTC
Potential fix:

/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/actions/katello/product/create.rb:

comment out lines:

#          plan_action(::Actions::Candlepin::Product::CreateUnlimitedSubscription,
#                      :owner_key => organization.label,
#                      :product_id => cp_id)

But I am not sure if this is not rather hiding the problem..

Comment 7 Pavel Moravec 2015-01-15 08:56:11 UTC
Interesting observation:

scenario "create product via WebUI and immediate delete it" does _not_ create the orphaned subscription. One has to refresh subscriptions page in the WebUI meantime.

Comment 8 Tom McKay 2015-01-15 16:53:04 UTC
When creating a "custom product" a new subscription of unlimited quantity will also become available in the subscriptions list. This subscription is for use on content hosts that wish to consume the repos in this custom product.

There was a bug where the subscriptions would not be indexed for search properly which would lead to differing visible results (this will be fixed in Satellite-6.1). A work-around to confirm is to run the 'foreman-rake katello:reindex' which would update all of the search index.

Comment 9 Pavel Moravec 2015-01-26 15:55:44 UTC
Closing this as duplicate of 1173613.

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