Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

[SKIP CI] Update tenancy.md #1542

Merged
merged 4 commits into from
Jul 6, 2017
Merged

[SKIP CI] Update tenancy.md #1542

merged 4 commits into from
Jul 6, 2017

Conversation

lipingxue
Copy link
Contributor

Fixed #1536
This PR updates tenancy.md to match the up-to-date multi-tenancy behavior.

@@ -83,39 +97,40 @@ f15c1f6d-5df5-4a00-8f20-77c8e7a7af11 Product1Test
Lets limit dev team to create volumes of total 20 Gb each not exceeding size of 1 GB. Similarly for QA team, lets put restriction of total 40 GB consumption with each volume size not exceeding 1 GB.

```
#/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vmgroup access add --name=Product1Dev --datastore=datastore3 --allow-create --default-datastore --volume-maxsize=1GB --volume-totalsize=20GB
vmgroup access add succeeded
[root@sc-rdops-vm17-dhcp-3-236:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vmgroup access set --name=Product1Dev --datastore=sharedVmfs-0 --volume-maxsize=1GB --volume-totalsize=20GB
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--datastore=sharedVmfs-0 why? so far the document was referring to datastore3 .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

[root@sc-rdops-vm17-dhcp-3-236:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vmgroup access set --name=Product1Dev --datastore=sharedVmfs-0 --volume-maxsize=1GB --volume-totalsize=20GB
vmgroup access set succeeded

[root@sc-rdops-vm17-dhcp-3-236:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vmgroup access set --name=Product1Test --datastore=sharedVmfs-0 --volume-maxsize=1GB --volume-totalsize=40GB
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


#/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vmgroup access add --name=Product1Test --datastore=datastore3 --allow-create --default-datastore --volume-maxsize=1GB --volume-totalsize=40GB
vmgroup access add succeeded
```
Lets verify that storage restrictions has been set properly.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not for this review, as you are here to update .. can you address following nit?

restrictions has been set properly => restrictions have been set properly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@shuklanirdesh82
Copy link
Contributor

@lipingxue Can you please fix following broke link too from tenancy.md?

Vmgroups can be created and managed via the [Admin CLI](/user-guide/admin-cli/#Vmgroup)

@lipingxue
Copy link
Contributor Author

@shuklanirdesh82 I have addressed your comments, please take a look.

Copy link
Contributor

@shaominchen shaominchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

### Default datastore
When a VM addresses the volume using short notation (volume_name, without @datastore), all VMs in this vmgroup will use default datastore to resolve short volume reference (volume_name will actually mean volume_name@default_datastore).

If "default_datastore" is not set for a vmgroup, then datastore where the VM resides will be used as "default_datastore".
"Default_datastore" is a required parameter when creating a vmgroup. The value is either a valid datastore name, or special string "_VM_DS. The "Default_datastore" field is set to "_VM_DS" for "_DEFAULT" vmgroup post install and any volume create from VM which belongs to "_DEFAULT" vmgroup will be created on the datastore where VM resides.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nits:

  1. "_VM_DS - we are missing the matching quotation mark here.
  2. volume create from VM => volume created from VM

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


## Example

Lets consider a sample use case where there are 2 teams – Dev and Test working on Product1. Lets create separate vmgroups (namely Product1Dev and Product2Test) for each of the teams where we can put restriction on datastore consumption.
Lets consider a sample use case where there are 2 teams – Dev and Test working on Product1. Lets create separate vmgroups (namely Product1Dev and Product1Test) for each of the teams where we can put restriction on datastore consumption.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Lets => Let's

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

@shuklanirdesh82 shuklanirdesh82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lipingxue

looks good to me. Please address open comments before merging.

@lipingxue lipingxue merged commit 06303db into master Jul 6, 2017
@shuklanirdesh82 shuklanirdesh82 deleted the tenancy_md.liping branch November 10, 2017 05:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants