Deploy the VM to a resource pool for VMware drivers

Registered by Vincent Hou on 2014-02-28

This blueprint brings the concept of the resource pool into Nova for VMware drivers. The VM can be deployed to a specified resource pool. We can start with the simple use case that one resource pool is only connected to one cluster or one host.

=============================General Design=================================
A new flag named resource_pool is added into nova.conf. This flag is used together with cluster_name as a combination to specify the resource pool, where the VM will be deployed.

The following use cases will be taken into account in this blueprint.
1. In VCenter:
*)The resource pool is under a cluster: use the combination of cluster_name and resource_pool.
The cluster_name is used to set the cluster name and the resource_pool is used to set the resource pool name.
For example, a resource pool named "pool" is under a cluster named "cluster1". We will write:
cluster_name=cluster1
resource_pool=cluster1:pool, we need to combine the cluster name here as well, because it needs to differ from the case of a resource pool under a host.

*)The resource pool is directly under a host: use resource_pool to specify the resource pool name.
For example, a resource pool named "pool" is under a host named "host1". We will write:
resource_pool=host1:pool, cluster_name does not set, so we can know the name before : is the host name. This is also the mechanism to differentiate a cluster and a host.

2. In ESX host:
*)The resource pool is directly under a host: this is the same to the case in VCenter.

The resource pool is under another resource pool: this use case is tentatively not implemented at the first stage.
============================================================================

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Vincent Hou
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

--- Qin Zhao ---
What is the difference between this blueprint and https://blueprints.launchpad.net/nova/+spec/vmware-resource-pool-refactor ?
--- Qin Zhao ---

--- Shawn Hartsock ---
We paused work on:
https://blueprints.launchpad.net/nova/+spec/vmware-resource-pool-refactor

Because we wanted to gain stability in the current architecture first. The use of resource pools. Is a vSphere primitive. It is more fundamental than Hosts or Clusters in some senses. The concept does not fit cleanly into existing OpenStack models.
--- Shawn Hartsock ---

--- Vincent Hou ---
I guess we can combine this blueprint with both https://blueprints.launchpad.net/nova/+spec/vmware-resource-pool-refactor and https://blueprints.launchpad.net/nova/+spec/esx-resource-pools-as-compute-nodes together, since the resource pool support is the common target.
--- Vincent Hou ------ Qin Zhao ---
What is the difference between this blueprint and https://blueprints.launchpad.net/nova/+spec/vmware-resource-pool-refactor ?
--- Qin Zhao ---

--- Shawn Hartsock ---
We paused work on:
https://blueprints.launchpad.net/nova/+spec/vmware-resource-pool-refactor

Because we wanted to gain stability in the current architecture first. The use of resource pools. Is a vSphere primitive. It is more fundamental than Hosts or Clusters in some senses. The concept does not fit cleanly into existing OpenStack models.
--- Shawn Hartsock ---

--- Vincent Hou ---
I guess we can combine this blueprint with both https://blueprints.launchpad.net/nova/+spec/vmware-resource-pool-refactor and https://blueprints.launchpad.net/nova/+spec/esx-resource-pools-as-compute-nodes together, since the resource pool support is the common target.
--- Vincent Hou ---

If you are still working on this, please re-submit via nova-specs. If not, please mark as obsolete, and add a quick comment to describe why. --johnthetubaguy (20th April 2014)

Gerrit topic: https://review.openstack.org/#q,topic:bp/vmware-resource-pool-enablement,n,z

Addressed by: https://review.openstack.org/82724
    VMware: add the support of host level resource pool

Addressed by: https://review.openstack.org/84629
    Propose: Enabling resource pool for VMwareVCDriver

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.