Bionic: interface stuck in state "configuring" on a VM with two NICs, DHCP, and the secondary NIC configured to ignore routes from DHCP

Bug #1823730 reported by Michael Steffens
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

[Impact]

Network interfaces not using route information from DHCP4 do not reach configured state, but remain 'configuring' on Bionic.

[Test Case]

 1) Launch a VM with two network interfaces connected to ports on distinct network, each configured using DHCP4.

 2) Configure systemd-networkd to set up both interfaces via DHCP, but to ignore DHCP route information (plus possibly other system wide configuration supposed to be unambiguous, like DNS) from secondary interface. You can do so
    * either directly in /etc/systemd/network/, as shown in https://github.com/systemd/systemd/issues/9289,
    * or via netplan.io 0.96-0ubuntu0.18.04.2, as shown in https://bugs.launchpad.net/netplan/+bug/1759014/comments/48.

 3) Reboot.

 4) Both interfaces should now be reported as configured:

    # networkctl -a
    IDX LINK TYPE OPERATIONAL SETUP
      1 lo loopback carrier unmanaged
      2 ens3 ether routable configured
      3 ens4 ether routable configured

    3 links listed.

[Other Info]

The issue is known for systemd releases before 239, and was fixed with https://github.com/systemd/systemd/commit/223932c786ada7f758a7b7878a6ad2dae0d1e5fb.

I have tested it by manually merging that fix into sources of systemd 237-3ubuntu10.15, rebuilding and installing the package. Worked fine.

See also https://bugs.launchpad.net/netplan/+bug/1759014 and https://bugs.launchpad.net/netplan/+bug/1776228.

Tags: bionic dhcp4
tags: added: bionic dhcp4
description: updated
Revision history for this message
Dan Streetman (ddstreet) wrote :

commit 223932c786ada7f758a7b7878a6ad2dae0d1e5fb was just added to systemd in bionic via bug 1804478.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
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.