-
Notifications
You must be signed in to change notification settings - Fork 95
Conversation
@pdhamdhere @kerneltime Please review it. |
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
``` | ||
|
||
### Create | ||
A tenant named "_DEFAULT" should have been created by system automatically before users try to create any tenant. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A tenant named "_DEFAULT" should have been created by system automatically before users try to create any tenant. => A tenant named "_DEFAULT" will be created automatically post install.
We need a small write up of the default tenant behavior here |
Will continue to review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM + a couple of small corrections
@@ -93,35 +99,100 @@ optional arguments: | |||
-h, --help show this help message and exit | |||
``` | |||
|
|||
### Update | |||
Update existing tenant. This command allows to update "Description", "Default_datastore" or rename an existing tenant. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command allows to update "Description" and "Default_datastore" fields, or rename an existing tenant.
Datastore access Permissions granted: Choices = | ||
['create', 'delete', 'mount', 'all'] | ||
--name NAME Tenant name | ||
--allow-create Allow create and delete on datastore if set to True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the
datastore to be consistent with other help
@kerneltime |
Address comments fro Ritesh. A small write up of the default tenant behavior is added. |
@@ -17,6 +17,21 @@ limits at granularity of datastore. | |||
|
|||
Tenants can be created and managed via the [Admin CLI](/user-guide/admin-cli/#tenant) | |||
|
|||
## Default tenant | |||
When a VM which does not belong to any tenant issues a request to vmdk_ops, this VM will be assumed to be in _DEFAULT tenant, and will get privileges | |||
associated with this tenant. \_DEFAULT tenant will be automatically created by system post install, so by default vmdk_ops will support request from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo? _Default => _Default?
---------- ------------- ------------- ------------ --------------- ---------- | ||
datastore1 1 1 1 500.00GB 2.00TB | ||
[root@localhost:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py tenant access ls --name=tenant1 | ||
Datastore Allow_create Max_volume_size Total_size |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
White space at the end
datastore1 1 1 1 500.00GB 2.00TB | ||
[root@localhost:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py tenant access ls --name=tenant1 | ||
Datastore Allow_create Max_volume_size Total_size | ||
---------- ------------ --------------- ---------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor nits need addressing. LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few Nits to keep it consistent with other help
usage: vmdkops_admin.py tenant create [-h] --name NAME | ||
[--description DESCRIPTION] | ||
[--vm-list vm1, vm2, ...] | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: show => Show (to keep it consistent with the rest)
[--new-name NEW_NAME] | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: same as above
usage: vmdkops_admin.py tenant rm [-h] --name NAME [--remove-volumes] | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: same as above
Update user guide (admin-cli.md) accordingly after the DEFAULT_TENANT, DEFAULT_PRIVILEGE, and DEFAULT_DATASTORE change are introduced.