Bug 1173613 - Product subscription not deleted after product delete
Summary: Product subscription not deleted after product delete
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.6
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Christine Fouant
QA Contact: Katello QA List
URL:
Whiteboard:
: 1148371 (view as bug list)
Depends On:
Blocks: 1122832
TreeView+ depends on / blocked
 
Reported: 2014-12-12 14:07 UTC by Peter Vreman
Modified: 2021-08-30 12:48 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-20 18:32:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1217053 0 None None None Never
Red Hat Product Errata RHBA-2015:0247 0 normal SHIPPED_LIVE Red Hat Satellite 6 server bug fix update 2015-02-20 23:30:44 UTC

Description Peter Vreman 2014-12-12 14:07:11 UTC
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.

Comment 1 Peter Vreman 2014-12-12 14:07:55 UTC
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

Comment 2 RHEL Program Management 2014-12-12 14:34:24 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 5 Mike McCune 2015-01-19 15:25:39 UTC
WORKAROUND:

You can run a re-index command to clean up the extra subscription:

# foreman-rake katello:reindex

Comment 7 Pavel Moravec 2015-01-26 15:55:44 UTC
*** Bug 1148371 has been marked as a duplicate of this bug. ***

Comment 9 Pavel Moravec 2015-01-29 14:10:38 UTC
(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.

Comment 10 Pavel Moravec 2015-01-29 20:51:03 UTC
Any idea why workaround could be failing for more customers?

Comment 14 Christine Fouant 2015-02-05 21:10:57 UTC
The commit reference in Comment 13 was not committed to GA release, it was pushed in on Oct 22, 2014.

Comment 18 jaudet 2015-02-11 21:17:24 UTC
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.

Comment 20 errata-xmlrpc 2015-02-20 18:32:13 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/RHBA-2015:0247


Note You need to log in before you can comment on or make changes to this bug.