Bug 869986

Summary: can not reboot guest with command { "execute":"guest-shutdown","arguments":{"mode":"reboot"}} after guest halt
Product: Red Hat Enterprise Linux 6 Reporter: langfang <flang>
Component: qemu-kvmAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.4CC: acathrow, bsarathy, chayang, dyasny, juzhang, mkenneth, qzhang, sluo, virt-maint, xfu, xigao
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-25 11:02:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description langfang 2012-10-25 09:54:17 UTC
Description of problem:
can not reboot guest with command { "execute":"guest-shutdown","arguments":{"mode":"reboot"}} after guest halt

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

host:
# uname -r
2.6.32-336.el6.x86_64
# rpm -q qemu-kvm
qemu-kvm-0.12.1.2-2.331.el6.x86_64

guest:
# uname -r
2.6.32-336.el6.x86_64

qemu-guest-agent-0.12.1.2-2.329.el6.x86_64

How reproducible:
almost

Steps to Reproduce:
1.boot guest with 
-chardev socket,path=/tmp/qga.sock,server,nowait,id=qga0 -device  virtio-serial -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 
2.on host

# nc -U /tmp/qga.sock

3. in guest
#service qemu-ga start


4.host
# nc -U /tmp/qga.sock
{"execute":"guest-fsfreeze-status"}
{"return": "thawed"}
{"execute":"guest-fsfreeze-status"}
{"return": "thawed"}
{"execute":"guest-fsfreeze-freeze"}
{"return": 5}
{"execute":"guest-fsfreeze-thaw"}
{"return": 2}
{"execute":"guest-fsfreeze-thaw"}
{"return": 0}
{"execute":"guest-fsfreeze-thaw"}
{"return": 0}
{ "execute":"guest-shutdown","arguments":{"mode":"halt"}} ----->guest halt
{ "execute":"guest-shutdown","arguments":{"mode":"reboot"}}----->can not reboot guest

Actual results:

when execute { "execute":"guest-shutdown","arguments":{"mode":"reboot"}},can not reboot guest ,guest still halt.
Expected results:
when execute { "execute":"guest-shutdown","arguments":{"mode":"reboot"}},can  reboot guest 



Additional info:
 use qemu command can be reboot guest 
(qemu)system_reset ----->can be reboot guest

Comment 2 langfang 2012-10-25 11:02:29 UTC
after guest halt ,tried other qemu-agent commands can not work any more.so i think when guest halt ,the  agent can not work .so closed this bug .if anything i wrong,tell me  directly.thanks.