Unsupported device type 772 for "lo" caused by dhcp-all-interfaces

Bug #1621501 reported by Waldemar Znoinski
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
Undecided
Waldemar Znoinski

Bug Description

dhcp-all-interfaces configures 'lo' for dhcp:
Sep 8 13:59:40 ubuntu dhcp-all-interfaces.sh[5275]: Inspecting interface: lo...Inspecting interface: lo...Configured lo

hence syslogs during startup says:
Sep 8 14:04:42 ubuntu dhclient[6257]: Copyright 2004-2015 Internet Systems Consortium.
Sep 8 14:04:42 ubuntu dhclient[6257]: All rights reserved.
Sep 8 14:04:42 ubuntu dhclient[6257]: For info, please visit https://www.isc.org/software/dhcp/
Sep 8 14:04:42 ubuntu dhclient[6257]:
Sep 8 14:04:42 ubuntu dhclient[6257]: Unsupported device type 772 for "lo"
Sep 8 14:04:42 ubuntu ifup[6218]: Unsupported device type 772 for "lo"
Sep 8 14:04:42 ubuntu ifup[6218]: If you think you have received this message due to a bug rather
Sep 8 14:04:42 ubuntu ifup[6218]: than a configuration issue please read the section on submitting
Sep 8 14:04:42 ubuntu ifup[6218]: bugs on either our web page at www.isc.org or in the README file
Sep 8 14:04:42 ubuntu ifup[6218]: before submitting a bug. These pages explain the proper
Sep 8 14:04:42 ubuntu ifup[6218]: process and the information we find helpful for debugging..
Sep 8 14:04:42 ubuntu ifup[6218]: exiting.
Sep 8 14:04:42 ubuntu dhclient[6257]:
Sep 8 14:04:42 ubuntu ifup[6218]: Failed to bring up lo.
Sep 8 14:04:42 ubuntu dhclient[6257]: If you think you have received this message due to a bug rather
Sep 8 14:04:42 ubuntu dhclient[6257]: than a configuration issue please read the section on submitting
Sep 8 14:04:42 ubuntu dhclient[6257]: bugs on either our web page at www.isc.org or in the README file
Sep 8 14:04:42 ubuntu dhclient[6257]: before submitting a bug. These pages explain the proper
Sep 8 14:04:42 ubuntu dhclient[6257]: process and the information we find helpful for debugging..
Sep 8 14:04:42 ubuntu dhclient[6257]:
Sep 8 14:04:42 ubuntu dhclient[6257]: exiting.
Sep 8 14:04:42 ubuntu systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Sep 8 14:04:42 ubuntu systemd[1]: Failed to start Raise network interfaces.

this causes networking.target other services dependant on it too, i.e.: cloud-init
Sep 8 14:04:42 ubuntu systemd[1]: Dependency failed for Initial cloud-init job (metadata service crawler).
Sep 8 14:04:43 ubuntu systemd[1]: cloud-init.service: Job cloud-init.service/start failed with result 'dependency'.
Sep 8 14:04:43 ubuntu systemd[1]: networking.service: Unit entered failed state.
Sep 8 14:04:43 ubuntu systemd[1]: networking.service: Failed with result 'exit-code'.

Revision history for this message
Waldemar Znoinski (wznoinsk) wrote :

ubuntu 16

summary: - Unsupported device type 772 for "lo"
+ Unsupported device type 772 for "lo" caused by dhcp-all-interfaces
Revision history for this message
Stephane Miller (stephaneeee) wrote :

Hi,

Can you please add:

- your command-line arguments & environment variables you used to build
- The version of the distro you are building on

That way we can reproduce the bug.

Thanks!

Changed in diskimage-builder:
status: New → Incomplete
Revision history for this message
Waldemar Znoinski (wznoinsk) wrote :

host:
 cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial

DIB:
declare -x DIB_CLOUD_INIT_DATASOURCES="NoCloud, OpenStack"
declare -x DIB_DEBUG_TRACE="1"
...
declare -x DIB_RELEASE="xenial"
declare -x DIB_REPOREF_ironic_agent="stable/mitaka"'

+ disk-image-create --no-tmpfs ubuntu labomatic-hostname labomatic-proxy dynamic-login baremetal labomatic-sshd-pwauth labomatic-nis labomatic-sieopenstack-sudoers dhcp-all-interfaces -o /labomatic/images/ubuntu16_minimal

non of the elements except for dhcp-all-interfaces touch any of the network interfaces configuration

Changed in diskimage-builder:
assignee: nobody → Waldemar Znoinski (wznoinsk)
status: Incomplete → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

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

commit bc80572061eb4c638e4c64d7d96fac39e6d79eab
Author: Waldemar Znoinski <email address hidden>
Date: Thu Sep 8 17:11:32 2016 +0000

    don't configure 'lo' for dhcp

    On systemd-based operating systems that don't
    use /etc/sysconfig/network-scripts
    dhcp-all-interfaces configures 'lo' for dhcp.
    This causes errors and fails networking.target
    causing system-wide issues. This change excludes
    'lo' at dhcp-all-interfaces udev rules level.

    Closes-bug: #1621501
    Change-Id: I7563b766827bedbea7ae1de35e5bdfcbf1fc0d1e
    Co-Authored-By: Jeremy Stanley <email address hidden>

Changed in diskimage-builder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (feature/v2)

Fix proposed to branch: feature/v2
Review: https://review.openstack.org/391939

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (feature/v2)
Download full text (16.0 KiB)

Reviewed: https://review.openstack.org/391939
Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=7cc65d3cbdbffb4ac941dbb889f436be1d18cfa2
Submitter: Jenkins
Branch: feature/v2

commit 872da68a9032036d392e7b6236d730b7c17b7eb7
Author: Paul Belanger <email address hidden>
Date: Sun Oct 23 18:49:33 2016 -0400

    Add support for bindep.txt

    Currently, this is a noop, since diskimage-builder currently uses
    tests/install_test_deps.sh to manage OS dependencies. The next patch
    in the series, will complete the migration to bindep.

    Change-Id: I3b599983106b87fec6a4b6348469ed037654810e
    Signed-off-by: Paul Belanger <email address hidden>

commit 7f1494a43348da65c0006c8d2477c6ab36bd5fb1
Author: Markos Chandras <email address hidden>
Date: Wed Oct 19 18:59:07 2016 +0100

    elements: zypper: Do not pull recommended packages

    Recommended packages are usually useful but we normally don't need
    them in order to have a working system. As a result, avoid pulling
    them in when doing a regular package installation or a distribution
    update. Extra packages can be pulled in using the usual '-p' parameter
    or from within the elements that actually need them. The results of
    this change are quite significant, resulting to gains from a few dozen
    of MBs up to a few hundred depending on the selected elements.

    Change-Id: I5838829c631990c7a1f3b67548accd9a603fe20c

commit a44b55ccaaff7f252f048a180a26006c86d21ceb
Author: Ian Wienand <email address hidden>
Date: Thu Oct 20 15:19:31 2016 +1100

    Turn down yum install-packages

    When debugging, this is very noisy for very little value. If we need
    to specifically debug this script we can turn up the level.

    Change-Id: Ie15f16397c37e718aa919853697cbf2c5c08503c

commit cfcbd4ffbefe4d5bc2bd78b510a3eb1f619af377
Author: Markos Chandras <email address hidden>
Date: Wed Oct 19 17:53:01 2016 +0100

    elements: source-repositories: Add git package mapping for SUSE

    The 'git' command line tool is in the git-core SUSE package

    Change-Id: Ib2c5dc5ab9bbde2520f43682c654a9c3270bac09

commit 1fe1e3f606aacabad8de78d36c0ba1f91962bc9e
Author: Markos Chandras <email address hidden>
Date: Wed Oct 19 16:16:35 2016 +0100

    elements: growroot: Add SUSE package mappings

    Add growpart and e2fsprogs package mappings for SUSE.

    Change-Id: I4544c3b5bd561f7483cd10f65e2d6366b52d57cd

commit bb29082910b822aae2c27cdf39c67545e3f326f9
Author: Matthew Thode <email address hidden>
Date: Tue Oct 11 20:17:49 2016 -0500

    Document install of diskimage-builder on Gentoo

    Change-Id: I27bf3499f998dcbdeb5cfebddde306e5200cc0b5

commit 82b299bbdfb4df55c44b1526491be64cdf89e181
Author: Matthew Thode <email address hidden>
Date: Fri Oct 7 11:16:28 2016 -0500

    start cloud-init-local in the boot runlevel

    cloud-init-local needs to be run in the boot runlevel because it
    modifies services in the default runlevel. When a runlevel is started
    it is cached, so modifications that happen to the current runlevel while
    you are in it are not acted upon.

    Change-Id: Ifeae0071fc9e738ec223ec0...

tags: added: in-feature-v2
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.