Description of problem: The subscription created for a Product is not deleted when the product is deleted. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Goto Products and Create Product Dummy1 2. Goto RedHat Subscriptions, make sure Dummy1 subscription is created 3. Goto Products and Delete Product Dummy1 4. Goto Subscriptions, the Dummy1 subscription is still available Actual results: The subscription is not deleted Expected results: The subscription is deleted Additional info: The Dynflow console shows an action to delete subscriptions, but somehow this is not being done.
Dynflow Console output: Status: stopped Result: success Started at: 2014-12-12 13:50:43 UTC Ended at: 2014-12-12 13:50:45 UTC Plan Run Finalize sequence concurrence 3: Actions::Candlepin::Product::DeletePools (success) [ 0.68s / 0.68s ] 5: Actions::Candlepin::Product::DeleteSubscriptions (success) [ 1.48s / 0.97s ] Started at: 2014-12-12 13:50:43 UTC Ended at: 2014-12-12 13:50:45 UTC Real time: 1.48s Execution time (excluding suspended state): 0.97s Input: --- cp_id: '1418391997927' organization_label: Hilti remote_user: hoici-b11965af locale: en Output: --- task: id: refresh_pools_6bac0d9e-e342-48de-84a1-a82cf99ff2e9 state: FINISHED startTime: '2014-12-12T13:50:44.490+0000' finishTime: '2014-12-12T13:50:45.020+0000' result: Pools refreshed for owner Hilti principalName: hoici-b11965af targetType: owner targetId: Hilti done: true group: async group statusPath: /jobs/refresh_pools_6bac0d9e-e342-48de-84a1-a82cf99ff2e9 created: '2014-12-12T13:50:44.486+0000' updated: '2014-12-12T13:50:45.055+0000' poll_attempts: total: 1 failed: 0 7: Actions::Candlepin::Product::Destroy (success) [ 0.11s / 0.11s ] Back
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.
WORKAROUND: You can run a re-index command to clean up the extra subscription: # foreman-rake katello:reindex
*** Bug 1148371 has been marked as a duplicate of this bug. ***
(In reply to Mahesh Taru from comment #6) > Hello, > > I tried to reproduce issue and it fixed with 'foreman-rake katello:reindex' > but for customer it is not working and still facing same issue. > Customer also tried applying latest patches and satellite reboot. > > Thank you. Same issue here (sfdc 01332743), workaround did not help to remove orphaned subscriptions.
Any idea why workaround could be failing for more customers?
Fixed by https://github.com/Katello/katello/commit/26e6f1736d78a36b6d5cee2a1db17ce9839d19c2
The commit reference in Comment 13 was not committed to GA release, it was pushed in on Oct 22, 2014.
Verified according to the procedure outlined in Comment 0. Verified against four Satellite 6.0.8 applications, two of which are running on RHEL 6.6, and two of which are running on RHEL 7.0.
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-2015:0247