Use getifaddrs for node address detection

Bug #1252700 reported by Raghavendra D Prabhu
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
Fix Committed
Medium
Unassigned
5.5
New
Medium
Unassigned
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Status tracked in 5.6
5.5
Triaged
Medium
Unassigned
5.6
Fix Released
Medium
Unassigned

Bug Description

Currently, different methods are used -

bind_address if set
wsrep-node-address if set
ifconfig/ip addr

It would be good to have a detection based on getifaddrs (http://man7.org/linux/man-pages/man3/getifaddrs.3.html) with default interface as eth0 (it will be a variable with default value of eth0).

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Fix for this is in codership wsrep github:

 commit aa0ef0ced2ecc807bfdda3ce7ae584fa9796f302
 Author: Teemu Ollakka <email address hidden>
 Date: Thu Feb 12 18:01:58 2015 +0200

     codership/mysql-wsrep#45 use getifaddr() for address autoguessing

     * Ported patches:
     http://bazaar.launchpad.net/~maria-captains/maria/maria-10.0-galera/revision
     http://bazaar.launchpad.net/~maria-captains/maria/maria-10.0-galera/revision
     * Changed loopback detection to be done via ifa->ifa_flags
     * Removed unused function wsrep_guess_address()

Changed in codership-mysql:
status: New → Fix Committed
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-1089

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.