]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Switch failover-host from rpc call to cast
authorPatrick East <patrick.east@purestorage.com>
Wed, 9 Mar 2016 19:08:27 +0000 (11:08 -0800)
committerPatrick East <patrick.east@purestorage.com>
Wed, 9 Mar 2016 21:50:52 +0000 (13:50 -0800)
commitfddb9c7bc08b893960a5d9a09dfca62b94aa27ed
tree62610dc193b34b9ca39b5609c55e4ef9eb13b81d
parentd58c50474c103a54c7655870a8c1652e2e1ed7a6
Switch failover-host from rpc call to cast

There is some concern that with large numbers of volumes it will be
difficult for drivers to failover the host before the rpc timeout hits.

To avoid asking admins to bump the timeout just for these cases we can
switch it to do a non-blocking cast instead of call. The difference now
being that the active_backend_id is not returned from the API call to
failover-host. An admin will have to look at the service-list output
to see when it has changed states from â€˜failing-over’ and then check
what its active_backend_id is at that time.

Change-Id: I69b4908fe783cf785d3e1612422fca15fea01c6f
Closes-Bug: #1555342
cinder/api/contrib/services.py
cinder/tests/unit/test_volume_rpcapi.py
cinder/volume/api.py
cinder/volume/manager.py
cinder/volume/rpcapi.py