cinder/cinder/tests/unit/scheduler
Michał Dulko c9a55d852e Add SIGHUP handlers to reset RPC version pins
Adding SIGHUP handlers (by implementing reset from oslo.service) to
cinder-scheduler, cinder-backup and cinder-volume that reset cached RPC
version pins. This is to avoid the need to restart all the services when
upgrade of the deployment is completed.

Some changes go a little deep into the stack, because to reload all the
pins we need to recreate <service>.rpcapi.<service>API objects that are
stored in the memory.

Please note that SIGHUP signal is handled by oslo.service only when
service runs in daemon mode (without tty attached). To test this commit
in DevStack you need to add "&" to the end of the command that starts
the service.

Situation is more complicated with the API service, so we're leaving it
with restart required for now. In the deployments with HA cinder-api is
typically behind a load balancer, so restarting individual nodes
one-by-one should be easy.

DocImpact: Add information on rolling upgrades procedures to the docs.
Implements: blueprint rpc-object-compatibility

Change-Id: I03ed74e17dc9a4b9aa2ddcfbeb36a106a0f035f8
2016-02-19 10:30:17 +01:00
..
__init__.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
fake_hosts.py Move oslo-incubator's scheduler module to cinder 2015-11-24 15:49:31 +01:00
fakes.py Fix InstanceLocalityFilter scheduler filter 2015-11-18 15:42:13 +02:00
test_allocated_capacity_weigher.py Move oslo-incubator's scheduler module to cinder 2015-11-24 15:49:31 +01:00
test_base_filter.py Move oslo-incubator's scheduler module to cinder 2015-11-24 15:49:31 +01:00
test_capacity_weigher.py Move oslo-incubator's scheduler module to cinder 2015-11-24 15:49:31 +01:00
test_chance_weigher.py Replace xrange() with six.moves.range() 2015-06-16 10:46:40 +02:00
test_filter_scheduler.py Merge "CG creation should be scheduled on backend level" 2015-11-12 04:03:00 +00:00
test_goodness_weigher.py Add missing unit test for goodness weigher 2015-06-02 18:59:02 +05:30
test_host_filters.py Merge "Fix InstanceLocalityFilter scheduler filter" 2015-11-26 01:40:32 +00:00
test_host_manager.py Merge "Hacking Checks for assertTrue/IsNone()" 2015-11-26 15:54:58 +00:00
test_rpcapi.py Cleanup unused conf variables 2016-02-16 11:26:06 +11:00
test_scheduler.py Add SIGHUP handlers to reset RPC version pins 2016-02-19 10:30:17 +01:00
test_scheduler_options.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_volume_number_weigher.py Move oslo-incubator's scheduler module to cinder 2015-11-24 15:49:31 +01:00
test_weights.py Move oslo-incubator's scheduler module to cinder 2015-11-24 15:49:31 +01:00