[Spacewalk-list] client addition fails

Jim Kinney jim.kinney at gtri.gatech.edu
Thu Jun 9 20:14:05 UTC 2011


more digging in the gui reveals the system thinks there are 0
entitlements available.

Entitlement Counts
Base Entitlements
Update: 	0 systems entitled, 0 available entitlements (0 total)
Management: 	0 systems entitled, 0 available entitlements (0 total)
Add-On Entitlement
Provisioning: 	0 systems entitled, 0 available entitlements (0 total)
Monitoring: 	0 systems entitled, 0 available entitlements (0 total)
Virtualization: 	0 systems entitled, 0 available entitlements (0 total)
Virtualization Platform: 	0 systems entitled, 0 available entitlements
(0 total)

Elsewhere I see things set to 20000.

On 06/09/2011 02:58 PM, Jim Kinney wrote:
> Adding a fedora14 client to a 1.4 spacewalk/postgres on rhel6 fails with
> a database error.
> 
> Exception reported from stl-spacewalk.stl.gtri.gatech.edu
> Time: Thu Jun  9 14:51:33 2011
> Exception type <class 'psycopg2.InternalError'>
> Exception while handling function registration.new_system
> Request object information:
> URI: /XMLRPC
> 
> <snip>
> 
> Exception Handler Information
> Traceback (most recent call last):
>   File
> "/usr/lib/python2.6/site-packages/spacewalk/server/apacheRequest.py",
> line 119, in call_function
>     response = apply(func, params)
>   File "/usr/share/rhn/server/handlers/xmlrpc/registration.py", line
> 487, in new_system
>     architecture, data)
>   File "/usr/share/rhn/server/handlers/xmlrpc/registration.py", line
> 394, in create_system
>     newserv.use_token()
>   File
> "/usr/lib/python2.6/site-packages/spacewalk/server/rhnServer/server_class.py",
> line 346, in use_token
>     tokens_obj, self.virt_type)
>   File
> "/usr/lib/python2.6/site-packages/spacewalk/server/rhnServer/server_token.py",
> line 1021, in process_token
>     tokens_obj.entitle(server_id, history, virt_type)
>   File
> "/usr/lib/python2.6/site-packages/spacewalk/server/rhnServer/server_token.py",
> line 635, in entitle
>     entitle_server(server_id, entitlement[0])
>   File
> "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py",
> line 106, in __call__
>     result = Function.__call__(self, *args)
>   File
> "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py",
> line 84, in __call__
>     ret = self.cursor.execute(query, args)
> InternalError: -20220 : (servergroup_max_members) - Server group
> membership cannot exceed maximum membership
> CONTEXT:  SQL statement "SELECT
> rhn_exception.raise_exception('servergroup_max_members')"
> PL/pgSQL function "insert_into_servergroup" line 60 at PERFORM
> SQL statement "SELECT  rhn_server.insert_into_servergroup ( $1 ,  $2 )"
> PL/pgSQL function "entitle_server" line 39 at PERFORM
> 

-- 
Jim Kinney
Signature Technologies Lab
404-407-7967




More information about the Spacewalk-list mailing list