Back to Engineering Blog
Engineering Field Notes 3 min read

We Stopped the Virtual IP, and It Moved to the Other Node

A stray secondary address kept reappearing on a node no matter how often we deleted it. An abandoned keepalived pair was re-asserting a VRRP virtual IP every second. Stopping one side just handed the address to the other.

Jason NevillBy , Houston, TX
#keepalived#VRRP#Networking#Root Cause

Key Architectural Takeaways

  • An address that returns instantly after deletion means something is actively asserting it.
  • Rule out causes in order and write the list down; the ruled-out list is the proof.
  • Stopping one half of a VRRP pair just moves the virtual IP to the other half; stop and verify both.

The oddity

During a review we noticed a duplicate secondary address on one infrastructure node, alongside its normal address on the lab subnet. It had been noted earlier as an open item. It was already gone from the node's twin but still present here. We root-caused it before touching anything, since the standing policy is not to assume an oddity is benign.

What we ruled out, in order

  • The interfaces file: clean.
  • if-up.d and if-pre-up.d: only stock hooks.
  • rc.local: absent.
  • Root and user crontabs and cron.d: only stock Debian entries.
  • DHCP client enter and exit hooks: stock.
  • systemd-networkd: inactive, with an empty config directory.
  • NetworkManager: active, but it reported the interface as unmanaged.
  • The wireless interface's DHCP client: a different address, on a different, down interface.
  • Custom systemd units and timers: none referenced the address.

Our first hypothesis, a stale leftover from before a VLAN migration that was never flushed because the box had not rebooted since early June, looked plausible and was wrong. A manual ip addr del made the address reappear immediately. Something was actively re-asserting it.

The cause

ps showed two keepalived processes running continuously since the June boot, one with 24 minutes of accumulated CPU, consistent with an active VRRP loop. The config defined a VRRP instance in MASTER state with an advert_int of 1: one advertisement per second, exactly why a deleted address came back at once. That node's documented role (Tailscale bastion, CrowdSec, NUT, quorum device) never included a VIP. The VIP role belongs to different nodes in the architecture. It looked like a leftover from an earlier design iteration that had been abandoned.

The first fix, and why it was not enough

We stopped and disabled keepalived on that node, and the address was "confirmed gone". That was true only for that node. The twin node was also running the same abandoned instance, and when this one stopped advertising, the twin took over as MASTER. The VIP was still live on the network, just relocated. We stopped and disabled the service there too, and this time checked both nodes: keepalived disabled and inactive, no lingering processes, and the address gone from the network entirely.

What the sweep also found

The node documented as the VIP primary had no keepalived at all. That part of its role had never been implemented, a docs-versus-reality gap, not a regression. The keepalived config files were left on disk on both nodes with the service disabled, in case there is history worth keeping.

Takeaway

When removing one side of a redundant pair, you are not removing the thing, you are changing who holds it. Verify from the network's point of view, not just from the node you edited.

Some of what's described here is a design that hasn't been fully tested yet; those parts say so in the text.

Follow the build on LinkedIn or by RSS.

All Articles

Follow the build

Questions about the build, or spotted something we got wrong? Find us on LinkedIn and GitHub.