Skip to content

Regression caused by wait-online backport f4831559171 ff. #335

Open
@Whissi

Description

@Whissi

systemd version the issue has been seen with

252.17-1~deb12u1

Used distribution

Debian 12.2

Linux kernel version used

6.1.0-13-amd64

CPU architectures issue was seen on

x86_64

Component

systemd-networkd-wait-online

Expected behaviour you didn't see

systemd-networkd-wait-online should exit with success (zero exit code) when neither '--any' nor '--interface' options specified and
at least one of the interfaces must be in configured state.

Unexpected behaviour you saw

$ /lib/systemd/systemd-networkd-wait-online
Timeout occurred while waiting for network connectivity.
$ networkctl
IDX LINK TYPE     OPERATIONAL SETUP
  1 lo   loopback carrier     unmanaged
  2 eth0 ether    routable    configured
  3 eth1 ether    carrier     configured
  4 eth2 ether    off         unmanaged
  5 eth3 ether    off         unmanaged

5 links listed.

Steps to reproduce the problem

Configure one interface with a static IP address using systemd-networkd.
Maybe you need multiple interfaces and at least one unmanaged interface to hit this.

Additional program output to the terminal or log subsystem illustrating the issue

$ SYSTEMD_LOG_LEVEL=debug /lib/systemd/systemd-networkd-wait-online
Found link 5
Found link 4
Found link 3
Found link 2
Found link 1
eth0: link is configured by networkd and online.
eth2: link is not managed by networkd.
eth1: Operational state 'carrier' is not in range ['degraded':'routable']
Timeout occurred while waiting for network connectivity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions