You can temporarily block user access to your VMware Integrated OpenStack deployment. For example, you might need to perform maintenance tasks that require blocking users while still allowing administrative access.

By modifying the custom.yml file, you can block user access through the public API network. When users attempt to access OpenStack, they will see maintenance web page instead.

Procedure

  1. If you have not already done so, implement the custom.yml file.
    sudo mkdir -p /opt/vmware/vio/custom
    sudo cp /var/lib/vio/ansible/custom/custom.yml.sample /opt/vmware/vio/custom/custom.yml
  2. Edit the custom.yml file by uncommenting the haproxy_custom_maintenance_page parameter.
    ##############################
    # haproxy maintenance page
    ##############################
    # location of the maintenance page to be displayed when the public VIP is disabled
    haproxy_custom_maintenance_page : "/home/viouser/custom/503maintenance.html"
    # mail contact for maintenance page.
    # haproxy_mailto: test@vmware.com
    
  3. Save the custom.yml file.
  4. Pause to disable access from the public VIP and show the maintenance web page.
    viocli deployment pause --verbose 
  5. Resume to allow access.
    viocli deployment resume --verbose