Mandar,<br>    Thank you for reply.<br>    While,there are still some questions bothered me.<br><br>    It`s a fact that shutdown/stop operations are not separated for "libvirt_type=kvm",while, we can shutdown/stop instances of kvm type using libvirt command:<br>    <br>    <span style="font-style: italic;">virsh shutdown/</span><span style="font-style: italic;">destroy</span><span style="font-style: italic;"> <vm id or vm name></span><br>    <br>    In fact,this command only stoped the vm instance but not delete vm`s files.<br>    In general,that`s what users wanted when them sent the shutdown/stop command.Users just wanted <br>to "stop" instances,not "delete" instances<br><br>According to your reply,I read the file nova/compute/manager.py and <br>nova/virt/libvirt/connection.py. Then ,I found something like follows:<br><br>     def _destroy(self, instance, network_info, block_device_info=None,<br>                 cleanup=True):<br>        .................<br>        if virt_dom is not None:<br>            try:<br>                virt_dom.destroy()<br>        .................<br>            try:<br>                virt_dom.undefine() <br>        .................<br>        if cleanup:<br>            self._cleanup(instance)<br>        .................<br>        <br>For "stop" instance not "delete" instance,whether if we only need to keep "virt_dom.destroy() "?<br><br>Waiting your reply. Thanks !<br><br><div><sign signid="1"><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000;"><div>
<div>Best Regards</div>
<div> </div>
<div>ZhangJialong</div> </div></div></sign></div><div><qzone></qzone></div><div> </div><div> </div><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Vaze, Mandar"<Mandar.Vaze@nttdata.com>;</div><div><b>Date: </b> Wed, Jun 13, 2012 11:57 AM</div><div><b>To: </b> "ÕżÒÁú"<zhangjl@awcloud.com>; "openstack"<openstack@lists.launchpad.net>; <wbr></div><div></div><div><b>Subject: </b> RE: [Openstack] [OpenStack][Nova]Start and Stop vm instances</div></div><div> </div>    <br>>    Here is my question:<br>>    1. Is the stop operation of vm instance means to delete the vm and keep nothing except keep <br>>    this record in databases ?<br>>    2. Is the start operation of vm means to creat a new vm instance according to the <br>>    recorde in databases ?<br><br>While some hypervisors like Xen (Look at _shutdown method in nova/virt/xenapi/vmops.py) seem to have shutdown functionality,  for "libvirt_type=kvm" - there is no separate shutdown/stop.<br>(Probably that¡¯s why) compute manager calls "self.driver.destroy" from _shutdown_instance() method  -  Look at nova/compute/manager.py if interested.<br><br>Hope this helps.<br><br>-Mandar<br>   <br><br><br>______________________________________________________________________<br>Disclaimer:This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data.  If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding<br></div>