Merge "Fix log message error in capacity filter"
This commit is contained in:
@@ -155,16 +155,13 @@ class CapacityFilter(filters.BaseBackendFilter):
|
|||||||
# of reserved space) which we can over-subscribe.
|
# of reserved space) which we can over-subscribe.
|
||||||
adjusted_free_virtual = (
|
adjusted_free_virtual = (
|
||||||
free * backend_state.max_over_subscription_ratio)
|
free * backend_state.max_over_subscription_ratio)
|
||||||
msg_args = {"available": adjusted_free_virtual,
|
msg_args["available"] = adjusted_free_virtual
|
||||||
"size": requested_size,
|
|
||||||
"grouping": grouping,
|
|
||||||
"grouping_name": backend_state.backend_id}
|
|
||||||
res = adjusted_free_virtual >= requested_size
|
res = adjusted_free_virtual >= requested_size
|
||||||
if not res:
|
if not res:
|
||||||
LOG.warning("Insufficient free virtual space "
|
LOG.warning("Insufficient free virtual space "
|
||||||
"(%(available)sGB) to accommodate thin "
|
"(%(available)sGB) to accommodate thin "
|
||||||
"provisioned %(size)sGB volume on %(grouping)s"
|
"provisioned %(requested)sGB volume on "
|
||||||
" %(grouping_name)s.", msg_args)
|
"%(grouping)s %(grouping_name)s.", msg_args)
|
||||||
else:
|
else:
|
||||||
LOG.debug("Space information for volume creation "
|
LOG.debug("Space information for volume creation "
|
||||||
"on %(grouping)s %(grouping_name)s "
|
"on %(grouping)s %(grouping_name)s "
|
||||||
|
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
`Bug #1953168 <https://bugs.launchpad.net/cinder/+bug/1953168>`_: Fixed
|
||||||
|
miss parameter in the capacity filter log message.
|
Reference in New Issue
Block a user