<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> <!--@import url(scrollbar.css); --></STYLE>

<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>                   body{FONT-SIZE:12pt; FONT-FAMILY:宋体,serif;}         </STYLE>

<META name=GENERATOR content="MSHTML 8.00.7601.17824"><BASE 
target=_blank></HEAD>
<BODY 
style="LINE-HEIGHT: 1.3; BORDER-RIGHT-WIDTH: 0px; MARGIN: 12px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" 
marginheight="0" marginwidth="0">
<DIV><FONT style="BACKGROUND-COLOR: #cce8cf">
<DIV>qemu: terminating on signal 15 from pid 1957</DIV>
<DIV>this means the VM is shutted off by libvirtd/libvirt api, the log of my VM 
is same as this,</DIV>
<DIV>so you should check who calls the libvirt to shut down your VMs.</DIV>
<DIV>I have no other ideas now, good luck, guy!</DIV></FONT></DIV>
<DIV> </DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana>2012-12-06</FONT></DIV>
<DIV align=left><FONT size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" id=SignNameHR align=left SIZE=2>
</FONT></DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana><SPAN 
id=_FlashSignName>Wangpan</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Verdana>
<HR>
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发件人:</STRONG>pyw</FONT></DIV>
<DIV><FONT size=2 
face=Verdana><STRONG>发送时间:</STRONG>2012-12-06 17:34</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG>Re: Re: [Openstack] Why my vm 
often change into shut off status by itself?</FONT></DIV>
<DIV><FONT size=2 
face=Verdana><STRONG>收件人:</STRONG>"Wangpan"<hzwangpan@corp.netease.com></FONT></DIV>
<DIV><FONT size=2 
face=Verdana><STRONG>抄送:</STRONG>"openstack"<openstack@lists.launchpad.net></FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>Individual virtual machines automatically shutoff 
occurs frequently,  this time all the virtual machines are automatic 
shutoff at the same time.<BR>
<DIV><BR></DIV>
<DIV>If the nova failed to delete the virtual machine will cause the virtual 
machine is shut down?<BR></DIV>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>2012/12/6 Wangpan <SPAN dir=ltr><<A 
href="mailto:hzwangpan@corp.netease.com" 
target=_blank>hzwangpan@corp.netease.com</A>></SPAN><BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
class=gmail_quote><U></U>
  <DIV 
  style="LINE-HEIGHT: 1.3; BORDER-RIGHT-WIDTH: 0px; MARGIN: 12px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" 
  marginheight="0" marginwidth="0">
  <DIV><FONT color=#000000 size=3 face=宋体>are that all VMs shutting down at the 
  same time?</FONT></DIV>
  <DIV>such as '2012-12-04 06:54:27.150+0000: shutting down' or near this 
  point?<BR>if this is true, I guess it may be the host's problem.</DIV>
  <DIV class=im>
  <DIV> </DIV>
  <DIV align=left><FONT color=#c0c0c0 face=Verdana>2012-12-06</FONT></DIV>
  <DIV align=left><FONT face=Verdana>
  <HR style="MIN-HEIGHT: 2px; WIDTH: 122px" align=left SIZE=2>
  </FONT></DIV>
  <DIV align=left><FONT color=#c0c0c0 
  face=Verdana><SPAN>Wangpan</SPAN></FONT></DIV>
  <DIV><FONT face=Verdana>
  <HR>
  </FONT></DIV>
  <DIV><FONT face=Verdana><STRONG>发件人:</STRONG>pyw</FONT></DIV></DIV>
  <DIV><FONT face=Verdana><STRONG>发送时间:</STRONG><A href="tel:2012-12-06%C2%A017" 
  target=_blank value="+862012120617">2012-12-06 17</A>:10</FONT></DIV>
  <DIV class=im>
  <DIV><FONT face=Verdana><STRONG>主题:</STRONG>Re: [Openstack] Why my vm often 
  change into shut off status by itself?</FONT></DIV></DIV>
  <DIV><FONT face=Verdana><STRONG>收件人:</STRONG>"Veera Reddy"<<A 
  href="mailto:veeraready@gmail.com" 
  target=_blank>veeraready@gmail.com</A>></FONT></DIV>
  <DIV><FONT face=Verdana><STRONG>抄送:</STRONG>"openstack"<<A 
  href="mailto:openstack@lists.launchpad.net" 
  target=_blank>openstack@lists.launchpad.net</A>></FONT></DIV>
  <DIV>
  <DIV class=h5>
  <DIV><FONT face=Verdana></FONT> </DIV>
  <DIV><FONT face=Verdana>
  <DIV>
  <DIV>
  <DIV>Generally if you use virsh to restart the virtual machine,it seems to be 
  able to use some time before shutoff again。<BR></DIV>
  <DIV><BR></DIV>
  <DIV>$ date</DIV>
  <DIV>Thu Dec  6 17:04:41 CST 2012</DIV></DIV>
  <DIV><BR></DIV>
  <DIV>$ virsh start instance-0000006e</DIV>
  <DIV>Domain instance-0000006e started</DIV>
  <DIV><BR></DIV>
  <DIV>$ virsh list</DIV>
  <DIV> Id Name                 
  State</DIV>
  <DIV>----------------------------------</DIV>
  <DIV>158 instance-0000006e    running<BR></DIV></DIV>
  <DIV><BR></DIV>
  <DIV>/var/log/libvirt/qemu$ sudo tail -f instance-0000006e.log </DIV>
  <DIV>2012-12-03 06:14:13.488+0000: shutting down</DIV>
  <DIV>qemu: terminating on signal 15 from pid 1957</DIV>
  <DIV>2012-12-03 06:14:59.819+0000: starting up</DIV>
  <DIV>LC_ALL=C 
  PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin 
  QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-1.0 -cpu 
  core2duo,+lahf_lm,+aes,+popcnt,+sse4.2,+sse4.1,+cx16,-monitor,-vme -enable-kvm 
  -m 512 -smp 1,sockets=1,cores=1,threads=1 -name instance-0000006e -uuid 
  d7798df8-e225-4178-9d0b-f6691d78ce18 -nodefconfig -nodefaults -chardev 
  socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-0000006e.monitor,server,nowait 
  -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew 
  -no-kvm-pit-reinjection -no-shutdown -drive 
  file=/data0/instances/instance-0000006e/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none 
  -device 
  virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 
  -netdev tap,fd=25,id=hostnet0 -device 
  rtl8139,netdev=hostnet0,id=net0,mac=fa:16:3e:17:ca:dd,bus=pci.0,addr=0x3 
  -chardev 
  file,id=charserial0,path=/data0/instances/instance-0000006e/console.log 
  -device isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charserial1 
  -device isa-serial,chardev=charserial1,id=serial1 -usb -device 
  usb-tablet,id=input0 -vnc <A href="http://0.0.0.0:2" 
  target=_blank>0.0.0.0:2</A> -k en-us -vga cirrus -incoming fd:23 -device 
  virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5</DIV>
  <DIV>char device redirected to /dev/pts/27</DIV>
  <DIV>qemu: terminating on signal 15 from pid 1957</DIV>
  <DIV>2012-12-04 06:54:27.150+0000: shutting down</DIV>
  <DIV>2012-12-06 09:02:46.343+0000: starting up</DIV>
  <DIV>LC_ALL=C 
  PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin 
  QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-1.0 -cpu 
  core2duo,+lahf_lm,+aes,+popcnt,+sse4.2,+sse4.1,+cx16,-monitor,-vme -enable-kvm 
  -m 512 -smp 1,sockets=1,cores=1,threads=1 -name instance-0000006e -uuid 
  d7798df8-e225-4178-9d0b-f6691d78ce18 -nodefconfig -nodefaults -chardev 
  socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-0000006e.monitor,server,nowait 
  -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew 
  -no-kvm-pit-reinjection -no-shutdown -drive 
  file=/data0/instances/instance-0000006e/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none 
  -device 
  virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 
  -netdev tap,fd=23,id=hostnet0 -device 
  rtl8139,netdev=hostnet0,id=net0,mac=fa:16:3e:17:ca:dd,bus=pci.0,addr=0x3 
  -chardev 
  file,id=charserial0,path=/data0/instances/instance-0000006e/console.log 
  -device isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charserial1 
  -device isa-serial,chardev=charserial1,id=serial1 -usb -device 
  usb-tablet,id=input0 -vnc <A href="http://0.0.0.0:2" 
  target=_blank>0.0.0.0:2</A> -k en-us -vga cirrus -device 
  virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5</DIV>
  <DIV>char device redirected to /dev/pts/30</DIV>
  <DIV><BR></DIV>
  <DIV>We can see this two log:</DIV>
  <DIV>...</DIV>
  <DIV>2012-12-03 06:14:59.819+0000: starting up<BR></DIV>
  <DIV>...</DIV>
  <DIV>2012-12-04 06:54:27.150+0000: shutting down<BR></DIV>
  <DIV><BR></DIV>
  <DIV>The vm shutoff after running one day.</DIV>
  <DIV class=gmail_extra><BR><BR>
  <DIV class=gmail_quote>2012/12/6 Veera Reddy <SPAN dir=ltr><<A 
  href="mailto:veeraready@gmail.com" 
  target=_blank>veeraready@gmail.com</A>></SPAN><BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote><BR><BR>
    <DIV class=gmail_quote>On Thu, Dec 6, 2012 at 8:29 AM, pyw <SPAN 
    dir=ltr><<A href="mailto:pengyuwei@gmail.com" 
    target=_blank>pengyuwei@gmail.com</A>></SPAN> wrote:<BR>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
    class=gmail_quote>instance-00000040    shut 
    off</BLOCKQUOTE></DIV><BR><BR clear=all>
    <DIV><BR></DIV>Hi, 
    <DIV><BR></DIV>
    <DIV>Try to start vm with virsh command</DIV>
    <DIV><BR></DIV>
    <DIV>" virsh start <SPAN 
    style="FONT-FAMILY: arial,sans-serif; COLOR: rgb(34,34,34); FONT-SIZE: 13px"> </SPAN><SPAN 
    style="FONT-FAMILY: arial,sans-serif; COLOR: rgb(34,34,34); FONT-SIZE: 13px">instance-00000040"</SPAN></DIV>
    <DIV><SPAN 
    style="FONT-FAMILY: arial,sans-serif; COLOR: rgb(34,34,34); FONT-SIZE: 13px"><BR></SPAN></DIV>
    <DIV><FONT color=#222222 face="arial, sans-serif">With this  we can see 
    what is actual problem</FONT></DIV>
    <DIV><BR></DIV>
    <DIV>Regards,</DIV>
    <DIV>Veera.</DIV></BLOCKQUOTE></DIV><BR></DIV></FONT></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></FONT></DIV></BODY></HTML>