Improve logging to debug invalid "extra_specs" entries
When volume creation fails due to invalid extra_specs entry, it's hard to find a mismatch between extra_specs and capabilities exposed by multiple hosts. This additional log printing will help to detect a root cause of the failure. See-Also: Ibca56c8ad4cc473ad35f1c79e9892acbf08bf5f1 Co-Authored-By: Sergey Gotliv <sgotliv@redhat.com> Change-Id: I921a8df18684221c424570882e7b932fc648acb1
This commit is contained in:
parent
d3fe19cd3b
commit
d36762fcf9
@ -51,6 +51,8 @@ class CapabilitiesFilter(filters.BaseHostFilter):
|
||||
except AttributeError:
|
||||
return False
|
||||
if cap is None:
|
||||
LOG.debug("Host doesn't provide capability '%(cap)s' " %
|
||||
{'cap': scope[index]})
|
||||
return False
|
||||
if not extra_specs_ops.match(cap, req):
|
||||
LOG.debug("extra_spec requirement '%(req)s' "
|
||||
|
Loading…
Reference in New Issue
Block a user