Bug 1005178 - activation with certificate do not transfer all entitlements from it to DB
Summary: activation with certificate do not transfer all entitlements from it to DB
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 560
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat560-blockers
TreeView+ depends on / blocked
 
Reported: 2013-09-06 11:22 UTC by Jan Hutař
Modified: 2013-09-11 08:41 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-11 08:41:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Hutař 2013-09-06 11:22:44 UTC
Description of problem:
I have activated Satellite with this certificate:

# grep '"rhel-server"' rhn.cert 
  <rhn-cert-field name="channel-families" quantity="52502" flex="50000" family="rhel-server"/>

but after that in webUI I see only:

Overview -> Subscription Management -> Software Channel Entitlements
-> filter "core server":
  Regular Consumed: 0
  Regular Available: 61
  Consumed Flex Guests: 0
  Available Flex Guests: 2950
  Systems Subscribed: 0

And same number in DB:
rhnschema=# select id,name,label from rhnchannelfamily where label = 'rhel-server';
  id  |                  name                  |    label    
------+----------------------------------------+-------------
 1048 | Red Hat Enterprise Linux (core server) | rhel-server
(1 row)

rhnschema=# select * from rhnprivatechannelfamily where channel_family_id = 1048;
 channel_family_id | org_id | max_members | current_members | fve_max_members | fve_current_members |           created            |           modified      
      
-------------------+--------+-------------+-----------------+-----------------+---------------------+------------------------------+-------------------------
------
              1048 |      1 |          61 |               0 |            2950 |                   0 | 2013-09-02 03:17:38.75829-04 | 2013-09-06 07:11:43.9776
46-04
(1 row)


Version-Release number of selected component (if applicable):
spacewalk-backend-tools-2.0.3-12.el6sat.noarch
spacewalk-schema-2.0.2-11.el6sat.noarch
satellite-schema-5.6.0.10-1.el6sat.noarch


How reproducible:
always


Steps to Reproduce:
1. # rhn-satellite-activate -vv --rhn-cert rhn.cert
2. # grep '"rhel-server"' rhn.cert
3. Overview -> Subscription Management -> Software Channel Entitlements
   -> filter "core server"


Actual results:
Activation works but numbers do not match to me.


Expected results:
Numbers should make sense.

Comment 1 Jan Hutař 2013-09-06 11:30:51 UTC
I have just discovered that when I do activate with --disconnected, numbers are OK, so I'm probably hitting size of mine account on Hosted. Is that possible?

Comment 2 Clifford Perry 2013-09-09 08:53:35 UTC
(In reply to Jan Hutař from comment #1)
> I have just discovered that when I do activate with --disconnected, numbers
> are OK, so I'm probably hitting size of mine account on Hosted. Is that
> possible?

Doubtful ... 

Needs investigating

Comment 3 Jan Hutař 2013-09-09 09:55:51 UTC
As per Cliff's idea I do verify that initial buggy numbers in webUI ("Regular Available: 61") comes from certificate activated on the Satellite before which had:

[...]
  <rhn-cert-field name="channel-families" quantity="3061" flex="3000" family="rhel-server"/>
[...]

(flexs do not match but I might have there some org with 10 flexs allocated or something?)


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