Bug 692635

Summary: configd does not shutdown gracefully if BROKER_HOST is invalid
Product: Red Hat Enterprise MRG Reporter: Timothy St. Clair <tstclair>
Component: condor-wallaby-clientAssignee: Robert Rati <rrati>
Status: CLOSED ERRATA QA Contact: Petra Svobodová <psvobodo>
Severity: low Docs Contact:
Priority: unspecified    
Version: DevelopmentCC: iboverma, jneedle, matt, mkudlej, psvobodo, tstclair
Target Milestone: 2.0   
Target Release: ---   
Hardware: All   
OS: Windows   
Whiteboard:
Fixed In Version: condor-wallaby-client-4.0-5 Doc Type: Bug Fix
Doc Text:
C: A mis-configured QMF_BROKER_HOST in condor's configuration C: The configd would be unable to contact the broker and wouldn't respond to shutdown commands F: Moved the windows signal handling initialization to earlier in the code path R: The configd will shutdown gracefully regardless of whether QMF_BROKER_HOST is configured correctly
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-23 15:36:01 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: 706415    
Bug Blocks: 693778    

Description Timothy St. Clair 2011-03-31 18:39:23 UTC
Description of problem:
The configd does not respond to a softkill if the BROKER_HOST is invalid

Version-Release number of selected component (if applicable):
condor-wallaby-4.0-4

How reproducible:
100%

Steps to Reproduce:
1. Comment out BROKER_HOST
2. net stop condor
3. shutdown hangs until hardkill

Expected results:
clean shutdown on softkill

Comment 1 Robert Rati 2011-03-31 20:27:48 UTC
Issue was that the windows shutdown timer wasn't started until after the configd connected to the broker, so if the configd couldn't connect then the timer was never started.  The timer is now started when other signal handlers are setup.

Fixed on master.

Comment 2 Robert Rati 2011-04-05 14:07:39 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
C: A mis-configured QMF_BROKER_HOST in condor's configuration
C: The configd would be unable to contact the broker and wouldn't respond to shutdown commands
F: Moved the windows signal handling initialization to earlier in the code path
R: The configd will shutdown gracefully regardless of whether QMF_BROKER_HOST is configured correctly

Comment 4 Petra Svobodová 2011-06-01 08:46:43 UTC
The issue does not occur on version "condor-7.4-103_20110124.msi" (the last brewed version what can be running before the patch)  neither on version "condor-7.6.1-0.8.msi". 

Tested on Windows:
XP-x86
Server2003-x86 and x64
Server2008-x86, x64 and R2-x64
7-x86 and x64

--> VERIFIED

Comment 5 errata-xmlrpc 2011-06-23 15:36:01 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0889.html