]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Scheduler API clean up and refactor
authorZhiteng Huang <zhiteng.huang@intel.com>
Sat, 6 Oct 2012 17:11:41 +0000 (01:11 +0800)
committerZhiteng Huang <zhiteng.huang@intel.com>
Wed, 7 Nov 2012 08:28:07 +0000 (16:28 +0800)
commit7e26d1354af23668591d9df39ab61e67eeb37528
tree2f983456fe476194f4098ef9fc313c47e64bb405
parent5aa1e72911ef690c64c670c6605a189d7d11ae29
Scheduler API clean up and refactor

Unlike Nova scheduler, which has to consider serving compute and volume
scheduling, Cinder scheduler only serves volume scheduling, so there's no
need to keep generic interface 'schedule'. Instead, 'schedule_create_volume'
is added (if missing) to manager/driver class and chance/simple scheduler
driver implementation.

Also this patch changes the interface between API service and scheduler to
allow more information about volume is passed to scheduler for advanced
scheduling while maintained backward compatibility. And this change bumps
scheduler RPC API to version 1.2.

Change-Id: I42be05675cd73f89a03c84105ec512d7ee4f3c3a
cinder/scheduler/chance.py
cinder/scheduler/driver.py
cinder/scheduler/manager.py
cinder/scheduler/rpcapi.py
cinder/scheduler/simple.py
cinder/tests/scheduler/test_rpcapi.py
cinder/tests/scheduler/test_scheduler.py
cinder/volume/api.py