MASTER idempotency guard trusts UP flag alone #8
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
eric/10-wancarp#8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Low · Location:
10-wancarp:390The MASTER check skips any interface whose UP flag is set. If an earlier BACKUP run threw partway through, or someone ran
ifconfig <dev> upby hand, the interface is UP but has no IP or DHCP client. MASTER then logs "already up, skipping" and the promoted node has no working WAN.This is rare, but it is the one way the idempotency check reports a false OK.
Suggested fix: also require a configured address on the interface (e.g. an
inetline, orget_interface_ip()non-empty) before skipping.