Bug 607412

Summary: rhel4.8 and rhel3.9 guest cannot be fully shutdown by executing 'halt' command in guest
Product: Red Hat Enterprise Linux 6 Reporter: Jianjiao Sun <jsun>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: berrange, llim, nzhang, tyan, xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-25 14:26:16 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:
Attachments:
Description Flags
rhel3u9 halt none

Description Jianjiao Sun 2010-06-24 03:58:28 UTC
Description of problem:
The guest is rhel4.8 and rhel3.9 installed successfully.When I type in "halt" command as root.The system begin to shutdown.But hang up at "system halted".

Version-Release number of selected component (if applicable):
[root@dhcp-65-144 unanao]# rpm -q virt-manager
virt-manager-0.8.4-5.el6.noarch

[root@dhcp-65-144 unanao]# rpm -q libvirt
libvirt-0.8.1-9.el6.x86_64

[root@dhcp-65-144 unanao]# rpm -qa |grep kvm
qemu-kvm-0.12.1.2-2.79.el6.x86_64

[root@dhcp-65-144 unanao]# uname -a
Linux dhcp-65-144.nay.redhat.com 2.6.32-37.el6.x86_64 #1 SMP Sun Jun 20
19:29:35 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux


How reproducible:
always

Steps to Reproduce:
1.Login the guest
2.su -
3.#halt
  
Actual results:
hung up at "system halted"

Expected results:
The guest halt successfully

Additional info:

Comment 2 RHEL Program Management 2010-06-24 04:12:54 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 3 Lawrence Lim 2010-06-24 08:01:18 UTC
What about other moe of shutdown?

Comment 4 Jianjiao Sun 2010-06-24 08:28:01 UTC
yeah!

#shutdown -h now 
works well .

But I think there are a lot of people like "#halt",beacuse It is convinet to use.

Comment 6 Nan Zhang 2010-06-25 10:00:43 UTC
Created attachment 426827 [details]
rhel3u9 halt

I can reproduced this issue.

1. Intall rhel3u9 or rhel4u8 guest
2. Log in guest and execute command
   # halt
3. The guest cannot be able to fully shutdown.

Using 'shutdown -h now' can workaround this issue. I captured a screenshot.

Comment 7 Daniel Berrangé 2010-06-25 14:00:33 UTC
I don't believe this is a bug. The 'halt' command is only intended to halt the operating system, not power off the machine. The 'poweroff' command should be used if you want the guest to actually power off the machine.

Shutdown -h is equivalent to poweroff in normal configs.

Please re-test with the 'poweroff' command.

Comment 8 Nan Zhang 2010-06-25 14:26:16 UTC
Yes, the guest can be shutdown with the 'poweroff' command, so it's not a bug. Close it.