cinder/cinder/openstack/common
Mitsuhiro Tanino 70c6a35684 Graceful shutdown WSGI/RPC server
Currently, termination of WSGI application or RPC server immediately stops
service and so interrupts in-progress request.

Graceful handler for SIGTERM signal was added.
SIGINT signal handler was removed to allow instantaneous termination of
service.

DocImpact: graceful termination of process can be done by sending SIGTERM
signal to parent WSGI process. Graceful termination is not instantaneous.
To force instantaneous termination SIGINT signal must be sent.

(cherry picked from commit 13ce823686062d70b268b4d3888849adef07e4ff)
  Additional fix: oslo.service provides this facility through it's wait()
                  method, so we need to call it in Cinder Service wait()
                  method which gets called when graceful shutdown is
                  requested by sending the process SIGTERM.

Change-Id: Icaedec63c0df0255c6842b688c6d83a496f142b8
Closes-Bug: 1464822
2015-06-30 19:00:21 -04:00
..
config Don't use module importutils from oslo-incubator 2014-11-25 13:27:58 +08:00
middleware Move to the oslo.middleware library 2015-03-12 13:57:23 -05:00
scheduler Sync scheduler.filters module from oslo-incubator 2015-02-23 17:14:57 -06:00
README Update Oslo wiki link in README 2014-02-28 20:17:11 +08:00
__init__.py Sync latest versionutils from oslo-incubator 2014-11-21 16:47:31 +08:00
_i18n.py Namespace updates for _i18n and imageutils & fileutils 2015-03-10 16:58:37 +00:00
eventlet_backdoor.py Sync 'eventlet_backdoor' module from oslo-incubator 2015-02-20 14:48:46 -06:00
fileutils.py Namespace updates for _i18n and imageutils & fileutils 2015-03-10 16:58:37 +00:00
gettextutils.py Remove hard coded reference from gettextutils.py 2014-07-18 11:29:24 -04:00
imageutils.py Namespace updates for _i18n and imageutils & fileutils 2015-03-10 16:58:37 +00:00
loopingcall.py Sync 'loopingcall' module from oslo-incubator 2015-02-20 16:13:36 -06:00
periodic_task.py Sync periodic_task module from oslo-incubator 2015-02-14 20:34:21 -06:00
policy.py update oslo policy to remove policy.d log spam 2015-03-20 08:26:08 -04:00
service.py Graceful shutdown WSGI/RPC server 2015-06-30 19:00:21 -04:00
systemd.py Update 'systemd' module from oslo-incubator 2015-02-20 16:45:29 -06:00
threadgroup.py Sync 'threadgroup' from oslo-incubator 2015-02-20 16:56:44 -06:00
versionutils.py Syncing versionutils from oslo-incubator 2015-03-25 12:03:51 +01:00

README

openstack-common
----------------

A number of modules from openstack-common are imported into this project.

These modules are "incubating" in openstack-common and are kept in sync
with the help of openstack-common's update.py script. See:

  https://wiki.openstack.org/wiki/Oslo#Syncing_Code_from_Incubator

The copy of the code should never be directly modified here. Please
always update openstack-common first and then run the script to copy
the changes across.