Allow force stop server in nova rest api

Registered by junxu

For libvirt dirver, It has already implemented how to stop a server(gracefully or hard), and which way used is controlled by "clean_shutdown" flag in nova.compute.api.API.stop(self, context, instance, do_cast=True,clean_shutdown=True) method.
And this method is called by nova stop sever rest api, while this rest api does't support to deal with this flag(it always set the "clean_shutdown" flag as True), so I think we should add this support in rest api then end-user could choose which way to stop a server.

Blueprint information

Status:
Started
Approver:
None
Priority:
Undefined
Drafter:
junxu
Direction:
Needs approval
Assignee:
junxu
Definition:
New
Series goal:
None
Implementation:
Needs Code Review
Milestone target:
None
Started by
junxu

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/nova-api-force-stop-server,n,z

Addressed by: https://review.openstack.org/195418
    Allow force stop server in nova rest api

Gerrit topic: https://review.openstack.org/#q,topic:bug/1465956,n,z

Addressed by: https://review.openstack.org/192972
    Add hard stop server support in nova api

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.