Fix cloud-init routing issue on Fedora

Add "NONZEROCONF=yes" to /etc/sysconfig/network to prevent
169.254.0.0 route from being created. This route interferes
with fedora baremetal nodes' access to the nova metadata
server at 169.254.169.254.

Change-Id: Iad77abfc97c0eba944680772f233389481a270ff
This commit is contained in:
Richard Su 2013-06-25 14:49:18 -07:00
parent 0b1ff7d4b0
commit 44df18af75

View File

@ -0,0 +1,8 @@
#!/bin/sh
# zeroconf should not be activated or it will add a 169.254.0.0
# route. The route will interfere with access to the nova metadata
# server at 169.254.169.254.
if ! grep NOZEROCONF /etc/sysconfig/network ; then
echo "NOZEROCONF=yes" >> /etc/sysconfig/network
fi