]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add waiting for the driver to SchedulerManager
authorMichal Dulko <michal.dulko@intel.com>
Thu, 12 Mar 2015 16:24:09 +0000 (17:24 +0100)
committerMichal Dulko <michal.dulko@intel.com>
Thu, 12 Mar 2015 16:24:09 +0000 (17:24 +0100)
commit89106c52720e25f51384b3d77c710c7ddc7f1724
treeabb5602c16c8a4bcb0fa60670d0d8dfe56068cac
parent9cf6e694a37149f2e1e7b70c51c82bab4f135057
Add waiting for the driver to SchedulerManager

This patch adds _wait_for_scheduler method before serving any request.
Method waits till scheduler.is_ready() returns true or
CONF.periodic_interval seconds passed from service startup.

Change-Id: I9fab9fb076a955a24c1c157229baf027359d9771
Closes-Bug: 1409012
cinder/scheduler/manager.py
cinder/tests/integrated/integrated_helpers.py
cinder/tests/scheduler/test_scheduler.py