Task 5: Manage cloud resource consumption using quotas in Contrail
In this task you will define quotas for resources in Contrail so that you can design and operate the cloud resources for multiple projects or tenants for optimal use.
Disclaimer: The steps in this task are only applicable to Juniper’s Cloud Software Trial tool.
Some values and/or information may vary for users executing this task using a non-Juniper trial tool.
Open the Contrail web interface in the browser by navigating to https://192.168.250.1:8143. Then, login to the Contrail dashboard using the below credentials.
Domain: (leave blank)
Once you are in the dashboard, click the “Configure” tab, shown by the purple wrench icon, located in the top left navigation panel
Click on Infrastructure > Project Quotas, listed in the left navigation panel. Change the project to demo
Now click on the “edit project quotas” icon located at the right top corner (below the search bar)
Change the “Virtual Networks” quota from “Unlimited” to “1”
Now navigate to Configure > Networking > Networks
Click on the (+) icon on the right top corner to create a new virtual network.
Name it “red- network” and choose a subnet range. Click “Save”.
(In the example, a virtual network with “name=red-network” & subnet with CIDR block “126.96.36.199/24” is created).
The gateway will be automatically populated.
Repeat above step to create a second virtual network with the name “green-network” and choose a different subnet range. Click “Save”.
Since the quota for Virtual Networks was set to “1” for “demo” tenant, you will not be allowed to create more than ONE virtual-network in demo tenant
Similarly, you can create quotas per tenant for different Contrail resources.
NOTE: You will still be able to create more than ONE virtual network in other tenants