[openstack-dev] [nova] avahi-autoipd vs. nova networking (cloud-init)

Mike Spreitzer mspreitz at us.ibm.com
Sat Mar 29 15:53:13 UTC 2014


I run into trouble in Ubuntu VMs when avahi-autoipd is installed.  This is 
when I install OpenStack using DevStack with a fairly plain local.conf. 
For example, make an instance of Ubuntu Server 12.04.  You can reboot it, 
and all is well.  Cloud-init continues to be able to read its metadata 
from 169.254.169.254.  Here is an excerpt from the log (as shown in 
Horizon) of a successful reboot:

cloud-init start-local running: Fri, 28 Mar 2014 15:24:45 +0000. up 3.46 
seconds
no instance data found in start-local
ci-info: lo    : 1 127.0.0.1       255.0.0.0       .
ci-info: eth0  : 1 10.10.0.136     255.255.0.0     fa:63:63:c3:0c:b0
ci-info: route-0: 0.0.0.0         10.10.0.1       0.0.0.0         eth0 UG
ci-info: route-1: 10.10.0.0       0.0.0.0         255.255.0.0     eth0   U
cloud-init start running: Fri, 28 Mar 2014 15:24:45 +0000. up 3.99 seconds
found data source: DataSourceEc2
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
 * Starting AppArmor profiles       [80G [74G[ OK ]
landscape-client is not configured, please run landscape-config.
 * Stopping System V initialisation compatibility[74G[ OK ]
 * Starting System V runlevel compatibility[74G[ OK ]
 * Starting regular background program processing daemon[74G[ OK ]
 * Starting save kernel messages[74G[ OK ]
 * Starting deferred execution scheduler[74G[ OK ]
 * Starting ACPI daemon[74G[ OK ]
 * Starting automatic crash report generation[74G[ OK ]
 * Stopping save kernel messages[74G[ OK ]
 * Starting CPU interrupts balancing daemon[74G[ OK ]
 * Stopping System V runlevel compatibility[74G[ OK ]
 * Starting execute cloud user/final scripts[74G[ OK ]
cloud-init boot finished at Fri, 28 Mar 2014 15:24:58 +0000. Up 16.74 
seconds

After avahi-autoipd is installed, there is an extra route (number 2 in the 
excerpt below) that makes 169.254.169.254 unreachable.  Here is an excerpt 
from the log of a reboot after avahi-autoipd is installed:

cloud-init start-local running: Fri, 28 Mar 2014 18:39:24 +0000. up 5.10 
seconds
no instance data found in start-local
ci-info: lo    : 1 127.0.0.1       255.0.0.0       .
ci-info: eth0  : 1 10.10.0.136     255.255.0.0     fa:63:63:c3:0c:b0
ci-info: route-0: 0.0.0.0         10.10.0.1       0.0.0.0         eth0 UG
ci-info: route-1: 10.10.0.0       0.0.0.0         255.255.0.0     eth0   U
ci-info: route-2: 169.254.0.0     0.0.0.0         255.255.0.0     eth0   U
cloud-init start running: Fri, 28 Mar 2014 18:39:25 +0000. up 5.90 seconds
2014-03-28 18:39:28,821 - util.py[WARNING]: 
'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [3/120s]: 
url error [[Errno 113] No route to host]

I have spared you all the bloody mess that follows.

Of course, avahi-autoipd thinks it is doing me a favor.  Nova thinks it is 
doing me harm.  Which is right, and how do we achieve harmony?

Thanks,
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140329/28da4f2c/attachment.html>


More information about the OpenStack-dev mailing list