netplan does not bring up anonymous bridge on boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Fix Released
|
Medium
|
Mathieu Trudel-Lapierre | ||
netplan.io (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
nplan (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
[Impact]
Netplan users setting up bridges.
[Test cases]
1) Add a new bridge configuration in netplan yaml, without an IP address set:
[...]
bridges:
br0:
interfaces: [ interface ]
dhcp4: false
parameters:
stp: false
[Regression potential]
Possible regression scenarios might be for a configured bridge not to come up / not be created or added by systemd-networkd when the network is configured; or for a bridge to be configured with addresses that should not be present (ie. dhcp when it is not enabled, or link-local address when not configured).
---
Configuring "/etc/netplan/
This is only a problem if you want an anonymous bridge which comes up automatically after boot. For example, if you preferred to isolate host traffic from your autostarting virtual machine traffic.
Configuration that results in the bridge being down after boot:
network:
version: 2
renderer: networkd
ethernets:
enp22s2:
dhcp4: yes
enp22s3:
dhcp4: no
bridges:
br0:
interfaces: [enp22s3]
dhcp4: false
parameters:
stp: false
Enabling DHCP results in a bridge that is automatically up after boot:
network:
version: 2
renderer: networkd
ethernets:
enp22s2:
dhcp4: yes
enp22s3:
dhcp4: no
bridges:
br0:
interfaces: [enp22s3]
dhcp4: true
parameters:
stp: false
Setting a static IP address results in a bridge that is automatically up after boot:
network:
version: 2
renderer: networkd
ethernets:
enp22s2:
dhcp4: yes
enp22s3:
dhcp4: no
bridges:
br0:
interfaces: [enp22s3]
dhcp4: false
addresses: [192.168.1.100/24]
parameters:
stp: false
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: nplan 0.30
ProcVersionSign
Uname: Linux 4.13.0-17-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.5
Architecture: amd64
Date: Thu Dec 7 11:06:25 2017
ProcEnviron:
LANGUAGE=en_CA:en
TERM=screen
PATH=(custom, no user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
SourcePackage: nplan
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in netplan: | |
status: | In Progress → Fix Released |
description: | updated |
Changed in netplan.io (Ubuntu Bionic): | |
status: | Fix Released → Fix Committed |
Status changed to 'Confirmed' because the bug affects multiple users.