Bug 1144619

Summary: Removing host does not update subscriptions consumed counter
Product: Red Hat Satellite Reporter: Johan Swensson <jswensso>
Component: Subscription ManagementAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.4CC: djuran
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-26 15:31:50 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:
Bug Depends On:    
Bug Blocks: 1139277    

Description Johan Swensson 2014-09-19 22:34:00 UTC
Description of problem:
When removing a host that subscription should be available to use by another host, however it does not seem to remove the consumed subscription after deleting the host.

How reproducible:
100%

Steps to Reproduce:
1. Kickstart host from Sat6 with activation key to a RH subscription
2. After the host is deployed, delete it
3. 

Actual results:
The subscription consumed counter does not get decreased under Content->Red Hat Subscriptions

Expected results:
The consumed counter should get decreased, releasing the used subscription and making it available for use on another host.

Additional info:
PXE, libvirt compute resource

Comment 1 RHEL Program Management 2014-09-19 22:43:12 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 3 Johan Swensson 2014-09-22 11:10:55 UTC
Additional info:
The content host is indeed removed but it's subscription is still consumed after deletion.

Comment 4 Johan Swensson 2014-09-22 13:10:05 UTC
Running subscription-manager remove --all on the host as a work around before deletion is possible.

Comment 5 Johan Swensson 2014-09-22 20:01:56 UTC
Removing the content host before deleting the host also works around the problem. If the host is deleted without removing the content host the subscription remains consumed, but the content host is removed.

Comment 6 Johan Swensson 2014-11-26 15:31:50 UTC

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