Bug #7446
closedDeleting a foreman host doesn't clean up subscription usage
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1140653
Description of problem:
When deleting a host through Foreman, the content host is deleted correctly but the subscription remains in use.
Version-Release number of selected component (if applicable):
6.0.4 GA (and Katello nightly)
How reproducible:
Always
Steps to Reproduce:
1. Provision a Foreman host that will have content
2. Look at 'Red Hat Subscriptions' page counts, and verify some subscriptions are in use
3. Delete the host through "All Hosts" UI
4. Confirm 'Host' and 'Content Host' are removed
5. Reload 'Red Hat Subscriptions' page
Actual results:
Subscription counts aren't updated (even after running katello:reindex)
Expected results:
Subscriptions are correctly made available
Additional info: