2020-04-15 02:36:42 |
zhangqing |
description |
When creating share, it will check the quota, if the quota is over it will raise error:ShareLimitExceeded.
In One case, when a project's quota set unlimited(-1), and user in the project is limited to a value(>=0).In normal, the user could create share when the user's share not over the user quota. But now,even when the user not over the user's quota they can't create share.
The method _quota_reserve in manila.db.sqlalchemy.api will check the project or user over or not. If user quota >=0, it will check project quota and project quota usage, user quota and user quota usage. In the situation above, project quota (-1) must be smaller than project usage, then the value 'overs' is not None, it will raise ShareLimitExceeded.Actually,
it shouldn't raise error. |
When creating share, it will check the quota, if the quota is over it will raise error:ShareLimitExceeded.
In One case, when a project's quota set unlimited(-1), and user in the project is limited to a value(>=0).In normal, the user could create share when the user's share not over the user quota. But now,even when the user not over the user's quota they can't create share.
The method _quota_reserve in manila.db.sqlalchemy.api will check the project or user over or not. If user quota >=0, it will check project quota and project quota usage, user quota and user quota usage. In the situation above, project quota (-1) must be smaller than project usage, then the value 'overs' is not None, it will raise ShareLimitExceeded. Actually,it shouldn't raise error. |
|