Bug 243738 - Channel Subscriptions Exceeding Limit
Channel Subscriptions Exceeding Limit
Status: CLOSED CURRENTRELEASE
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Registration (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Clifford Perry
Corey Welton
:
: 246471 (view as bug list)
Depends On:
Blocks: 248627
  Show dependency treegraph
 
Reported: 2007-06-11 12:39 EDT by John Sanda
Modified: 2008-04-02 20:17 EDT (History)
1 user (show)

See Also:
Fixed In Version: sat510
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-04-02 20:17:39 EDT
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)
Comment 1 Brandon Perkins 2007-07-18 12:13:57 EDT
*** Bug 246471 has been marked as a duplicate of this bug. ***
Comment 2 James Slagle 2007-09-13 16:52:04 EDT
[packages]$ svn diff
Index: rhn_channel.pkb
===================================================================
--- rhn_channel.pkb     (revision 131533)
+++ rhn_channel.pkb     (working copy)
@@ -139,6 +139,11 @@
          FROM rhnServer
         WHERE id = server_id_in;
         
+    select current_members 
+    from rhnPrivateChannelFamily
+    where org_id = org_id_in and channel_family_id = channel_family_id_val
+    for update of current_members;
+
        available_subscriptions :=
rhn_channel.available_family_subscriptions(channel_family_id_val,
server_org_id_val);
 
        IF available_subscriptions IS NULL OR 
[packages]$ svn ci
Sending        packages/rhn_channel.pkb
Transmitting file data .
Committed revision 131673.
Comment 3 James Slagle 2007-09-13 17:02:26 EDT
testplan
========
To test this, get a satellite set up so that it has exactly 1 subscription
available of the channel you want to test with.

Register 4 systems at exactly the same time.  The best way to do this is to call
up2date.py 4 times in a row from a bash script and running each command in the
background (&).

1 and exactly 1 system should get registered each time you perform the test. 
The other 3 should fail with the Error Class Code: 70  All available
subscriptions for the requested channel have been exhausted exception.
Comment 4 Corey Welton 2007-10-17 15:58:44 EDT
QA Verified; ran this test attempting four simultaneous registrations; the first
one works and subsequent others don't.
Comment 6 Red Hat Bugzilla 2007-10-25 20:52:27 EDT
User jslagle@redhat.com's account has been closed
Comment 7 Devan Goodwin 2008-03-19 09:35:51 EDT
Using the up2date.py method verified against stage by:

* Reducing core server allocation for my org to one more than was currently used.
* Spawning 4 fake system registrations using the above method.

Result:

Only one system appeared in satellite, correct number of entitlements used in
satellite, and three error msgs on the console where the test was run.

Release pending.
Comment 8 Brandon Perkins 2008-04-02 20:17:39 EDT
5.1 Sat GA so Closed for Current Release.

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