mogan/doc/source/user/availability-zones.rst

974 B

Select availability zones where servers are launched

You can select which availability zone servers are launched on.

  1. To select the availability zone where servers are launched, use the --availability-zone ZONE parameter on the openstack baremetalcompute server create command.

    For example:

    $ openstack baremetalcompute server create --image IMAGE --flavor m1.tiny \
      --key-name KEY --availability-zone ZONE --nic net-id=UUID \
      --partition ephemeral_gb=500 SERVER
  2. To view the list of valid zones, use the openstack baremetalcompute availability zone list command.

    $ openstack baremetalcompute availability zone list
    +-----------+
    | Zone Name |
    +-----------+
    | zone1     |
    | zone2     |
    +-----------+