<div> </div>
<div> Hello,everyone<br><br> I have some questions about OpenStack Nova Compute(Essex).<br> <br> According the Nova API Docs(http://api.openstack.org/),I sent stop command to my vm<br> instance like follows:<br> <br> <span style="font-style: italic;">curl -i -X POST -H "Content-Type: application/json" -H 'X-Auth-Token:<my token>' \</span><br style="font-style: italic;"><span style="font-style: italic;"> -d '{"os-stop":null} ' \</span><br style="font-style: italic;"><span style="font-style: italic;"> http://localhost:8774/v1.1/<tenant id>/servers/<vm id>/action </span><br> <br> Next,I checked the vm status:<br> <br> <span style="font-style: italic;"> nova list</span><br> <br> This command returnd follows:<br> +--------------------------------------+----------+--------+-----------------+<br> | ID | Name | Status | Networks |<br> +--------------------------------------+----------+--------+-----------------+<br> | e5d76e77-01eb-46a8-8086-f66835b39029 | vm_test2 | STOPED | br100=10.16.2.5 |<br> +--------------------------------------+----------+--------+-----------------+<br> <br> Well,I checked if the vm exsited:<br> <br> <span style="font-style: italic;">virsh list --all</span><br> <br> While,I found nothing.<br> <br> Then, I sent start command to my vm instance like follows:<br> <br> <span style="font-style: italic;">curl -i -X POST -H "Content-Type: application/json" -H 'X-Auth-Token:<my token>' \</span><br style="font-style: italic;"><span style="font-style: italic;"> -d '{"os-start":null} ' \</span><br style="font-style: italic;"><span style="font-style: italic;"> http://localhost:8774/v1.1/<tenant id>/servers/<vm id>/action </span><br> <br> check the vm:<br> <br> <span style="font-style: italic;">nova list</span><br> <br> +--------------------------------------+----------+--------+-----------------+<br> | ID | Name | Status | Networks |<br> +--------------------------------------+----------+--------+-----------------+<br> | e5d76e77-01eb-46a8-8086-f66835b39029 | vm_test2 | ACTIVE | br100=10.16.2.3 |<br> <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> Waiting your reply . Thanks !<br></div>
<div> <sign signid="1">
<div style="FONT-SIZE: 12px; COLOR: #909090; FONT-FAMILY: Arial Narrow">------------------</div>
<div style="FONT-SIZE: 14px; COLOR: #000; FONT-FAMILY: Verdana">
<div>
<div>Best Regards</div>
<div> </div>
<div>ZhangJialong</div> </div> </div> </sign> </div>
<div> <qzone> </qzone> </div>
<div> </div>