Bug 756761

Summary: osa-dispatcher wont start
Product: [Community] Spacewalk Reporter: Martin Minar <mminar>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: medium    
Version: 1.6CC: jmikulka, mkoci, slukasik
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: osad-5.10.30-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-22 16:50:30 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: 723481    

Comment 1 Martin Minar 2011-11-25 08:04:28 UTC
Description of problem:
When running rhn-satellite restart osa-dispatcher is not started.

Version-Release number of selected component (if applicable):
Spacewalk nightly
Postgre version
RHEL5, RHEL6, F14

Steps to Reproduce:
1. rhn-satellite restart

Actual results:
Traceback can be found in /var/log/rhn/osa-dispatcher.log

Comment 2 Michael Mráka 2011-12-16 10:21:28 UTC
Well, I've seen the error message once:
# spacewalk-service restart
Shutting down spacewalk services...
[...]
Shutting down osa-dispatcher: [  OK  ]
Terminating jabberd processes ...
Stopping router: [  OK  ]
Stopping sm: [  OK  ]
Stopping c2s: [  OK  ]
Stopping s2s: [  OK  ]
Done.
Starting spacewalk services...
Initializing jabberd processes ...
Starting router: [  OK  ]
Starting sm: [  OK  ]
Starting c2s: [  OK  ]
Starting s2s: [  OK  ]
Starting osa-dispatcher: /usr/lib/python2.6/site-packages/jabber/jabber.py:68: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha, time
RHN 23908 2011/12/16 05:04:51 -04:00: ('Server did not return a <features /> stanza',)
RHN 23908 2011/12/16 05:04:51 -04:00: ('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',)
[  OK  ]
Starting tomcat6: [  OK  ]
[...]
Done.

Subsequent osa-dispatcher restart went fine
# service osa-dispatcher restart
Shutting down osa-dispatcher: [  OK  ]
Starting osa-dispatcher: /usr/lib/python2.6/site-packages/jabber/jabber.py:68: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha, time
[  OK  ]

And then I was no more able to reproduce the issue with any combination of
# service jabberd restart ; service osa-dispatcher restart
# service osa-dispatcher stop ; service jabberd stop ; service jabberd start  ; service osa-dispatcher start
# spacewalk-service restart

Comment 3 Michael Mráka 2011-12-16 10:34:09 UTC
*** Bug 759406 has been marked as a duplicate of this bug. ***

Comment 4 Michael Mráka 2011-12-16 12:52:13 UTC
Fixed in spacewalk master by
commit 8ac086d8a039c72a94bcac0c62c2566b7054a5e4
    756761 - reconnect if jabber server returns error during handshake

Comment 5 Milan Zázrivec 2011-12-22 16:50:30 UTC
Spacewalk 1.6 has been released.