You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.
It's available from "tenant access set" command, but not available from "tenant access add". It's inconsistent across different commands.
The implementation of this option is incorrect: the product of maxcount and maxsize should not exceed the totalsize. But when running "tenant access set", we can assign any random number (even negative) to maxcount
Why do we even need the "maxcount" option? User can always figure out how many volumes they can create by looking at totalsize and maxsize. This option is redundant and introduces unnecessary complexity.
OTOH the totalSize option can be removed all together. The tenant isn't
using the total size to reserve space nor limit extending a disk (can't do that now anyway?) and if needed it can be derived from the count of disks and the max volume size attrs. Removing max count is also fine as then we define a tenant as the entity with some fixed storage capacity assigned to it (like in Photon) - without checks though.
@shaominchen consistency is a good point, it should be consistent.
As for the need, we heard from a couple of customers (albeit no stats) that it "would be nice to limit the volume count per tenant". The cost is cheap.
The maxcount x maxsize has no direct relations to total size. In thin provisioning, individual limits do no have to be equal total available resource. Users cannot figure out "how many volumes they can create by looking at totalsize and maxsize." due thin provisioning (which is default nowadays) .
So i do not see many reasons to remove it - some value is there + cost is cheap.
About totalSize - I did not catch the reasoning to remove it. The reason to keep it was to put a ceiling to a tenant space reservation.
@msterin Thanks for pointing out the thin provisioning thing - I was not aware of that this is also supported at the volume layer. Looks like it's implicitly or transparently being supported by the back-end.
If that's the case, I agree that we can keep this option since some customers want it. Then we need to fix a couple of things:
Add this option to "tenant access add" command
Check the validity of the parameter value. For now we can even set a negative value
Add one more column for this option in the "tenant access ls" output - currently there's no column for this option:
The "--volume-maxcount" option is confusing:
So, I suggest to remove this option.
@lipingxue @msterin
The text was updated successfully, but these errors were encountered: