Red Hat Bugzilla – Bug 505336
registration after kickstart fails for 2.1 machines
Last modified: 2009-09-10 15:26:18 EDT
register a box
kickstart it using a 2.1 kickstart profile
registration in the %post section will fail:
We are out of serverUrl's to try. We tried:
Traceback (innermost last):
File "/usr/sbin/rhnreg_ks", line 328, in ?
File "/usr/sbin/rhnreg_ks", line 297, in main
profileName = profilename)
File "/usr/share/rhn/register/rhnreg.py", line 685, in registerSystem
File "/usr/share/rhn/register/rhnreg.py", line 173, in doCall
ret = apply(method, args)
File "/usr/lib/python1.5/site-packages/rhn/_internal_xmlrpclib.py", line 984, in __call__
return self.__send(self.__name, args)
File "/usr/share/rhn/register/rhnreg.py", line 409, in _request1
ret = self._request(methodname, params)
File "/usr/lib/python1.5/site-packages/rhn/rpclib.py", line 308, in _request
File "/usr/lib/python1.5/site-packages/rhn/transports.py", line 168, in request
headers, fd = req.send_http(host, handler)
File "/usr/lib/python1.5/site-packages/rhn/transports.py", line 695, in send_http
File "/usr/lib/python1.5/site-packages/rhn/_httplib.py", line 549, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python1.5/site-packages/rhn/_httplib.py", line 565, in _send_request
File "/usr/lib/python1.5/site-packages/rhn/_httplib.py", line 465, in putrequest
File "/usr/lib/python1.5/site-packages/rhn/_httplib.py", line 419, in send
File "/usr/lib/python1.5/site-packages/rhn/SSL.py", line 205, in write
sent = self._connection.send(data)
SSL.Error: [('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')]
ERROR: unable to read system id.
It looks like the sslCACert option isn't being updated in /etc/sysconfig/rhn/up2date. Even though the option in /etc/sysconfig/rhn/rhn_register is being updated,registration still fails
this will probably fix the issue:
perl -npe 's/RHNS-CA-CERT/RHN-ORG-TRUSTED-SSL-CERT/g' -i /etc/sysconfig/rhn/*
VERIFIED on 7/7 build.
RELEASE_PENDING from latest Stage build.
As per cperry and mmccune's decision, we no longer support kickstarting to 2.1 via Satellite 530, though we do support kickstarting from 2.1 to newer versions of RHEL.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.