Bug 145537 - Expiring entitlements
Expiring entitlements
Status: CLOSED CURRENTRELEASE
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Other (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Miroslav Suchý
Red Hat Satellite QA List
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-01-19 10:05 EST by Jack Neely
Modified: 2011-01-26 09:20 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-01-21 02:45:38 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jack Neely 2005-01-19 10:05:59 EST
When managing large organizations with many admins of different levels
I have a big problem with folks that reinstall machines for whatever
reason but leaving the old entitlement in RHN.  

Its pretty clear how this may affect billing.  Including billing where
the Office of the President charges NCSU who charges each College
which, in turn, charges departments and research groups.

I would like to suggest that entitlements where the coresponding
machine has not checked in in X days be removed from RHN.  The time
frame should be configurable.  (Never or X number of days.)  This
feature should be configurable both at a site-wide level and
individual groups.
Comment 1 Jack Neely 2005-01-19 10:09:43 EST
Ah, as an example:

The UNC System's RHN account currently has 1466 entitlements.  498 of
them are "inactive."  That's 34%.  
Comment 2 Joe deBlaquiere 2005-01-19 15:26:44 EST
We have generally avoided trying to put a policy in place as every
customer tends to have different requirements for this. Some want it
based on time, some customers want a set of systems that they never
want deleted. 

I'll escalate this to our feature queue.

FYI : you should be able to implement this through RHN XMLRPC APIs to
whatever policy you would like. 

check out:

https://rhn.redhat.com/rpc/api/system/list_user_systems/
https://rhn.redhat.com/rpc/api/system/delete_systems/

If you need help with APIs, you can of course contact Red Hat Support
Services, who can even provide you with example scripts which use
these APIs.
Comment 5 Miroslav Suchý 2011-01-21 02:45:38 EST
You can do this using script
 delete-old-systems-interactive
from package
 spacewalk-utils

It is already in RHN Satellite 5.4

you can run it as:
 delete-old-systems-interactive.pl -f --idle 20d

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