Re: [Openstack] Understanding shutdown VM behavior

2012-06-01 Thread Vaze, Mandar
But the pickle is the case where a user initiates a shutdown inside the VM. What's the expected behavior after it's detected? Should it respect the shutdown_terminate flag or work more like an OS API? Right now when a shutdown in a VM is detected, the vm state is updated to SHUTOFF and

Re: [Openstack] Understanding shutdown VM behavior

2012-06-01 Thread Vishvananda Ishaya
I did some cleanup of stop and power_off in the review here. https://review.openstack.org/#/c/8021/ I removed the weird shutdown_terminate handling. Honestly I feel like that is compatibility we don't need. It should be up to the provider whether a stop_instances counts as a terminate. In my

[Openstack] Understanding shutdown VM behavior

2012-05-31 Thread Yun Mao
shutdown, stop, are power_off are synonym in this discussion. They all mean to stop the VM from running, but keep the disk image and network, so that the VM could be started back on again. There are three ways to do it: 1) using EC2 stop-instance API. 2) use OS API stop-server. 3) inside the VM,