Bug 489998

Summary: Setup Hangs Restarting Services on Fedora 10
Product: [Community] Spacewalk Reporter: Devan Goodwin <dgoodwin>
Component: InstallationAssignee: Jesus M. Rodriguez <jesusr>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 0.5CC: jesusr
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-13 18:41:53 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: 456553    

Description Devan Goodwin 2009-03-12 20:02:50 UTC
Description of problem:

spacewalk-setup hangs restarting services.

Version-Release number of selected component (if applicable):

spacewalk-setup-0.5.18-1.fc10.noarch

How reproducible:

100%.

Steps to Reproduce:
1. Run spacewalk-setup on Fedora 10.

Actual results:

Setup never completes after restarting services.

Additional info:

Originally thought this was related to issue with jabberd crashing described in bug #487618 but now not entirely sure...

Did some tracing through the code, spacewalk-setup starts with a call to /usr/sbin/rhn-satellite:

Spacewalk::Setup::system_or_exit(['/usr/sbin/rhn-satellite', 'restart'], 40, open(LOGFILE, ">>", $logfile) or do { 'Could not restart the rhn-satellite service.');    

Which ends up in system_debug in Setup.pm, specifically this is the portion that is freezing up. In this method the while (<PROCESS_OUT>) loop executes several times, once all services are up it stops executing, but the line beyond that while loop never gets run causing us to just sit endlessly

Completely by accident I discovered that switching to another terminal while stuck and running "service restart jabberd" causes spacewalk-setup to immediately pickup and return normally.

Comment 1 Devan Goodwin 2009-03-12 20:05:59 UTC
Suspect continued problems with jabberd, service jabberd restart runs cleanly when run manually, but during the spacewalk-setup we get the crash outlined in bug #487618, but even if applying workaround there a warning is still being printed: 

2009/03/12 19:46:45 -03:00: ('Server does not support TLS - <starttls /> not in <features /> stanza',)

Comment 2 Devan Goodwin 2009-03-13 18:41:53 UTC
Removing jabberd from the list of services in /usr/sbin/rhn-satellite allows
spacewalk-setup to complete normally, indicating this is probably a dupe of the
jabberd configuration bug. Once jabberd restarts cleanly with the satellite
configuration, this hanging during restarting services will probably go away.
Perhaps jabberd writing to stderr causes the perl code that monitors the output
of the process to get confused and never end.

Marking duplicate.

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