]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix InstanceLocalityFilter scheduler filter
authorIvan Kolodyazhny <e0ne@e0ne.info>
Wed, 18 Nov 2015 13:42:13 +0000 (15:42 +0200)
committerIvan Kolodyazhny <e0ne@e0ne.info>
Wed, 18 Nov 2015 13:42:13 +0000 (15:42 +0200)
commit48ca2ca67c63cc57965f339bb45999222b4fc771
tree329ba500b7a4b5101da1334fe68dbbb28a4a3178
parent6f6b0221bdee4f3d13be28e2ce7d3dd879fae537
Fix InstanceLocalityFilter scheduler filter

Commit I51254e20151fe1d6771897e64a8d0bdf2d674d03 introduces new error:
We use novaclient extensions instead of Nova API extensions. In such
case, InstanceLocalityFilter won't find Nova ExtendedServerAttributes
extension and will raise CinderException.

This patch fixes novaclient usage in a right way.

Change-Id: I36fb67d597b7848dd4796ea672bc573a570677e8
Closes-Bug: #1517431
cinder/compute/nova.py
cinder/tests/unit/scheduler/fakes.py
cinder/tests/unit/scheduler/test_host_filters.py