]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add some log info for NoValidHost
authorJohn Griffith <john.griffith@solidfire.com>
Wed, 16 Jul 2014 13:34:16 +0000 (13:34 +0000)
committerJohn Griffith <john.griffith@solidfire.com>
Wed, 16 Jul 2014 13:39:04 +0000 (13:39 +0000)
commit0a0e851f3b294b824d3a6c4b60c9fbfca520e62b
treeec47918d380a7b3c4e4a58ccf0d1f8043ac21c8d
parentca903b9d464d386f01d04173db4d2bbffe2738b5
Add some log info for NoValidHost

Currently when a create call fails due to a
misconfiguration on the backend, or a problem
with satisfying the extra-specs from the filter
scheduler, the only thing you get in the logs is
a "No valid host".

This patch just adds a tiny bit more info to give us
a better idea where we're at.

First the exception shouldn't be setup with "reason=""",
so at least add "reason=no weighed hosts found".

Second, add a warning message prior to getting to that
point when we fail to find a host that satisfies the
{extra/qos}-specs that were requested, and include what
was being requested.

Change-Id: I2ce65b973196f673bac455613a6f8626320339ba
cinder/scheduler/filter_scheduler.py