Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 509444

Summary: Management entitlement numbers are decreased when kvm guest profiles are deleted on virtualization page
Product: Red Hat Satellite 5 Reporter: Sayli Karmarkar <skarmark>
Component: WebUIAssignee: Shannon Hughes <shughes>
Status: CLOSED CURRENTRELEASE QA Contact: Sayli Karmarkar <skarmark>
Severity: medium Docs Contact:
Priority: high    
Version: 530CC: cperry, dgoodwin
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sat530-unconfirmed Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-28 19:49:42 UTC Type: ---
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: 456985    
Attachments:
Description Flags
screenshot of negative entitlements none

Description Sayli Karmarkar 2009-07-02 19:47:01 UTC
Description of problem:

1. Register rhel5.4-64bit kvm host to sat5.3  (test02-vmx)
2. Create couple of rhel5.4 kvm guests on it. (foobar5 and foobar7)
3. Register each of them to the satellite
4. These guests do not consume management entitlements as they use first 4 free entitlements from host.
5. Go to subscriptions page and check how many managemen entitlements are consumed.
5. Go to https://rlx-3-24.rhndev.redhat.com/rhn/systems/details/virtualization/VirtualGuestsList.do and delete one of the system using delete_systems action. 
6. Check entitlement count now. It will be decreased by one even though system did not really use any entitlements. If you keep following this procedure few more times, you will end up in seeing negative management entitlements.


Snapshot is attached.

Comment 1 Sayli Karmarkar 2009-07-02 19:48:13 UTC
Created attachment 350329 [details]
screenshot of negative entitlements

Comment 2 Shannon Hughes 2009-07-02 20:05:09 UTC
we are removing this delete_system actions from the virt page and will be relooking at it in 540. you can still correctly delete the profile from the system page itself. 

5e4b4dc66d7b8009c0ac606cacff5cd4340c5abe

Comment 3 Devan Goodwin 2009-07-03 15:07:10 UTC
Have some theories about what's going on here but the only critical question is, if you delete the server profile normally from it's SDC page, does this still cause the negative entitlements? 

Doing some testing with Xen guests today to help narrow this down.

Comment 4 Sayli Karmarkar 2009-07-03 15:14:15 UTC
(In reply to comment #3)
> Have some theories about what's going on here but the only critical question
> is, if you delete the server profile normally from it's SDC page, does this
> still cause the negative entitlements? 

Nope. It happens ONLY from host->virtualization-> delete_systems action.

Comment 5 Devan Goodwin 2009-07-03 16:10:53 UTC
Ok in that case I will leave this be as we're removing that delete functionality anyhow.

Comment 6 Sayli Karmarkar 2009-07-03 16:15:30 UTC
The behavior is same for xen guests as well. So if I perform delete systems action from virtualization page for xen guest, management and provisioning entitlement number is decreased by 1.

Comment 7 Devan Goodwin 2009-07-03 18:47:15 UTC
Were the Xen guests created from the Satellite UI, or manually and then manually registered?

Comment 8 Sayli Karmarkar 2009-07-03 19:31:47 UTC
(In reply to comment #7)
> Were the Xen guests created from the Satellite UI, or manually and then
> manually registered?  

from Satellite UI.

Comment 9 Shannon Hughes 2009-07-06 15:16:40 UTC
mass move to onqa

Comment 10 Sayli Karmarkar 2009-07-06 17:14:01 UTC
verified. delete_systems action is removed from virtualization tab and system delete from SDC and SSM is not decrementing entitlement count after removing kvm or xen guests consuming free entitlements from host. Moving to verified.