netplan not sending DHCP request of IPoIB interfaces.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
plan (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
netplan for infiniband does not send out any DHCP requests. It works fine for other Ethernet interfaces. if I manually just issue 'dhclient ibs2' is gets a DHCP address just fine.
Somehow, networkd doesn't invoke a DHCP client for infiniband networks.
root@hph7a:~# more /etc/netplan/
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
enp2s0f0:
dhcp4: yes
enp2s0f1:
dhcp4: yes
ibs2:
dhcp4: yes
dhcp6: no
ibs2d1:
dhcp4: yes
after booting or manually running 'netplan apply' this is what the interfaces looklike
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,
link/ether 00:25:b3:b3:25:80 brd ff:ff:ff:ff:ff:ff
3: ens1f1: <BROADCAST,
link/ether 00:25:b3:b3:25:81 brd ff:ff:ff:ff:ff:ff
4: enp2s0f0: <BROADCAST,
link/ether 10:1f:74:32:5d:70 brd ff:ff:ff:ff:ff:ff
inet XXX.YYY.47.131/24 brd 130.166.47.255 scope global dynamic enp2s0f0
valid_lft 21598sec preferred_lft 21598sec
inet6 fe80::121f:
valid_lft forever preferred_lft forever
5: ens1f0: <BROADCAST,
link/ether 00:25:b3:b3:25:82 brd ff:ff:ff:ff:ff:ff
6: eth4: <BROADCAST,
link/ether 00:25:b3:b3:25:83 brd ff:ff:ff:ff:ff:ff
7: enp2s0f1: <BROADCAST,
link/ether 10:1f:74:32:5d:74 brd ff:ff:ff:ff:ff:ff
inet 10.47.1.131/16 brd 10.47.255.255 scope global dynamic enp2s0f1
valid_lft 21598sec preferred_lft 21598sec
inet6 fe80::121f:
valid_lft forever preferred_lft forever
8: ibs2: <BROADCAST,
link/infiniband 80:00:02:
inet6 fe80::202:
valid_lft forever preferred_lft forever
9: ibs2d1: <NO-CARRIER,
link/infiniband 80:00:02:
root@hph7a:~# networkctl
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 eth0 ether off pending
3 ens1f1 ether off unmanaged
4 enp2s0f0 ether routable configured
5 ens1f0 ether off unmanaged
6 eth4 ether off pending
7 enp2s0f1 ether routable configured
8 ibs2 infiniband degraded configuring
9 ibs2d1 infiniband no-carrier configuring
9 links listed.
It will just stay in the degraded/
But if I do dhclient ibs2 it becomes...
root@hph7a:~# ip add
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,
link/ether 00:25:b3:b3:25:80 brd ff:ff:ff:ff:ff:ff
3: ens1f1: <BROADCAST,
link/ether 00:25:b3:b3:25:81 brd ff:ff:ff:ff:ff:ff
4: enp2s0f0: <BROADCAST,
link/ether 10:1f:74:32:5d:70 brd ff:ff:ff:ff:ff:ff
inet XXX.YYY.47.131/24 brd 130.166.47.255 scope global dynamic enp2s0f0
valid_lft 21361sec preferred_lft 21361sec
inet6 fe80::121f:
valid_lft forever preferred_lft forever
5: ens1f0: <BROADCAST,
link/ether 00:25:b3:b3:25:82 brd ff:ff:ff:ff:ff:ff
6: eth4: <BROADCAST,
link/ether 00:25:b3:b3:25:83 brd ff:ff:ff:ff:ff:ff
7: enp2s0f1: <BROADCAST,
link/ether 10:1f:74:32:5d:74 brd ff:ff:ff:ff:ff:ff
inet 10.47.1.131/16 brd 10.47.255.255 scope global dynamic enp2s0f1
valid_lft 21361sec preferred_lft 21361sec
inet6 fe80::121f:
valid_lft forever preferred_lft forever
8: ibs2: <BROADCAST,
link/infiniband 80:00:02:
inet 192.168.47.131/24 brd 192.168.47.255 scope global dynamic ibs2
valid_lft 21599sec preferred_lft 21599sec
inet6 fe80::202:
valid_lft forever preferred_lft forever
9: ibs2d1: <NO-CARRIER,
link/infiniband 80:00:02:
So. My DHCP server works fine. manually calling a dhclient on the infiniband IPoIB interface works just fine. But netplan/networkd doesn't properly invoke DHCP clients to configure the interface.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: netplan (not installed)
ProcVersionSign
Uname: Linux 5.4.0-14-generic x86_64
ApportVersion: 2.20.11-0ubuntu16
Architecture: amd64
Date: Sun Feb 16 16:07:06 2020
InstallationDate: Installed on 2020-02-16 (0 days ago)
InstallationMedia: Ubuntu-Server 19.10 "Eoan Ermine" - Release amd64 (20191017)
ProcEnviron:
SHELL=/bin/bash
LANG=en_US.UTF-8
TERM=xterm
PATH=(custom, no user)
SourcePackage: plan
UpgradeStatus: Upgraded to focal on 2020-02-16 (0 days ago)
Status changed to 'Confirmed' because the bug affects multiple users.