Project

General

Profile

Actions

Bug #7446

closed

Deleting a foreman host doesn't clean up subscription usage

Added by Partha Aji about 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
medium
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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:

Actions

Also available in: Atom PDF