]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Graceful shutdown WSGI/RPC server
authorMitsuhiro Tanino <mitsuhiro.tanino@hds.com>
Wed, 24 Jun 2015 03:49:50 +0000 (23:49 -0400)
committerMitsuhiro Tanino <mitsuhiro.tanino@hds.com>
Fri, 17 Jul 2015 18:55:22 +0000 (18:55 +0000)
commit87db01e977e0fe55df762b7f4d26e669d47cbefd
treeaa8ca9271f32501ed157869ed3dfa794ae094ea7
parentdb741dcca4ba9d64de421349cda0465300f0f873
Graceful shutdown WSGI/RPC server

Change-ID I80487f559302b0e88953835ffb4a3bfe2a347501 introduces
oslo.service into Cinder. The graceful shutdown of RPC server
was introduced via merging of oslo.service.
Actual fix was introduced by https://review.openstack.org/#/c/190175/
into oslo.service.

The oslo.service fix 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: Iea877e062272103ea48583b5638dec6174e99de0
Closes-Bug: 1464822
cinder/service.py
cinder/tests/unit/test_service.py