2019-06-05 17:58:04 |
Ante Karamatić |
bug |
|
|
added bug |
2019-06-05 18:30:57 |
Ryan Harper |
netplan: status |
New |
Incomplete |
|
2019-06-05 18:31:44 |
Ryan Harper |
bug watch added |
|
https://github.com/systemd/systemd/issues/12490 |
|
2019-06-05 18:31:55 |
Ryan Harper |
bug task added |
|
systemd (Ubuntu) |
|
2019-06-05 18:32:06 |
Ryan Harper |
systemd (Ubuntu): status |
New |
Incomplete |
|
2019-06-06 08:29:45 |
Ante Karamatić |
attachment added |
|
log https://bugs.launchpad.net/netplan/+bug/1831787/+attachment/5269074/+files/log |
|
2019-06-06 13:53:43 |
Dan Streetman |
bug |
|
|
added subscriber Dan Streetman |
2019-06-06 17:00:10 |
Ryan Harper |
netplan: status |
Incomplete |
Invalid |
|
2019-06-06 17:00:23 |
Ryan Harper |
systemd (Ubuntu): importance |
Undecided |
High |
|
2019-06-06 17:00:23 |
Ryan Harper |
systemd (Ubuntu): status |
Incomplete |
Triaged |
|
2019-07-23 21:49:22 |
Dan Streetman |
systemd (Ubuntu): assignee |
|
Dan Streetman (ddstreet) |
|
2019-09-29 22:08:31 |
Dan Streetman |
bug task added |
|
systemd |
|
2019-09-30 21:32:38 |
Dan Streetman |
nominated for series |
|
Ubuntu Eoan |
|
2019-09-30 21:32:38 |
Dan Streetman |
bug task added |
|
systemd (Ubuntu Eoan) |
|
2019-09-30 21:32:38 |
Dan Streetman |
nominated for series |
|
Ubuntu Disco |
|
2019-09-30 21:32:38 |
Dan Streetman |
bug task added |
|
systemd (Ubuntu Disco) |
|
2019-09-30 21:32:38 |
Dan Streetman |
nominated for series |
|
Ubuntu Bionic |
|
2019-09-30 21:32:38 |
Dan Streetman |
bug task added |
|
systemd (Ubuntu Bionic) |
|
2019-10-02 12:58:49 |
Dan Streetman |
systemd (Ubuntu Eoan): status |
Triaged |
In Progress |
|
2019-10-02 12:58:53 |
Dan Streetman |
systemd (Ubuntu Disco): assignee |
|
Dan Streetman (ddstreet) |
|
2019-10-02 12:58:55 |
Dan Streetman |
systemd (Ubuntu Bionic): assignee |
|
Dan Streetman (ddstreet) |
|
2019-10-02 12:58:57 |
Dan Streetman |
systemd (Ubuntu Disco): importance |
Undecided |
Medium |
|
2019-10-02 12:58:59 |
Dan Streetman |
systemd (Ubuntu Bionic): importance |
Undecided |
Medium |
|
2019-10-02 13:04:00 |
Dan Streetman |
tags |
|
bionic disco eoan next-ddstreet systemd |
|
2019-10-02 13:08:14 |
Dan Streetman |
tags |
bionic disco eoan next-ddstreet systemd |
bionic ddstreet disco eoan systemd |
|
2019-10-02 13:09:24 |
Dan Streetman |
systemd (Ubuntu Disco): status |
New |
In Progress |
|
2019-10-02 13:09:26 |
Dan Streetman |
systemd (Ubuntu Bionic): status |
New |
In Progress |
|
2019-10-17 18:30:45 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~ddstreet/ubuntu/+source/systemd/+git/systemd/+merge/374303 |
|
2019-10-17 19:57:58 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~ddstreet/ubuntu/+source/systemd/+git/systemd/+merge/370152 |
|
2019-10-17 20:14:34 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~ddstreet/ubuntu/+source/systemd/+git/systemd/+merge/374312 |
|
2019-10-18 15:28:13 |
Dan Streetman |
description |
Netplan config:
network:
version: 2
renderer: networkd
ethernets:
eno4:
dhcp4: no
eno1np0:
dhcp4: no
addresses:
- 172.16.0.2/24
bridges:
br0:
dhcp4: yes
interfaces:
- eno4
On initial boot, machine got 10.0.15.109 IP address:
May 03 13:09:41 ceph2 systemd-networkd[29349]: br0: Configured
May 03 13:09:41 ceph2 systemd-networkd[29349]: br0: DHCPv4 address 10.0.15.109/23 via 10.0.15.253
At one point, DHCP server reserver this IP address and client eventually picked up new IP address:
May 03 15:01:12 ceph2 systemd-networkd[1137]: br0: DHCPv4 address 10.0.15.128/23 via 10.0.15.253
This resulted in IP addresses:
# ip -o a
1: lo inet 127.0.0.1/8 scope host lo\ valid_lft forever preferred_lft forever
1: lo inet6 ::1/128 scope host \ valid_lft forever preferred_lft forever
2: eno1np0 inet 172.16.0.2/24 brd 172.16.0.255 scope global eno1np0\ valid_lft forever preferred_lft forever
2: eno1np0 inet6 fe80::b226:28ff:fe53:56be/64 scope link \ valid_lft forever preferred_lft forever
6: br0 inet 10.0.15.128/23 brd 10.0.15.255 scope global dynamic br0\ valid_lft 503sec preferred_lft 503sec
6: br0 inet6 fe80::b8d7:5eff:fe6b:62a/64 scope link \ valid_lft forever preferred_lft forever
So far, everything is fine. But, the routes on the machine are bogus:
# ip r
default via 10.0.15.253 dev br0 proto dhcp src 10.0.15.109 metric 100
default via 10.0.15.253 dev br0 proto dhcp src 10.0.15.128 metric 100
10.0.14.0/23 dev br0 proto kernel scope link src 10.0.15.128
10.0.15.253 dev br0 proto dhcp scope link src 10.0.15.109 metric 100
10.0.15.253 dev br0 proto dhcp scope link src 10.0.15.128 metric 100
172.16.0.0/24 dev eno1np0 proto kernel scope link src 172.16.0.2
routes with src 10.0.15.109 should have been removed when lease was renewed. I'm not sure if this is a bug in netplan or systemd. This is 18.04, systemd 37-3ubuntu10.21, netplan 0.40.1~18.04.4. |
[impact]
networkd does not remove old route(s) after DHCP address change
[test case]
on a system using networkd, that is connected to a network where you can control the addresses that the DHCP server provides, setup system with networkd to get address via DHCP, e.g.
[Match]
Name=ens3
[Network]
DHCP=ipv4
(re)start networkd or reboot, so the system gets an ipv4 DHCP address, and corresponding route to the gateway.
Then on the dhcp server, change the subnet to a different subnet. On the client, once its renews its DHCP address, the server will provide a new address in the new subnet, and the client will add a new default route to the new gateway address. However, the old default route to the old gateway address isn't removed.
Note this also happens without changing the entire subnet, but is more subtle as shown in the original description.
[regression potential]
this affects how networkd handles routes, so has the potential to leave a system with partial or incorrect networking, or no networking at all. Any regression would most likely occur during networkd (re)start or during renewal of a DHCP lease, or when an interface is brought up.
[other info]
original description:
---
Netplan config:
network:
version: 2
renderer: networkd
ethernets:
eno4:
dhcp4: no
eno1np0:
dhcp4: no
addresses:
- 172.16.0.2/24
bridges:
br0:
dhcp4: yes
interfaces:
- eno4
On initial boot, machine got 10.0.15.109 IP address:
May 03 13:09:41 ceph2 systemd-networkd[29349]: br0: Configured
May 03 13:09:41 ceph2 systemd-networkd[29349]: br0: DHCPv4 address 10.0.15.109/23 via 10.0.15.253
At one point, DHCP server reserver this IP address and client eventually picked up new IP address:
May 03 15:01:12 ceph2 systemd-networkd[1137]: br0: DHCPv4 address 10.0.15.128/23 via 10.0.15.253
This resulted in IP addresses:
# ip -o a
1: lo inet 127.0.0.1/8 scope host lo\ valid_lft forever preferred_lft forever
1: lo inet6 ::1/128 scope host \ valid_lft forever preferred_lft forever
2: eno1np0 inet 172.16.0.2/24 brd 172.16.0.255 scope global eno1np0\ valid_lft forever preferred_lft forever
2: eno1np0 inet6 fe80::b226:28ff:fe53:56be/64 scope link \ valid_lft forever preferred_lft forever
6: br0 inet 10.0.15.128/23 brd 10.0.15.255 scope global dynamic br0\ valid_lft 503sec preferred_lft 503sec
6: br0 inet6 fe80::b8d7:5eff:fe6b:62a/64 scope link \ valid_lft forever preferred_lft forever
So far, everything is fine. But, the routes on the machine are bogus:
# ip r
default via 10.0.15.253 dev br0 proto dhcp src 10.0.15.109 metric 100
default via 10.0.15.253 dev br0 proto dhcp src 10.0.15.128 metric 100
10.0.14.0/23 dev br0 proto kernel scope link src 10.0.15.128
10.0.15.253 dev br0 proto dhcp scope link src 10.0.15.109 metric 100
10.0.15.253 dev br0 proto dhcp scope link src 10.0.15.128 metric 100
172.16.0.0/24 dev eno1np0 proto kernel scope link src 172.16.0.2
routes with src 10.0.15.109 should have been removed when lease was renewed. I'm not sure if this is a bug in netplan or systemd. This is 18.04, systemd 37-3ubuntu10.21, netplan 0.40.1~18.04.4. |
|
2019-11-07 13:30:18 |
Łukasz Zemczak |
systemd (Ubuntu Eoan): status |
In Progress |
Fix Committed |
|
2019-11-07 13:30:24 |
Łukasz Zemczak |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2019-11-07 13:30:25 |
Łukasz Zemczak |
bug |
|
|
added subscriber SRU Verification |
2019-11-07 13:30:28 |
Łukasz Zemczak |
tags |
bionic ddstreet disco eoan systemd |
bionic ddstreet disco eoan systemd verification-needed verification-needed-eoan |
|
2019-11-13 19:40:48 |
Dan Streetman |
tags |
bionic ddstreet disco eoan systemd verification-needed verification-needed-eoan |
bionic ddstreet disco eoan systemd verification-done verification-done-eoan |
|
2019-11-25 10:55:30 |
Łukasz Zemczak |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2019-11-25 10:55:23 |
Launchpad Janitor |
systemd (Ubuntu Eoan): status |
Fix Committed |
Fix Released |
|
2019-12-13 18:35:49 |
Dan Streetman |
systemd (Ubuntu Disco): importance |
Medium |
High |
|
2019-12-13 18:35:51 |
Dan Streetman |
systemd (Ubuntu Bionic): importance |
Medium |
High |
|
2020-01-14 13:00:52 |
Dan Streetman |
systemd (Ubuntu Disco): status |
In Progress |
Won't Fix |
|
2020-01-16 09:29:50 |
Dan Streetman |
systemd (Ubuntu): status |
In Progress |
Fix Released |
|
2020-03-27 08:55:51 |
Johnson Shi |
bug |
|
|
added subscriber Johnson Shi |
2020-03-27 21:00:38 |
Johnson Shi |
removed subscriber Johnson Shi |
|
|
|
2020-05-14 17:57:56 |
Dan Streetman |
systemd (Ubuntu Bionic): status |
In Progress |
Fix Released |
|