Network injection creates an invalid /etc/network/interfaces file if no DNS is specified

Bug #702973 reported by Andy Southgate
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Armando Migliaccio

Bug Description

In flat networking without DHCP, network injection creates a /etc/network/interfaces file within the instance image before booting it. If no DNS is specified for the network, the template creates a line containing just:

dns-nameservers

This is invalid and causes ifup to fail with 'couldn't read interfaces file', but you don't necessarily get to see that on the console so it can be tricky to diagnose. Found in lp:~citrix-openstack/nova/xenapi-glance-2:542 but probably present since inception.

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

As a work-around we can add --flat_network_dns=<fake-dns-ip> to the flagfile or on the command-line to nova-manage, as per Question #146592

Changed in nova:
assignee: nobody → Armando Migliaccio (armando-migliaccio)
Thierry Carrez (ttx)
Changed in nova:
status: Confirmed → In Progress
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.2
status: Fix Committed → Fix Released
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.