Added scheduler_hints to the OpenStack instance resource.

This allows various hints to be passed to the OpenStack scheduler
that will determine where the instance will be hosted in the cloud.
This commit is contained in:
Joe Topjian
2015-05-05 20:52:46 +00:00
parent b74e74fc16
commit 7ca7eeabe7
3 changed files with 183 additions and 1 deletions

View File

@@ -83,6 +83,9 @@ The following arguments are supported:
* `volume` - (Optional) Attach an existing volume to the instance. The volume
structure is described below.
* `scheduler_hints` - (Optional) Provider the Nova scheduler with hints on how
the instance should be launched. The available hints are described below.
The `network` block supports:
* `uuid` - (Required unless `port` or `name` is provided) The network UUID to
@@ -119,6 +122,25 @@ The `volume` block supports:
example: `/dev/vdc`. Omit this option to allow the volume to be
auto-assigned a device.
The `scheduler_hints` block supports:
* `group` - (Optional) A UUID of a Server Group. The instance will be placed
into that group.
* `different_host` - (Optional) A list of instance UUIDs. The instance will
be scheduled on a different host than all other instances.
* `same_host` - (Optional) A list of instance UUIDs. The instance will be
scheduled on the same host of those specified.
* `query` - (Optional) A conditional query that a compute node must pass in
order to host an instance.
* `target_cell` - (Optional) The name of a cell to host the instance.
* `build_near_host_ip` - (Optional) An IP Address in CIDR form. The instance
will be placed on a compute node that is in the same subnet.
## Attributes Reference
The following attributes are exported: