Currently heat-engine do shutdown immediately when SIGTERM received.
At that time, a stacks in middle of processing would terminate forcefully.
It's not graceful.
This patch aims to implement graceful shutdown with following methods.
* Close rpc connection at first for preventing new requests arrived
after SIGTERM received.
* Stop stack processing with graceful option.
The graceful stop functionality is provided by oslo-incubator.
* Then terminating process.
Reviewed: https:/ /review. openstack. org/86497 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=3e3f9a9a4da f3b3fa6465ea6be d97e318ed04b93
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3e3f9a9a4daf3b3 fa6465ea6bed97e 318ed04b93
Author: Mitsuru Kanabuchi <email address hidden>
Date: Fri Apr 25 21:07:31 2014 +0900
Shut the heat-engine after all threads finished
Currently heat-engine do shutdown immediately when SIGTERM received.
At that time, a stacks in middle of processing would terminate forcefully.
It's not graceful.
This patch aims to implement graceful shutdown with following methods.
* Close rpc connection at first for preventing new requests arrived
after SIGTERM received.
* Stop stack processing with graceful option.
The graceful stop functionality is provided by oslo-incubator.
* Then terminating process.
Change-Id: I8689b830774f79 16febb59aca0097 9d92c0448b5
Closes-bug: #1304244