with bridge/interface name too long netplan apply should fail

Bug #1988749 reported by Luca Cervigni
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Danilo Egea Gondolfo

Bug Description

IDEAL BEHAVIOUR: With interface or bridge name exceeding the maximum characters, `netplan apply` and not succeed and prompt the error.

`netplan apply` works as if no errors though the network interfaces or bridges do not get created with errors in /var/log/syslog
The way to see that something is wrong is browsing /var/log/syslog

Revision history for this message
Lukas Märdian (slyon) wrote :

This is a valid point. Netplan IDs (i.e. interface names, for virtual interfaces) should be checked in the validation phase.

Changed in netplan:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

I agree it should fail in such situations. But at this point, some people might have invalid interface names in their configuration, and as it's not failing it's not causing problems. If we switch the behavior to fail-by-default, we might cause real problems out there.

I propose we should emit a warning initially so users can be aware they have a problem in their configuration: https://github.com/canonical/netplan/pull/313

Changed in netplan:
assignee: nobody → Danilo Egea Gondolfo (danilogondolfo)
Lukas Märdian (slyon)
Changed in netplan:
status: Triaged → Fix Committed
Revision history for this message
Lukas Märdian (slyon) wrote :

Released as of v0.106

Changed in netplan:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.