Ticket #305 (new defect)

Opened 2 years ago

Host IP address detection fails with Avahi ethN:avahi alias

Reported by: Caleb Assigned to: dev
Priority: major Milestone:
Component: Coherence - across the board Version:
Keywords: Cc:

Description

Running Avahi for automatic IP address configuration in the absence of DHCP services, I've encountered an issue where Coherence does not correctly detect the IP address of the ethN:avahi interface alias. The system is running Debian Sarge, and Coherence v 0.6.6.2.

Here is the relevant ifconfig output:

eth0:avah Link encap:Ethernet  HWaddr <hwaddress>
          inet addr:169.254.7.45  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:21

Here is the .coherence config file:

<config>
  <logging level="warning">
        <logfile active="no">coherence.log</logfile>
  </logging>
<plugin active="yes">
    <content>/tmp</content>
  <uuid>dd717c09-e1ee-4e96-a9b3-df74d170353e</uuid>
  <name>Test FS Store</name>
  <backend>FSStore</backend>
  </plugin>
<controlpoint>no</controlpoint>
<use_dbus>no</use_dbus>
<web-ui>no</web-ui>
<interface>eth0</interface>
</config>

Here is the error message:

WARN  coherence                   May 10 16:19:20  detection of own ip failed, using 127.0.0.1 as own address, functionality will be limited (coherence/base.py:308)

If I change the Avahi auto-ipd.action script so that the interface name doesn't include ":avahi" and update the .coherence file accordingly, the warning does not appear.

I'd guess it has something to do with the length of the interface name, but I don't know that for sure.