From 44df18af752bcfe013d7b428bffdc28262ef16f7 Mon Sep 17 00:00:00 2001 From: Richard Su Date: Tue, 25 Jun 2013 14:49:18 -0700 Subject: [PATCH] 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 --- .../fedora/post-install.d/06-network-config-nonzeroconf | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 elements/fedora/post-install.d/06-network-config-nonzeroconf diff --git a/elements/fedora/post-install.d/06-network-config-nonzeroconf b/elements/fedora/post-install.d/06-network-config-nonzeroconf new file mode 100755 index 00000000..5e3f2ced --- /dev/null +++ b/elements/fedora/post-install.d/06-network-config-nonzeroconf @@ -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