Bug 646775 - Misleading number of enterprise_entitled required when rhn-satellite-activate
Summary: Misleading number of enterprise_entitled required when rhn-satellite-activate
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 540
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Jan Pazdziora
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat541-triage
TreeView+ depends on / blocked
 
Reported: 2010-10-26 07:50 UTC by Šimon Lukašík
Modified: 2012-03-08 09:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-23 13:33:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Šimon Lukašík 2010-10-26 07:50:32 UTC
Description of problem:
Activation of satellite with huge db fail when using insufficient
certificate.  But the error listed looks suspicious.

Version-Release number of selected component (if applicable):
Sat530+, Sat540

How reproducible:
deterministic

Steps to Reproduce:
1. Have a large database
2. rhn-satellite-activate with 'lite' cert.
3.
  
Actual results:
Error: You do not have enough unused enterprise_entitled entitlements
in the base org. You will need at least 394374 free entitlements,
based on your current consumption. Please un-entitle the remaining
systems for the activation to proceed.

Expected results:
I have about 26000 system registered, therefore I would expect that I need
26000 management entitlements.


Additional info:

Comment 4 Jan Pazdziora 2011-12-05 11:00:00 UTC
The problem was introduced by

  commit 480b60089dc138840d769f07563622a77ce5f71c
  Author: Pradeep Kilambi <pkilambi>
  Date:   Wed May 27 17:04:03 2009 -0400

which was presumably a fix for bug 498517 (fixing the error message to show the needed free entitlements for the activation to proceed). However, the arithmetics does not take used entitlements into account, it merely uses all existing entitlements and substracts the new entitlement value.


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