Appearance
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), thenip addron Linux orifconfig lo0on macOS. - Fix: add the address to the interface. Or mark the VIP
floatingand list it inha.virtual_addresses, if a pair should move it. On macOS for the lab, runmake demo-vips.
Envoy cannot bind 127.0.0.2 to 127.0.0.15 on macOS (lab VIPs)
- Symptom:
make demoprints "the lab VIPs 127.0.0.2..15 are not on lo0". The virtual servers of the lab applications do not listen, andvip.missingwarnings appear.http://dvwa.localhost:18080through the sharedwebvirtual server still works. - Cause: macOS answers only 127.0.0.1 on
lo0until an alias is added. Aliases last until the next reboot. - Check:
scripts/vip-aliases.sh checklists the missing addresses. - Fix: run
make demo-vips(it asks for sudo), then restartmake demo.scripts/vip-aliases.sh downremoves 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
vipnames a VIP that is not invips, 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
portbut novip. An inlineaddressalready holds its port. - Check:
waap listeners get. - Fix: give it both
vipandport, or removeportand writeaddress: IP:PORT. Setting bothaddressandvipis 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].floatingfails 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 setfloating=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 NAMEalso 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].hostnamesfails 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, andwaap 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.