When project quota set unlimited(-1), and user in the
project is limited to a value.Then project quota must
smaller than project usage when checking quotas, which
means the value 'overs' is not None.
In this case, even though the user not over the quota,
but they can not create share
Closes-bug: #1872872
Change-Id: Id9e2bcb5d30d2b81b0723dd296b537ac7d4519f2
(cherry picked from commit 780053968270900a1402fa0db4ae96bd16060ad4)
(cherry picked from commit 73837ce05a9bf07c7dd4e15c98eee511ff9e1a10)
(cherry picked from commit f2afb50fbbd6ec1b14ba93a64d292cbc66e53cfe)
(cherry picked from commit b99b57825e9b140e3d6c163a810e7cd49adb6e3d)
Reviewed: https:/ /review. opendev. org/724338 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=bc063f06dbd c108ffceec47e1c c8421e13313d8b
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit bc063f06dbdc108 ffceec47e1cc842 1e13313d8b
Author: zhangqing <email address hidden>
Date: Tue Mar 17 20:50:49 2020 +0800
fix bug in quota checking
When project quota set unlimited(-1), and user in the
project is limited to a value.Then project quota must
smaller than project usage when checking quotas, which
means the value 'overs' is not None.
In this case, even though the user not over the quota,
but they can not create share
Closes-bug: #1872872
Change-Id: Id9e2bcb5d30d2b 81b0723dd296b53 7ac7d4519f2 a1402fa0db4ae96 bd16060ad4) c7dd4e15c98eee5 11ff9e1a10) b14ba93a64d292c bc66e53cfe) e3d6c163a810e7c d49adb6e3d)
(cherry picked from commit 780053968270900
(cherry picked from commit 73837ce05a9bf07
(cherry picked from commit f2afb50fbbd6ec1
(cherry picked from commit b99b57825e9b140