Bug 440293 - Another error in sending back a message to the client when they run out of entitlements
Summary: Another error in sending back a message to the client when they run out of en...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Network
Classification: Retired
Component: RHN/Backend
Version: RHN Stable
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Bryan Kearney
QA Contact: Amy Owens
URL:
Whiteboard: US=20401
Depends On:
Blocks: 443075
TreeView+ depends on / blocked
 
Reported: 2008-04-02 17:28 UTC by James Bowes
Modified: 2013-01-10 09:58 UTC (History)
2 users (show)

Fixed In Version: 5.0.6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-26 20:21:33 UTC
Embargoed:


Attachments (Terms of Use)

Description James Bowes 2008-04-02 17:28:46 UTC
Aowens generated the following traceback while registering against QA with no
free entitlements:

Traceback (most recent call last):
  File "/usr/share/rhn/server/apacheRequest.py", line 106, in call_function
    response = func(*params)
  File "/usr/share/rhn/server/handlers/xmlrpc/registration.py", line 554, in new
_system_user_pass
    other)
  File "/usr/share/rhn/server/handlers/xmlrpc/registration.py", line 391, in _cr
eate_system
    err_msg = _generate_channel_ent_err_mesg(channel_error)
  File "/usr/share/rhn/server/handlers/xmlrpc/registration.py", line 1428, in _g
enerate_channel_ent_err_mesg
    cid = channel_error.channel['id']
TypeError: unsubscriptable object

channel_error is an rhnChannel.SubscriptionCountExceeded Exception. self.channel
on the exception is None. Maybe it is set by something else along the way, but
not in this case.

Comment 1 Amy Owens 2008-04-02 18:40:22 UTC
added to backlog

Comment 2 James Bowes 2008-04-21 12:25:43 UTC
To test:
  * you need an account with enough management/update entitlements, but not enough  
    channel level entitlements. using 1 WAR0086 sku should do it.
  * Repeatedly register your system till you are out of channel level
entitlements, but still have a management entitlement.
  * register again. this time you should get an error detailing what channel you
were trying to be subscribed to, and saying you didn't have enough software
channel entitlements.

Comment 3 Amy Owens 2008-04-21 16:01:04 UTC
all set on dev (will add to test cases):
Problem registering system:                ↑ │                
                │                                            ▮ │                
                │ Error Message:                             ▒ │                
                │     Insufficient Software Channel          ▒ │                
                │ Entitlements:                              ▒ │                
                │                                            ▒ │                
                │     cfid5488  Red Hat Enterprise Linux     ▒ │                
                │ (core server)                              ▒ │                
                │                                            ▒ │                
                │ note: One of the above Software Channel    ▒ │                
                │ Entitlement(s) are required                ▒ │                
                │ to provides access to: cid6949 Red Hat 

Comment 4 Amy Owens 2008-06-17 20:22:10 UTC
ok in qa now:
Error Message:
    Insufficient Software Channel Entitlements:
 
    cfid5488  Red Hat Enterprise Linux (core server)

note: One of the above Software Channel Entitlement(s) are required
to provides access to: cid6949 Red Hat Enterprise Linux (v. 5 for 32-bit x86)
Error Class Code: 70
Error Class Info: 
     All available subscriptions for the requested channel have been exhausted.
     Please contact a Red Hat Network Sales associate.
Explanation: 
     An error has occurred while processing your request. If this problem
     persists please enter a bug report at bugzilla.redhat.com.
     If you choose to submit the bug report, please be sure to include
     details of what you were trying to do when this error occurred and
     details on how to reproduce this problem.



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