Skip to content

VIPs and virtual servers ​

Problems with virtual addresses (VIPs), virtual servers (listeners) and the applications that route through them.

Warning vip.missing: "Address ... is not on any interface of node ..." ​

  • Symptom: the warning names a VIP and a node. Clients of that VIP get connection refused or time out on that node, and the VIP page shows the node as missing.
  • Cause: the VIP's address is not configured on any network interface of that node, so Envoy cannot receive traffic for it there. A floating VIP never raises this warning, because only the node holding it has the address.
  • Check: waap vip show -vip NAME (node presence), then ip addr on Linux or ifconfig lo0 on macOS.
  • Fix: add the address to the interface. Or mark the VIP floating and list it in ha.virtual_addresses, if a pair should move it. On macOS for the lab, run make demo-vips.

Envoy cannot bind 127.0.0.2 to 127.0.0.15 on macOS (lab VIPs) ​

  • Symptom: make demo prints "the lab VIPs 127.0.0.2..15 are not on lo0". The virtual servers of the lab applications do not listen, and vip.missing warnings appear. http://dvwa.localhost:18080 through the shared web virtual server still works.
  • Cause: macOS answers only 127.0.0.1 on lo0 until an alias is added. Aliases last until the next reboot.
  • Check: scripts/vip-aliases.sh check lists the missing addresses.
  • Fix: run make demo-vips (it asks for sudo), then restart make demo. scripts/vip-aliases.sh down removes the aliases. Linux needs nothing for 127.0.0.0/8.

Applying is refused: unknown VIP "NAME" ​

  • Symptom: a virtual server (listener) fails validation with listeners[N].vip: unknown VIP.
  • Cause: the vip names a VIP that is not in vips, or its name has a typo.
  • Check: waap vip list.
  • Fix: create the VIP with waap vip add -vip NAME address=IP, or correct the name.

Applying is refused: "port is used only with vip" ​

  • Symptom: listeners[N].port: port is used only with vip (an inline address carries its own port).
  • Cause: the virtual server has a port but no vip. An inline address already holds its port.
  • Check: waap listeners get.
  • Fix: give it both vip and port, or remove port and write address: IP:PORT. Setting both address and vip is refused too: "set either address, or vip with port, not both".

A floating VIP is refused: "a floating VIP must be one of ha.virtual_addresses" ​

  • Symptom: vips[N].floating fails validation.
  • Cause: only addresses that high availability moves can float. The VIP's address is not in ha.virtual_addresses.
  • Check: waap settings get ha.
  • Fix: add the address, with its prefix length, to ha.virtual_addresses, or set floating=false.

A VIP cannot be removed: "VIP is in use" ​

  • Symptom: waap vip remove, or the UI, answers 409: "... is used by virtual servers (listeners) ...".
  • Cause: one or more virtual servers refer to the VIP.
  • Check: the message names them. waap vip show -vip NAME also lists them.
  • Fix: remove those virtual servers first (waap listeners remove -listener NAME, after detaching their applications), or point them at another VIP.

An application without hostnames is refused: "at least one hostname is required" ​

  • Symptom: applications[N].hostnames fails validation, although the application should be alone.
  • Cause: hostnames may be left out only when the application is the only one on every virtual server it uses. Another application shares one of its virtual servers, so the product could not tell them apart.
  • Check: waap listeners get, and waap apps list (which applications share the virtual server).
  • Fix: give the application a virtual server of its own (a VIP and a port), or set hostnames.