dhcp-all-interfaces leaves eth0 in place even when it has no link

Bug #1239480 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
High
Ghe Rivero

Bug Description

This is more on the building side - if we're going to autodetect, having /e/n/i with eth0 listed is a bit redundant (and slows down boot).

Revision history for this message
Dan Prince (dan-prince) wrote :

FWIW This only affects distributions which use the ENI files (/etc/network/interfaces). When I implemented this on Fedora with netscripts I specifically removed the eth0 (or whatever) device if it wasn't present via a new disable_interface function that I added. This function is currently a noop if you aren't using netscripts however.

Is truncating /etc/network/interfaces an option? If so... then I think this could be an easy fix.

Ghe Rivero (ghe.rivero)
Changed in diskimage-builder:
assignee: nobody → Ghe Rivero (ghe.rivero)
Revision history for this message
Ghe Rivero (ghe.rivero) wrote :

Another quick fix could be to put our own ine file in place with only the loopback interface active.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/128213

Changed in diskimage-builder:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

Reviewed: https://review.openstack.org/128213
Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=0b861942166b1c89569c3846dd38d2200b69f176
Submitter: Jenkins
Branch: master

commit 0b861942166b1c89569c3846dd38d2200b69f176
Author: Ghe Rivero <email address hidden>
Date: Thu Oct 9 12:33:01 2014 +0000

    Disable all interfaces on eni systems

    We are autodetecting and configuring devices in dhcp-all-interfaces
    so having one configured in /etc/network/interfaces by default
    is redundant and slows boot down.

    Change-Id: Ic4e8a0668c793d21ed2dd96908649c9a77264f67
    Closes-Bug: #1239480

Changed in diskimage-builder:
status: In Progress → Fix Committed
Jay Dobies (jdob)
Changed in diskimage-builder:
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.