[Spacewalk-list] Re: entitlements exhausted error

Michael Mraka michael.mraka at redhat.com
Mon Oct 26 09:16:35 UTC 2009


Daniel Wittenberg wrote:
% More interesting info, I see now from the System Entitlements page,
% everything is 0.  So I started looking at the certs:
% 
% /etc/sysconfig/rhn/rhn-entitlement-cert.xml
% 
% and that looks good, all the numbers are 20000, and when I run a sanity
% check:
% 
%  rhn-satellite-activate -v --sanity-only
% --rhn-cert=/usr/share/spacewalk/setup/spacewalk-public.cert
% 
% That shows ok, and I tried to re-activate that cert and looks good, no
% errors:
% 
% # rhn-satellite-activate -v --disconnected
% --rhn-cert=`pwd`/spacewalk-public.cert
% HTTP_PROXY: None
% HTTP_PROXY_USERNAME: None
% HTTP_PROXY_PASSWORD: <password>
% CA_CERT: /usr/share/rhn/RHNS-CA-CERT
% Checking cert XML sanity and GPG signature:
% '/usr/bin/validate-sat-cert.pl
% --keyring /etc/webapp-keyring.gpg /etc/sysconfig/rhn/rhn-entitlement-cert.xml-11730-1256319651.53521204'
% Database connectioned initialized: refer to /etc/rhn/rhn.conf
% Attempting local RHN Certificate push (and therefore activation)

After this you should see 20000 System Entitlements in webUI.


You can try to delete old certificates directly from database and
activate it again.
# sqlplus $(spacewalk-cfg-get default_db)
SQL> delete from rhnSatelliteCert;
SQL> commit;
SQL> quit
# rhn-satellite-activate -v --disconnected --rhn-cert=/usr/share/spacewalk/setup/spacewalk-public.cert

--
Michael Mráka
Satellite Engineering, Red Hat




More information about the Spacewalk-list mailing list