]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Allow HostState to handle empty capabilities
authorZhiteng Huang <zhithuang@ebaysf.com>
Fri, 5 Dec 2014 10:01:53 +0000 (18:01 +0800)
committerZhiteng Huang <zhithuang@ebaysf.com>
Fri, 5 Dec 2014 10:01:53 +0000 (18:01 +0800)
commit6ac5054ceb398b55a03d311ff868e5c93a65dcbb
tree5c2044b5d8c3563d5a659a95c07a32d45d565ef0
parent18a7f13d38ca3c74fa1ebaf4d03afebb4216e578
Allow HostState to handle empty capabilities

In some cases, where the capabilities reported from driver is
emtpy, scheduler would raise exception thus unable to correctly
handle scheduling request even when other backend candidates are
able to fulfill the request.  This change does some modifications
to HostState so that it is able to handle empty capabilities.

Change-Id: Icb6522852d427dea3fbd1ec4b4cc94a184d3669d
Fixes-bug: #1398875
cinder/scheduler/host_manager.py
cinder/tests/scheduler/test_host_manager.py