Project

General

Profile

Actions

Bug #3997

closed

get_interface_ip() returns first IP on interface, not necessarily primary IP

Added by Chris Buechler about 10 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Category:
Interfaces
Target version:
Start date:
11/06/2014
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:

Description

In some circumstances, IPs can be added/removed from an interface in such ways that an interface's primary IP is no longer the first IP in ifconfig output. This leads to issues as described in #3811 and #2495 for instance.

Ermal's long since fixed most of these possibilities by ensuring consistency in IP change/add/remove. There are circumstances where this fails catastrophically though.

assigning to myself for further testing and analysis. Ermal, if you can add thoughts here it'd be appreciated.


Related issues

Related to Regression #11545: Primary interface address is not always used when VIPs are presentResolvedReid Linnemann

Actions
Actions

Also available in: Atom PDF