Bug 490053

Summary: xen doesn't stop when entering runlevels 0, 1, or 6.
Product: Red Hat Enterprise Linux 5 Reporter: Bryan Mason <bmason>
Component: xenAssignee: Michal Novotny <minovotn>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.3CC: areis, llim, mshao, sghosh, xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: xen-3.0.3-85.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-02 10:08:06 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: 247523    
Attachments:
Description Flags
Proposed patch none

Description Bryan Mason 2009-03-13 00:27:09 UTC
Created attachment 335035 [details]
Proposed patch

Description of problem:

    xend is not stopped when runlevels 0, 1, or 6 are entered.

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

    xen-3.0.3-80.el5

How reproducible:

    Every time.

Steps to Reproduce:

    1. execute "poweroff" or "init 1"
  
Actual results:

    Watch the console.  Notice that the message "Stopping xend:" does
    not appear.  In runlevel 1, the xend process is still running:

    # init 1
    [...lots of stuff snipped...]
    # ps -ef | grep xend | grep -v grep
    root     3633      1  0 17:15 ?     00:00:00:00 python /usr/sbin/xend start
    root     3634   3633  0 17:15 ?     00:00:00:00 python /usr/sbin/xend start

Expected results:

    Xend should be stopped when switching to runlevels 0, 1, and 6.

Additional info:

    The problem is that the xend init script does not touch or remove
    /var/lock/subsys/xend.

    Requesting this as an exception for RHEL 5.4 becuase it's a simple
    fix and it blocks Bug 247523 (which is being investigated for RHEl
    5.4).

    Proposed patch attached.

Comment 2 Michal Novotny 2009-03-13 15:09:38 UTC
Ok, I tested this patch and it's working fine. No xend is here after applying this patch and switching to eg. runlevel 1. Changing to POST...

Comment 3 Jiri Denemark 2009-05-11 13:40:48 UTC
Fix built into xen-3.0.3-85.el5

Comment 5 Yewei Shao 2009-07-28 02:19:28 UTC
Verified on xen-3.0.3-91.

Comment 7 errata-xmlrpc 2009-09-02 10:08:06 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/RHBA-2009-1328.html