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 a separate DHCP profile and metadata proxy server for each availability zone.

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 nsxv3_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 nsxv3_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.

    metadata_proxy

    Enter the name or UUID of the metadata proxy server for the availability zone.

    dhcp_profile

    Enter the name or UUID of the DHCP profile for the availability zone.

    native_metadata_route

    (Optional) Specify the route used for the metadata proxy service. Enter an IP address with prefix in CIDR notation.

    dns_domain

    (Optional) Enter the DNS domain for hostnames in the availability zone.

    nameservers

    (Optional) Enter one or more DNS servers to configure for DHCP binding entries.

    default_overlay_tz

    (Optional) Enter the name or UUID of the default overlay transport zone.

    default_vlan_tz

    (Optional) Enter the name or UUID of the default VLAN transport zone.

    switching_profiles

    (Optional) Enter the UUIDs of the switching profiles for the availability zone.

    dhcp_relay_service

    (Optional) Enter the name or UUID of the DHCP relay service for the availability zone.

    default_tier0_router

    (Optional) Enter the name or UUID of the default tier-0 router for the 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.