Merge "Fix log message error in capacity filter"
This commit is contained in:
commit
e93c2a3c25
@ -155,16 +155,13 @@ class CapacityFilter(filters.BaseBackendFilter):
|
||||
# of reserved space) which we can over-subscribe.
|
||||
adjusted_free_virtual = (
|
||||
free * backend_state.max_over_subscription_ratio)
|
||||
msg_args = {"available": adjusted_free_virtual,
|
||||
"size": requested_size,
|
||||
"grouping": grouping,
|
||||
"grouping_name": backend_state.backend_id}
|
||||
msg_args["available"] = adjusted_free_virtual
|
||||
res = adjusted_free_virtual >= requested_size
|
||||
if not res:
|
||||
LOG.warning("Insufficient free virtual space "
|
||||
"(%(available)sGB) to accommodate thin "
|
||||
"provisioned %(size)sGB volume on %(grouping)s"
|
||||
" %(grouping_name)s.", msg_args)
|
||||
"provisioned %(requested)sGB volume on "
|
||||
"%(grouping)s %(grouping_name)s.", msg_args)
|
||||
else:
|
||||
LOG.debug("Space information for volume creation "
|
||||
"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.
|
Loading…
Reference in New Issue
Block a user