Problem
- By default, selecting a host to launch instances is done by nova-scheduler.
- There are use-cases where nova-scheduler can be forced to create instances on a specific host.
Environment
- Platform9 Managed OpenStack - All Versions
Procedure
- Identify a host and its availability zone.
$ openstack host list
- Pass the parameter --availability-zone to the openstack server create command. For example:
$ openstack server create \
--image <IMAGE_UUID> \
--flavor <FLAVOR_UUID> \
--key-name <key ID> \
--availability-zone <ZONE_NAME>:<HOST_UUID> \
--nic net-id=<NETWORK_UUID> \
<INSTANCE_NAME>
Additional Information
OpenStack Availability Zones