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.
* Fix issue #673
1. Add logic to check the validity of privilege parameters
2. Add test cases to cover new logic
3. Refactored some test cases
4. Remove all trailing spaces in auth_api.py and error_code.py
The max_volume_size can be set a value even bigger than the total_size:
[root@localhost:/usr/lib/vmware/vmdkops/bin] vmdkops_admin tenant access add --name MyTenant --datastore datastore1 --volume-totalsize 1GB --rights create,delete --volume-maxsize 2GB
{'mount_volume': 0, 'global_visibility': 0, 'max_volume_size': 2048, 'create_volume': 1, 'delete_volume': 1, 'datastore': 'datastore1', 'usage_quota': 1024}
tenant access add succeeded
[root@localhost:/usr/lib/vmware/vmdkops/bin] vmdkops_admin tenant access ls --name MyTenant
Datastore Create_volume Delete_volume Mount_volume Max_volume_size Total_size
datastore1 1 1 0 2.00GB 1.00GB
We should add some parameter validation logic to prevent wrong configuration.
@lipingxue @msterin
The text was updated successfully, but these errors were encountered: