[Spacewalk-list] osad not working after re-registering

Glaser, David dsglaser at umich.edu
Fri Nov 12 01:49:01 UTC 2010


Just ran into this problem with our Satellite. Our problem appears to have been that the hostname was listed wrong in /etc/jabberd/*.xml . Check the files and make sure that the server names listed there match the server name listed in server.pem (the CAcert). The file that jabber points to is listed in c2s.xml with the <pemfile> stanza. In spacewalk this is usually /etc/pki/spacewalk/jabberd/server.pem I believe.

Dave

Dave Glaser
University of Michigan: LSA

From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Sean Laurent
Sent: Thursday, November 11, 2010 8:38 PM
To: spacewalk-list at redhat.com
Subject: [Spacewalk-list] osad not working after re-registering

I had a working copy of Spacewalk running CentOS 5.5 x86_64 with several clients connected to it. I then setup a new copy of CentOS on a different server and registered two of the clients with it. Both clients registered successfully and show in the new Spacewalk server. Unfortunately, osad isn't working. With the debug level cranked up to 6, I see the following messages on the client:

---snip---
# service osad start
Starting osad: 2010-11-11 19:31:07 osad._setup_config: Updating configuration
2010-11-11 19:31:07 osad._setup_config: Time drift 268
2010-11-11 19:31:07 osad._setup_config: Client name e95df18be2f52f6a
2010-11-11 19:31:07 osad._setup_config: Shared key 9306c8e03531e3786f37b0dd8d6c63e5495a80e1
2010-11-11 19:31:07 jabber_lib.setup_connection: Connecting to bilbo.studyblue.local
2010-11-11 19:31:07 jabber_lib._get_jabber_client:
2010-11-11 19:31:07 jabber_lib._get_jabber_client: Connecting to bilbo.studyblue.local
2010-11-11 19:31:07 jabber_lib.__init__:
2010-11-11 19:31:07 jabber_lib.__init__:
2010-11-11 19:31:07 jabber_lib.check_cert: Loading cert <X509Name object '/C=US/ST=WI/L=Madison/O=StudyBlue, Inc./OU=frodo.studyblue.local/CN=frodo.studyblue.local'>
2010-11-11 19:31:07 jabber_lib.connect:
2010-11-11 19:31:07 jabber_lib.connect: Attempting to connect
--> <?xml version='1.0' encoding='UTF-8'?><stream:stream to='bilbo.studyblue.local' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>

2010-11-11 19:31:07 jabber_lib.process: 300
2010-11-11 19:31:07 jabber_lib.process: before select(); timeout 299.999999046
2010-11-11 19:31:07 jabber_lib.process: select() returned
2010-11-11 19:31:07 jabber_lib._auth_dispatch: <error><host-unknown xmlns = 'urn:ietf:params:xml:ns:xmpp-streams'  /><text xmlns = 'urn:ietf:params:xml:ns:xmpp-streams' >service requested for unknown domain</text></error>
<-- <error><host-unknown xmlns = 'urn:ietf:params:xml:ns:xmpp-streams'  /><text xmlns = 'urn:ietf:params:xml:ns:xmpp-streams' >service requested for unknown domain</text></error>

2010-11-11 19:31:07 jabber_lib.connect: Connected
2010-11-11 19:31:07 jabber_lib.connect: Expecting features stanza, got: <error><host-unknown xmlns = 'urn:ietf:params:xml:ns:xmpp-streams'  /><text xmlns = 'urn:ietf:params:xml:ns:xmpp-streams' >service requested for unknown domain</text></error>
Server did not return a <features /> stanza
--> <presence type='unavailable' />

2010-11-11 19:31:07 jabber_lib.print_message: SSLError
2010-11-11 19:31:07 jabber_lib.print_message: Could not connect to jabber server bilbo.studyblue.local
Traceback (most recent call last):
  File "/usr/share/rhn/osad/jabber_lib.py", line 254, in setup_connection
    c = self._get_jabber_client(js)
  File "/usr/share/rhn/osad/jabber_lib.py", line 311, in _get_jabber_client
    c.connect()
  File "/usr/share/rhn/osad/jabber_lib.py", line 593, in connect
    raise SSLDisabledError
SSLDisabledError

2010-11-11 19:31:07 jabber_lib.setup_connection: Could not connect to any jabber server
---snip---

On the server (bilbo.studyblue.local), I see the following error in /var/log/rhn/osa-dispatcher.log:

---snip---
2010/11/11 19:35:44 -05:00 6206 0.0.0.0<http://0.0.0.0>: osad/jabber_lib.main('ERROR', 'Error caught:')
2010/11/11 19:35:44 -05:00 6206 0.0.0.0<http://0.0.0.0>: osad/jabber_lib.main('ERROR', 'Traceback (most recent call last):\n  File "/usr/share/rhn/osad/jabber_lib.py", line 120, in main\n    c = self.setup_connection(no_fork=no_fork)\n  File "/usr/share/rhn/osad/jabber_lib.py", line 288, in setup_connection\n    resource=self._resource)\n  File "/usr/share/rhn/osad/dispatcher_client.py", line 33, in start\n    self.auth(username, password, resource)\n  File "/usr/share/rhn/osad/jabber_lib.py", line 892, in auth\n    self.SendAndWaitForResponse(auth_set_iq)\n  File "/usr/lib/python2.4/site-packages/jabber/jabber.py", line 401, in SendAndWaitForResponse\n    return self.waitForResponse(ID,timeout)\n  File "/usr/share/rhn/osad/jabber_lib.py", line 1160, in waitForResponse\n    raise TimeoutError()\nTimeoutError\n')
2010/11/11 19:35:54 -05:00 6206 0.0.0.0<http://0.0.0.0>: osad/jabber_lib.__init__
2010/11/11 19:35:54 -05:00 6206 0.0.0.0<http://0.0.0.0>: osad/jabber_lib.setup_connection('Connected to jabber server', 'bilbo')
---snip---

Any suggestions?

-Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20101111/b9ec0874/attachment.htm>


More information about the Spacewalk-list mailing list