2020-04-27 14:30:10 |
Frank Villaro |
bug |
|
|
added bug |
2020-05-22 18:17:10 |
Arif Ali |
bug |
|
|
added subscriber Arif Ali |
2020-05-25 11:26:43 |
David Negreira |
bug |
|
|
added subscriber David Negreira |
2020-05-26 14:35:07 |
Guilherme G. Piccoli |
bug |
|
|
added subscriber Guilherme G. Piccoli |
2020-05-26 14:47:02 |
Dan Streetman |
bug |
|
|
added subscriber Dan Streetman |
2020-05-28 13:19:00 |
Heitor Alves de Siqueira |
netplan: assignee |
|
Heitor Alves de Siqueira (halves) |
|
2020-05-28 14:30:55 |
Łukasz Zemczak |
netplan: status |
New |
In Progress |
|
2020-05-28 14:33:51 |
Łukasz Zemczak |
netplan: importance |
Undecided |
High |
|
2020-05-28 14:33:54 |
Łukasz Zemczak |
netplan: importance |
High |
Critical |
|
2020-05-28 15:05:29 |
Heitor Alves de Siqueira |
tags |
regression rename set-name |
regression rename set-name sts |
|
2020-05-28 21:16:49 |
Heitor Alves de Siqueira |
description |
Hi,
First of all, I don't know if this bug is related to the new ubuntu 20.04 ecosystem or to the new netplan version.
The problem arises when we try to rename a network interface, for example with this config file:
```
network:
version: 2
ethernets:
ens4:
accept-ra: no
dhcp4: false
match:
macaddress: fa:16:3e:b5:71:18
set-name: uplink
```
The same configuration works on ubuntu 19.10 with netplan 0.98-0ubuntu1, but fails on ubuntu 20.04 with netplan 0.99-0ubuntu2 with the error:
```~# netplan apply
Traceback (most recent call last):
File "/usr/sbin/netplan", line 23, in <module>
netplan.main()
File "/usr/share/netplan/netplan/cli/core.py", line 50, in main
self.run_command()
File "/usr/share/netplan/netplan/cli/utils.py", line 179, in run_command
self.func()
File "/usr/share/netplan/netplan/cli/commands/apply.py", line 46, in run
self.run_command()
File "/usr/share/netplan/netplan/cli/utils.py", line 179, in run_command
self.func()
File "/usr/share/netplan/netplan/cli/commands/apply.py", line 162, in command_apply
subprocess.check_call(['ip', 'link', 'set',
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ip', 'link', 'set', 'dev', 'ens4', 'name', 'uplink']' returned non-zero exit status 2.
```
At this time, the fix is to set the interface down, and apply netplan conf again.
Cheers |
[Impact]
Netplan crashes when trying to apply rules to certain interfaces
[Description]
Starting with version 0.99, netplan introduced a different way of processing link changes that introduced a regression handling interfaces that are still in the 'up' state.
It's possible for interfaces to be marked for link operations (e.g. "set-name") by their MAC address, even if the interface should have been skipped due to being up.
This regression has been fixed upstream by the commit below:
- Fix process_link_changes handling 'up' interfaces (8f77deec17ce)
The fix is not currently present in any Ubuntu release, and the following Netplan 0.99 versions are affected:
$ rmadison netplan.io -s bionic-updates,eoan-updates,focal-updates,groovy
netplan.io | 0.99-0ubuntu3~18.04.2 | bionic-updates | source, ...
netplan.io | 0.99-0ubuntu3~19.10.1 | eoan-updates | source, ...
netplan.io | 0.99-0ubuntu3~20.04.1 | focal-updates | source, ...
netplan.io | 0.99-0ubuntu3 | groovy | source, ...
[Test Case]
1) Create new dummy interface for testing
# modprobe dummy
# ip link add eth0-test type dummy
# ip link set eth0-test up
2) Add netplan file for new interface with "set-name" directive
# cat /etc/netplan/99-test.yaml
network:
version: 2
ethernets:
eth0-test:
match:
macaddress: 56:f6:56:31:2f:ae
set-name: uplink
3) Attempt to apply changes
# netplan apply
Traceback (most recent call last):
File "/usr/sbin/netplan", line 23, in <module>
netplan.main()
File "/usr/share/netplan/netplan/cli/core.py", line 50, in main
self.run_command()
File "/usr/share/netplan/netplan/cli/utils.py", line 186, in run_command
self.func()
File "/usr/share/netplan/netplan/cli/commands/apply.py", line 46, in run
self.run_command()
File "/usr/share/netplan/netplan/cli/utils.py", line 186, in run_command
self.func()
File "/usr/share/netplan/netplan/cli/commands/apply.py", line 172, in command_apply
stderr=subprocess.DEVNULL)
File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ip', 'link', 'set', 'dev', 'eth0-test', 'name', 'uplink']' returned non-zero exit status 2.
[Regression Potential]
The upstream patch restores the behavior present in 0.98 versions, so the regression potential should be low.
Possible issues with this fix could cause netplan to skip interfaces it's not meant to, but the netplan test suite and general smoke testing revealed no major problems. |
|
2020-05-28 21:17:10 |
Heitor Alves de Siqueira |
summary |
Regression: ubuntu 20.04: can't rename interface |
Netplan crashes when attempting to rename interface in 'up' state |
|
2020-05-28 21:17:22 |
Heitor Alves de Siqueira |
netplan: status |
In Progress |
Fix Committed |
|
2020-05-28 21:17:49 |
Heitor Alves de Siqueira |
bug task added |
|
netplan.io (Ubuntu) |
|
2020-05-28 21:17:57 |
Heitor Alves de Siqueira |
netplan.io (Ubuntu): assignee |
|
Heitor Alves de Siqueira (halves) |
|
2020-05-28 21:17:58 |
Heitor Alves de Siqueira |
netplan.io (Ubuntu): importance |
Undecided |
Critical |
|
2020-05-28 21:18:01 |
Heitor Alves de Siqueira |
netplan.io (Ubuntu): status |
New |
In Progress |
|
2020-05-28 21:18:19 |
Heitor Alves de Siqueira |
nominated for series |
|
Ubuntu Bionic |
|
2020-05-28 21:18:19 |
Heitor Alves de Siqueira |
bug task added |
|
netplan.io (Ubuntu Bionic) |
|
2020-05-28 21:18:19 |
Heitor Alves de Siqueira |
nominated for series |
|
Ubuntu Groovy |
|
2020-05-28 21:18:19 |
Heitor Alves de Siqueira |
bug task added |
|
netplan.io (Ubuntu Groovy) |
|
2020-05-28 21:18:19 |
Heitor Alves de Siqueira |
nominated for series |
|
Ubuntu Focal |
|
2020-05-28 21:18:19 |
Heitor Alves de Siqueira |
bug task added |
|
netplan.io (Ubuntu Focal) |
|
2020-05-28 21:18:19 |
Heitor Alves de Siqueira |
nominated for series |
|
Ubuntu Eoan |
|
2020-05-28 21:18:19 |
Heitor Alves de Siqueira |
bug task added |
|
netplan.io (Ubuntu Eoan) |
|
2020-05-28 21:18:33 |
Heitor Alves de Siqueira |
netplan.io (Ubuntu Focal): importance |
Undecided |
Critical |
|
2020-05-28 21:18:34 |
Heitor Alves de Siqueira |
netplan.io (Ubuntu Bionic): importance |
Undecided |
Critical |
|
2020-05-28 21:20:15 |
Heitor Alves de Siqueira |
attachment added |
|
lp1875411-focal.debdiff https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1875411/+attachment/5378073/+files/lp1875411-focal.debdiff |
|
2020-05-28 21:20:44 |
Heitor Alves de Siqueira |
netplan.io (Ubuntu Focal): status |
New |
Confirmed |
|
2020-05-28 21:20:46 |
Heitor Alves de Siqueira |
netplan.io (Ubuntu Eoan): status |
New |
Confirmed |
|
2020-05-28 21:20:48 |
Heitor Alves de Siqueira |
netplan.io (Ubuntu Bionic): status |
New |
Confirmed |
|
2020-05-28 21:20:52 |
Heitor Alves de Siqueira |
netplan.io (Ubuntu Focal): status |
Confirmed |
Triaged |
|
2020-05-28 21:20:53 |
Heitor Alves de Siqueira |
netplan.io (Ubuntu Focal): status |
Triaged |
In Progress |
|
2020-05-28 21:20:55 |
Heitor Alves de Siqueira |
netplan.io (Ubuntu Bionic): status |
Confirmed |
In Progress |
|
2020-05-28 21:20:57 |
Heitor Alves de Siqueira |
netplan.io (Ubuntu Eoan): status |
Confirmed |
In Progress |
|
2020-05-28 21:21:11 |
Heitor Alves de Siqueira |
netplan.io (Ubuntu Focal): assignee |
|
Heitor Alves de Siqueira (halves) |
|
2020-05-28 21:21:13 |
Heitor Alves de Siqueira |
netplan.io (Ubuntu Eoan): assignee |
|
Heitor Alves de Siqueira (halves) |
|
2020-05-28 21:21:15 |
Heitor Alves de Siqueira |
netplan.io (Ubuntu Bionic): assignee |
|
Heitor Alves de Siqueira (halves) |
|
2020-05-28 21:21:24 |
Heitor Alves de Siqueira |
netplan.io (Ubuntu Eoan): importance |
Undecided |
Critical |
|
2020-05-29 00:25:07 |
Ubuntu Foundations Team Bug Bot |
tags |
regression rename set-name sts |
patch regression rename set-name sts |
|
2020-05-29 00:25:17 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Sponsors Team |
2020-05-29 10:57:34 |
Łukasz Zemczak |
removed subscriber Ubuntu Sponsors Team |
|
|
|
2020-05-29 10:57:41 |
Łukasz Zemczak |
netplan.io (Ubuntu Groovy): status |
In Progress |
Fix Committed |
|
2020-05-29 12:37:18 |
Launchpad Janitor |
netplan.io (Ubuntu Groovy): status |
Fix Committed |
Fix Released |
|
2020-06-04 19:49:42 |
Brian Murray |
netplan.io (Ubuntu Bionic): status |
In Progress |
Fix Committed |
|
2020-06-04 19:49:45 |
Brian Murray |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2020-06-04 19:49:47 |
Brian Murray |
bug |
|
|
added subscriber SRU Verification |
2020-06-04 19:49:52 |
Brian Murray |
tags |
patch regression rename set-name sts |
patch regression rename set-name sts verification-needed verification-needed-bionic |
|
2020-06-04 19:50:42 |
Brian Murray |
netplan.io (Ubuntu Eoan): status |
In Progress |
Fix Committed |
|
2020-06-04 19:50:50 |
Brian Murray |
tags |
patch regression rename set-name sts verification-needed verification-needed-bionic |
patch regression rename set-name sts verification-needed verification-needed-bionic verification-needed-eoan |
|
2020-06-04 19:51:53 |
Brian Murray |
netplan.io (Ubuntu Focal): status |
In Progress |
Fix Committed |
|
2020-06-04 19:52:02 |
Brian Murray |
tags |
patch regression rename set-name sts verification-needed verification-needed-bionic verification-needed-eoan |
patch regression rename set-name sts verification-needed verification-needed-bionic verification-needed-eoan verification-needed-focal |
|
2020-06-06 13:47:59 |
Heitor Alves de Siqueira |
tags |
patch regression rename set-name sts verification-needed verification-needed-bionic verification-needed-eoan verification-needed-focal |
patch regression rename set-name sts verification-done-focal verification-needed verification-needed-bionic verification-needed-eoan |
|
2020-06-06 13:55:32 |
Heitor Alves de Siqueira |
tags |
patch regression rename set-name sts verification-done-focal verification-needed verification-needed-bionic verification-needed-eoan |
patch regression rename set-name sts verification-done-eoan verification-done-focal verification-needed verification-needed-bionic |
|
2020-06-06 14:20:32 |
Heitor Alves de Siqueira |
tags |
patch regression rename set-name sts verification-done-eoan verification-done-focal verification-needed verification-needed-bionic |
patch regression rename set-name sts verification-done verification-done-bionic verification-done-eoan verification-done-focal |
|
2020-06-15 16:36:52 |
Launchpad Janitor |
netplan.io (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|
2020-06-15 16:36:56 |
Łukasz Zemczak |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2020-06-15 16:37:06 |
Launchpad Janitor |
netplan.io (Ubuntu Eoan): status |
Fix Committed |
Fix Released |
|
2020-06-15 16:37:14 |
Launchpad Janitor |
netplan.io (Ubuntu Bionic): status |
Fix Committed |
Fix Released |
|
2020-09-23 13:49:43 |
Lukas Märdian |
netplan: status |
Fix Committed |
Fix Released |
|