Malformed /etc/network/interfaces generated when no gateway defined

Bug #1115606 reported by Chris Ricker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cisco Openstack
Fix Released
Medium
Chris Ricker
Folsom
Fix Released
Medium
Chris Ricker

Bug Description

Commenting out node_gateway in site.pp (as site.pp directs users to do when not needed) generates this stanza in /etc/network/interfaces:

iface eth2 inet static
netmask 255.255.255.0
address 2.3.1.2
dns-search sdu.lab
gateway
dns-nameservers 2.3.1.254

The gateway line causes various Debian components not to parse the file correctly -- the line should just be omitted entirely

This is also the source of these errors during puppet runs:

debug: Service[networking](provider=debian): Executing '/etc/init.d/networking start'
err: /Stage[main]/Control/Service[networking]/ensure: change from stopped to running failed: Could not start Service[networking]: Execution of '/etc/init.d/networking start' returned 1: at /etc/puppet/manifests/core.pp:302

Revision history for this message
Chris Ricker (chris-ricker) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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