Bug 475609 - kernel-xen ignores requested halt action
Summary: kernel-xen ignores requested halt action
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel-xen
Version: 5.5
Hardware: i386
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Xen Maintainance List
QA Contact: Martin Jenner
URL:
Whiteboard:
Depends On:
Blocks: 475006 514491
TreeView+ depends on / blocked
 
Reported: 2008-12-09 19:05 UTC by Vadym Chepkov
Modified: 2011-04-11 07:34 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-11 07:34:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Vadym Chepkov 2008-12-09 19:05:23 UTC
Kernel kernel-xen-2.6.18-92.1.18.el5 ignores requested halt action.

/sbin/halt -f powers off the system instead of halting it.

Comment 3 Andrew Jones 2010-06-23 13:53:49 UTC
Vadym,

what's the issue here? 'halt -f' should immediately halt the system without going through shutdown. Is that what you saw? Or something else?

Thanks,
Andrew

Comment 4 Vadym Chepkov 2010-06-23 14:29:41 UTC
Exactly, it "should immediately halt" it.
Instead, it powers it off, like it was called with -p switch.
halt and power off is a big difference.

Comment 5 Andrew Jones 2010-06-23 15:19:59 UTC
Testing 'halt -f' on all RHEL 5.5 guest configs 32/64-bit PV/HV it works for me, and so does issuing 'halt -f' from 64-bit dom0. Can you check to see if you still have the problem when using 5.5?

Andrew

Comment 6 Vadym Chepkov 2010-06-23 16:31:40 UTC
yes, it's still the case, that's why updated the version number to 5.5

When halt -f is issued in dom0 domain, instead of halting the server, 
it powers it off.
As a workaround I always create a /sbin/halt.local, like this:

#!/bin/bash

# See if this is a powerfail situation.
if [ -f /etc/apcupsd/powerfail ]; then

echo
echo "APCUPSD will now power off the UPS"
echo

/etc/apcupsd/apccontrol killpower

# Workaround for bz# 475006
while :
do
  echo Halt
  sleep 10
done
fi

If server was powered off, instead of halted, 
it will not come online when power is restored.

Comment 7 Andrew Jones 2010-06-24 08:04:42 UTC
And this only happens with xen kernels? bare-metal on the same hardware behaves as expected?

Comment 8 Vadym Chepkov 2010-06-24 13:43:33 UTC
Correct

Comment 9 Paolo Bonzini 2011-04-01 14:08:39 UTC
The UPS seems to be important as it doesn't reproduce here without.  Can you trigger it without one?

Comment 10 Vadym Chepkov 2011-04-11 00:17:14 UTC
It is importnat for power recovery, but UPS presence is not important.

It seems the problem doesn't exist in 5.6 kernel

Comment 11 Andrew Jones 2011-04-11 07:34:13 UTC
OK, as we haven't seen this issue reported broadly, and it seems to have gone away for the reporter as well with 5.6, then I believe it's safe to close this bug as current release.


Note You need to log in before you can comment on or make changes to this bug.