Tutorial: Set Up Resource Tiers Using OpenStack Host Aggregates

Platform9 enables creation of efficient and scalable resource tiers using OpenStack host aggregates. Aggregates allow you to:

For example,

In this tutorial, we will demonstrate creating host aggregates and utilizing them as part of your Platform9 Managed OpenStack private cloud.

Step 1 - Create a New Host Aggregate

After signing into your Platform9 account, switch to the Infrastructure View. Click on the Host Aggregates tab, as shown here.

host-aggregate1

Click on the button to create a new host aggregate. In the wizard that pops up, you can

Congratulations! At this point, the host aggregate is created and should be listed as part of the host aggregates tab.

host-aggregate2

Step 2 - View Utilization/Allocation Across Aggregate

Once you define an aggregate, Platform9 immediately gives you visibility into your current resource utilization and allocation, across compute, storage, and memory, in the context of the specific aggregate. This information can be used to answer questions such as how much capacity do I have in my Palo Alto data center, etc.

host-aggregate3

Step 3 - Optionally associate an Availability Zone

You can now choose to associate an availability zone with this host aggregate, which would create that availability zone, if it doesn't exist already, and put all the hosts from this aggregate into that availability zone. A hypervisor can only belong to one availability zone, but you can choose to assign the same availability zone tag to multiple host aggregates. All the hypervisors, by default, belong to the 'nova' availability zone initially. Associating the aggregate with a new availability zone tag means removing all its hypervisors from this default zone and disassociating the tag ends up putting these hypervisors back in the default zone.
Availability zones are designed to be accessible to the end users, unlike host aggregates, by providing them a way to specify what logical zone to run their application in. The administrator can define what factors represent a zone, like geographic location of the hypervisors, their hardware capabilities or maybe some other availability criteria.

Step 4 - Add to Flavor

At this point, you are ready to start utilizing the resource tier as part of your multi-tenancy, or VM deployment. You do this by adding the aggregate to a new flavor.

host-aggregate4

Step 5 - Launch an Instance

Now that we have set up the host aggregates and flavors, we will launch an instance on the host aggregate.

1. Go to the instances view, and click the button to create a new VM instance.
2. Select the image that the instance will use.
3. Select the flavor created in step 2 or specify an availability zone to spawn the instance.

Congratulations! The instance should now be running on the host aggregate created in step 1.

Step 6 - Aggregates and Multi-Tenancy

By giving access to the flavors that include the host aggregate to one or more tenants, OpenStack allows you to restrict access from that tenant to only resources that are part of that host aggregate. This is the mechanism to achieve isolation of resources across different tenants.


October 14, 2015