Bug 759406

Summary: osa-dispatcher attempts to connect before jabberd is ready
Product: [Community] Spacewalk Reporter: Šimon Lukašík <slukasik>
Component: ServerAssignee: Šimon Lukašík <slukasik>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.6CC: jpazdziora, mmraka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-16 10:32:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 723481    

Comment 1 Jan Pazdziora 2011-12-09 14:50:57 UTC
Public summary:

Description of problem:
Upon `rhn-satellite` the osa-dispatcher attempts to connect to jabberd
server. The osa-dispatcher except to receive <features> stanza to
negotiate SSL connection. However, when jabberd is freshly started
and not fully operational it instead responds with:

  <error><host-gone xmlns = 'urn:ietf:params:xml:ns:xmpp-streams'  />
    <text xmlns = 'urn:ietf:params:xml:ns:xmpp-streams' >
      session manager for requested domain is not available
    </text>
  </error>

Version-Release number of selected component (if applicable):
Spacewalk Nightly on RHEL5
jabberd-2.2.11-3.el5
osa-dispatcher-5.10.27-1.el5

How reproducible:
deterministic


Steps to Reproduce:
1. tail -f /var/log/rhn/osa-dispatcher.log
2. rhn-satellite (re)start
3.

Actual results:
2011/12/01 08:20:32 -04:00 26887 0.0.0.0: osad/jabber_lib.__init__
2011/12/01 08:20:32 -04:00 26887 0.0.0.0: osad/jabber_lib.connect('ERROR',
'Server did not return a <features /> stanza')
2011/12/01 08:20:32 -04:00 26887 0.0.0.0:
osad/jabber_lib.print_message('SSLError',)
2011/12/01 08:20:32 -04:00 26887 0.0.0.0: osad/jabber_lib.print_message('Could
not connect to jabber server', 'hostname.example.com')
2011/12/01 08:20:32 -04:00 26887 0.0.0.0:
osad/jabber_lib.setup_connection('ERROR', 'Traceback (most recent call last):\n
 File "/usr/share/rhn/osad/jabber_lib.py", line 246, in setup_connection\n    c
= self._get_jabber_client(js)\n  File "/usr/share/rhn/osad/jabber_lib.py", line
303, in _get_jabber_client\n    c.connect()\n  File
"/usr/share/rhn/osad/jabber_lib.py", line 576, in connect\n    raise
SSLDisabledError\nSSLDisabledError\n')
2011/12/01 08:20:32 -04:00 26887 0.0.0.0:
osad/jabber_lib.setup_connection('Could not connect to any jabber server',)
2011/12/01 08:20:32 -04:00 26887 0.0.0.0: osad/jabber_lib.main('Unable to
connect to jabber servers, sleeping 10 seconds',)

Expected results:
Connect like a charm.

Additional info:

Comment 2 Michael Mráka 2011-12-16 10:32:36 UTC

*** This bug has been marked as a duplicate of bug 766547 ***

Comment 3 Michael Mráka 2011-12-16 10:34:09 UTC

*** This bug has been marked as a duplicate of bug 756761 ***