Bug 68347
Summary: | rhn_check is broken [AttributeError: 'module' object has no attribute 'getServer'] | ||
---|---|---|---|
Product: | [Retired] Red Hat Public Beta | Reporter: | Markku Kolkka <markku.kolkka> |
Component: | up2date | Assignee: | Adrian Likins <alikins> |
Status: | CLOSED RAWHIDE | QA Contact: | Jay Turner <jturner> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | limbo | CC: | aleksey, gafton, mihai.ibanescu, nwsmith, srevivo |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-08-19 18:58:27 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 67217 |
Description
Markku Kolkka
2002-07-09 13:40:05 UTC
*** Bug 68301 has been marked as a duplicate of this bug. *** fixed in cvs I upgraded to up2date-2.9.17-7.x.9 from ftp://people.redhat.com/misa/fixes, and rhn_check is still broken, but with different error messages: # rhn_check -v /usr/sbin/rhn_check:0: SyntaxWarning: name 'ACTION_VERSION' is assigned to before global declaration /usr/sbin/rhn_check:0: SyntaxWarning: name 'Status' is assigned to before global declaration Adding cert <X509Name object '/C=US/ST=North Carolina/L=Research Triangle Park/O=Red Hat, Inc./OU=Red Hat Network Services/CN=RHNS Certificate Authority/Email=rhns'> Adding cert <X509Name object '/C=US/ST=North Carolina/L=Research Triangle Park/O=Red Hat, Inc./OU=Red Hat Network Services/CN=RHNS Certificate Authority/Email=rhns'> Traceback (most recent call last): File "/usr/sbin/rhn_check", line 262, in ? action = server.queue.get(up2dateAuth.getSystemId(), ACTION_VERSION, Status) File "/usr/lib/python2.2/xmlrpclib.py", line 821, in __call__ return self.__send(self.__name, args) File "/usr/lib/python2.2/site-packages/rhn/rpclib.py", line 122, in _request verbose=self._verbose File "/usr/lib/python2.2/site-packages/rhn/transports.py", line 117, in request headers, fd = req.send_http(host, handler) File "/usr/lib/python2.2/site-packages/rhn/transports.py", line 563, in send_http self._connection.connect() File "/usr/lib/python2.2/site-packages/rhn/connections.py", line 172, in connect self.sock.init_ssl() File "/usr/lib/python2.2/site-packages/rhn/SSL.py", line 90, in init_ssl store.add_cert(cert) crypto.Error: [('x509 certificate routines', 'X509_STORE_add_cert', 'cert already in hash table')] Check what version of rhnlib you are using. I think I have seen an rhnlib bug elsewhere on bugzilla/limbo mailling list somewhat similar to that. rhnlib-0.8-8 Just tried rhn_check -v with up2date-2.9.20 and rhnlib-0.8.10 from ftp://people.redhat.com/misa/fixes/ and it is still broken as per markku.kolkka's comment. (But up2date -p seems fixed ok) just tracked this down, apparently adding the same cert to a server twice breaks things. Just fixed this in rhn_check, though I might consider this a bug against rhnlib. But closing this one out, since it's getting away from $SUMMARY should be fixed in 2.9.26 or higher I have now installed up2date-2.9.28 and rhnlib-0.8.11 If I try: #rhn_check -v I now just get: /usr/sbin/rhn_check:0: SyntaxWarning: name 'ACTION_VERSION' is assigned to before global declaration /usr/sbin/rhn_check:0: SyntaxWarning: name 'Status' is assigned to before global declaration with no Python traceback. Yes, it does work (although it still prints the warnings). With rhnlib-0.8-11 and up2date-2.9.30-7.x.9, I get (after scheduling a package refresh): # rhn_check -v /usr/sbin/rhn_check:0: SyntaxWarning: name 'ACTION_VERSION' is assigned to before global declaration /usr/sbin/rhn_check:0: SyntaxWarning: name 'Status' is assigned to before global declaration Adding cert <X509Name object '/C=US/ST=North Carolina/L=Research Triangle Park/O=Red Hat, Inc./OU=Red Hat Network Services/CN=RHNS Certificate Authority/Email=rhns'> Adding cert <X509Name object '/C=US/ST=North Carolina/L=Research Triangle Park/O=Red Hat, Inc./OU=Red Hat Network Services/CN=RHNS Certificate Authority/Email=rhns'> handle_action actionid = 5245508, version = 2 Adding cert <X509Name object '/C=US/ST=North Carolina/L=Research Triangle Park/O=Red Hat, Inc./OU=Red Hat Network Services/CN=RHNS Certificate Authority/Email=rhns'> Sending back response: (0, 'rpmlist refreshed', {}) Adding cert <X509Name object '/C=US/ST=North Carolina/L=Research Triangle Park/O=Red Hat, Inc./OU=Red Hat Network Services/CN=RHNS Certificate Authority/Email=rhns'> Adding cert <X509Name object '/C=US/ST=North Carolina/L=Research Triangle Park/O=Red Hat, Inc./OU=Red Hat Network Services/CN=RHNS Certificate Authority/Email=rhns'> Reopening as I'm getting the following when running 'rhn_check -v' with up2date-2.9.46-1: [haring (root):~]# rhn_check -v /usr/sbin/rhn_check:0: SyntaxWarning: name 'ACTION_VERSION' is assigned to before global declaration /usr/sbin/rhn_check:0: SyntaxWarning: name 'Status' is assigned to before global declaration fixed in 2.9.52 or so |