Bug 492194

Summary: spacewalk-setup Hangs Restarting Services
Product: [Community] Spacewalk Reporter: Devan Goodwin <dgoodwin>
Component: InstallationAssignee: Jan Pazdziora (Red Hat) <jpazdziora>
Status: CLOSED CURRENTRELEASE QA Contact: Devan Goodwin <dgoodwin>
Severity: medium Docs Contact:
Priority: low    
Version: 0.5CC: bperkins, cperry, jesusr, shughes
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-09-17 07:11:20 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-25 20:18:17 UTC
Description of problem:

Spacewalk setup hangs at the final restarting services stage on Fedora 10. (at least)

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

spacewalk-setup-0.5.25-1.fc10.noarch

How reproducible:

100% on Fedora 10, not sure about others.

Steps to Reproduce:
1. Run spacewalk-setup normally.
  
Actual results:

Setup prints "* Restarting services." then sits there forever.

Expected results:

Normal completion.


Additional info:

Technically all services have started successfully, the problem appears to be related to new code in Setup.pm sub system_debug originating in commit f5eb2855.

Placing an echo at the end of /usr/sbin/rhn-satellite shows that the script does terminate, but the while loop in system_debug never realizes this.

jabberd service appears to be the culprit, if while hung you switch to another terminal and "service jabberd restart" the original spacewalk-setup process immediately picks up and completes normally. If you remove jabberd from the list of services in /usr/sbin/rhn-satellite, the problem does not occur.

Reverting f5eb2855 also allows the process to complete normally. (though I have selinux disabled and I understand the change was to accomodate selinux in the first place)

Comment 1 Shannon Hughes 2009-03-25 20:34:43 UTC
just a couple notes that i noticed some logic sandwiched between the subroutines upgrade_stop_services and spinning_callback. was that supposed to be orphaned in the main driver area?

Comment 2 Jan Pazdziora (Red Hat) 2009-03-26 17:01:53 UTC
Filed a bug 492378 against jabberd.

I'll try to come up with a workaround thou.

Comment 3 Jan Pazdziora (Red Hat) 2009-03-27 10:26:40 UTC
Fix in commit 66f35d59c2f4d1771e0b17086a5f85f7c151982f.

Tagged as spacewalk-setup-0.5.27-1.

Comment 4 Jan Pazdziora (Red Hat) 2009-04-01 06:36:27 UTC
With Spacewalk 0.5 released, moving ON_QA.

Comment 5 Devan Goodwin 2009-04-07 19:49:38 UTC
Verified.

Comment 6 Jesus M. Rodriguez 2009-04-14 14:13:38 UTC
Spacewalk 0.5 released.

Comment 7 Miroslav Suchý 2009-09-17 07:11:20 UTC
Spacewalk 0.5 has been released for long time ago.