Availability zones enable high availability for network resources. You can place nodes running the same service in different availability zones to ensure that service is not interrupted in the event of a failure in one zone.

Prerequisites

  • Create an edge cluster for the new availability zone.

  • Create a resource pool on the new edge cluster.

  • Configure the new edge cluster to use the appropriate vSphere Distributed Switch. You can create a new distributed switch for the zone if desired.

  • In NSX-V, create a transport zone that includes the new edge cluster.

Procedure

  1. Log in to the OpenStack Management Server.
  2. If your deployment is not using a custom.yml file, copy the template custom.yml file to the /opt/vmware/vio/custom directory.
    sudo mkdir -p /opt/vmware/vio/custom
    sudo cp /var/lib/vio/ansible/custom/custom.yml.sample /opt/vmware/vio/custom/custom.yml
  3. Open the /opt/vmware/vio/custom/custom.yml file in a text editor.
  4. Uncomment the nsxv_availability_zones parameter and set its value to the name of the availability zone that you want to create.

    The value of this parameter can include multiple availability zones. Separate multiple names with commas (,).

  5. Uncomment the nsxv_availability_zones_detail parameter and configure it for your new availability zone.

    Option

    Description

    zone_name

    Enter the name of the availability zone that you want to configure.

    resource_pool_id

    Enter the managed object identifier (MOID) of the resource pool that you created for the new availability zone.

    datastore_id

    Enter the MOID of the datastore that you want to use for the new availability zone.

    edge_ha

    Enter True to enable high availability for edge nodes or False to disable it.

    ha_datastore_id

    Enter the MOID of the datastore that you want to use for high availability for edge nodes.

    If you set edge_ha to False, do not specify a value for the ha_datastore_id parameter.

    external_network

    Enter the MOID of the external network port group on the distributed switch for the new availability zone.

    vdn_scope_id

    Enter the MOID of the transport zone that you created for the new availability zone.

    mgt_net_id

    Enter the MOID of the management network for your deployment.

    mgt_net_proxy_ips

    Enter the IP addresses of the metadata proxy server for your deployment.

    dvs_id

    Enter the MOID of the distributed switch for the new availability zone.

    Ensure that there is one copy of the preceding parameters for each availability zone configured.

  6. Deploy the updated configuration.
    sudo viocli deployment configure --limit controller

What to do next

To specify an availability zone for a network, include the --availability-zone-hint az-name parameter when creating the network.