I never tried to stop a VM using api. But run a nova help, it has
pause, reboot, resume, etc.
To bypass nova api, you can use virsh to stop instances. Do a sudo
virsh list --all, it will list all the running instances even if nova
cannot see it for some reason. And then you can kill all the ghost
Thanks, but I am looking for how this is done via API.
-George
On Jul 30, 2012, at 11:11 AM, Pengjun Pan panpeng...@gmail.com wrote:
I never tried to stop a VM using api. But run a nova help, it has
pause, reboot, resume, etc.
To bypass nova api, you can use virsh to stop instances. Do a
On Mon, Jul 30, 2012 at 8:50 AM, George Reese
george.re...@enstratus.com wrote:
I must be missing something, but I can't find any docs on how to suspend or
stop a VM via API.
Any pointers, please? :)
I think this works (see http://api.openstack.org/) but haven't tested
it in a while:
Stop:
On Mon, 2012-07-30 at 10:50 -0500, George Reese wrote:
I must be missing something, but I can't find any docs on how to suspend or
stop a VM via API.
Any pointers, please? :)
Try 'nova --debug pause $instance'
Shows e.g.
POST /v2/$tenant/servers/$instance/action HTTP/1.1
Host:
I'm not sure where the actions are documented, but you can infer them from here:
https://github.com/openstack/python-novaclient/blob/master/novaclient/v1_1/servers.py
Below, I've pasted a few of the methods related to this thread. These are
POST'ed to the action URI, as Mark suggested.
As I noted on Twitter, there's an open doc bug at
https://bugs.launchpad.net/openstack-manuals/+bug/1029560 noting this
gap. Thanks George for clicking through to say it impacts you.
I'm sending a second email to the mailing list next to discuss this
unfortunate gap in reality in the API docs,
Thanks, this bit is perfect.
-George
On Jul 30, 2012, at 11:57 AM, Eric Windisch e...@cloudscaling.com wrote:
I'm not sure where the actions are documented, but you can infer them from
here:
https://github.com/openstack/python-novaclient/blob/master/novaclient/v1_1/servers.py
Below, I've
7 matches
Mail list logo