Add check on network interface name's length
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Committed
|
High
|
Jacopo Rota | ||
3.4 |
Won't Fix
|
High
|
MAAS Lander | ||
3.5 |
Won't Fix
|
High
|
MAAS Lander | ||
cloud-init |
Fix Released
|
Unknown
|
Bug Description
When adding a VLAN on long network interfaces, Cloud-init will fail silently to add the sub-interfaces.
Deployed environment is :
* MAAS 3.3.4
* Server Dell R630 + Mellanox Connectx-5
* name of interfaces : enp130s0f0np0 / enp130s0f1np1
* add a VLAN like 100-4093
Cloud-Init will not display any error message but the VLAN interfaces will not be added after the deployment.
If trying to perform the operation manually, we are then greeted with the following error message.
```
ubuntu@R630:~$ sudo ip link add link enp130s0f0np0 name enp130s0f0np0.103 type vlan id 103
Error: argument "enp130s0f0np0.103" is wrong: "name" not a valid ifname
```
From Iproute2 and Kernel perspective, it is not possible to have interfaces with a name longer than 15 characters in total.
A quick workaround is simply to rename the network interface to something shorter.
Having a quick warning from MAAS would be nice to have to understand the origin of the issue.
Related branches
- MAAS Lander: Needs Fixing
- MAAS Maintainers: Pending requested
-
Diff: 95 lines (+47/-2)4 files modifiedsrc/maasserver/migrations/maasserver/0337_alter_interface_name.py (+28/-0)
src/maasserver/models/interface.py (+7/-2)
src/maasserver/models/tests/test_interface.py (+8/-0)
src/maasserver/testing/factory.py (+4/-0)
- MAAS Lander: Needs Fixing
- MAAS Maintainers: Pending requested
-
Diff: 95 lines (+47/-2)4 files modifiedsrc/maasserver/migrations/maasserver/0337_alter_interface_name.py (+28/-0)
src/maasserver/models/interface.py (+7/-2)
src/maasserver/models/tests/test_interface.py (+8/-0)
src/maasserver/testing/factory.py (+4/-0)
- MAAS Lander: Needs Fixing
- Björn Tillenius: Approve
-
Diff: 95 lines (+47/-2)4 files modifiedsrc/maasserver/migrations/maasserver/0337_alter_interface_name.py (+28/-0)
src/maasserver/models/interface.py (+7/-2)
src/maasserver/models/tests/test_interface.py (+8/-0)
src/maasserver/testing/factory.py (+4/-0)
Changed in cloud-init: | |
importance: | Undecided → Unknown |
status: | New → Unknown |
Changed in cloud-init: | |
status: | Unknown → New |
Changed in cloud-init: | |
status: | Unknown → New |
Changed in cloud-init: | |
status: | New → Fix Released |
Changed in maas: | |
milestone: | 3.5.0 → 3.5.x |
tags: | added: bug-council |
Changed in maas: | |
assignee: | nobody → Jacopo Rota (r00ta) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Can reproduce, moving to triaged.