diff --git a/cinder/volume/api.py b/cinder/volume/api.py index 14811fb7128..3e8a2c9270d 100644 --- a/cinder/volume/api.py +++ b/cinder/volume/api.py @@ -979,9 +979,11 @@ class API(base.Base): total_reserve_opts[key] + value reservations = QUOTAS.reserve(context, **total_reserve_opts) except exception.OverQuota as e: - quota_utils.process_reserve_over_quota(context, e, - resource='snapshots', - size=volume.size) + quota_utils.process_reserve_over_quota( + context, + e, + resource='snapshots', + size=total_reserve_opts.get('gigabytes', volume.size)) return reservations