Allow user defined shutdown when stop an instance

Registered by Zhenyu Zheng

Currently, when stop an instance, we will first try to have a clean shutdown.
There are two parameters controls the whole operation:
timeout and retry interval, for the default options, we will
have to wait for 10 minutes trying to perform clean shutdown
before we force shutdown the instance.
This is troublesome for some scenarios, for example, we already
know or instance have some problems that cannot perform
clean shutdown(os got stuck). It will be meaningless to try
clean shutdown, allow users to perform force shutdown
directly through API will be much more efficient in this
kind of scenario.

This blueprint propose to expose a new option "force-shutdown"
to the "Stop" API.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Zhenyu Zheng
Direction:
Needs approval
Assignee:
Zhenyu Zheng
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/allow-user-defined-shutdown-for-stop,n,z

Addressed by: https://review.openstack.org/293790
    Allow user to define the shutdown method through API when stop instances

Addressed by: https://review.openstack.org/298221
    [POC] Allow user defined stop

Gerrit topic: https://review.opendev.org/#/q/topic:bp/allow-user-defined-shutdown-for-stop

Addressed by: https://review.opendev.org/c/openstack/nova/+/861333
    Allow user defined stop type

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.