You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
does not respect the maximum length size. When using OpenStack Ironic and using bare metal systems you'll get the kernel driver device names which can be quite long. During normal operation they get renamed down to shorter forms (ens prefix vs enp prefix). However when the helper runs the longer form is the only name is available.
Why this issue isn't seen more is the fact that the generation of VLAN info isn't happening by default in network_data.json per bug https://bugs.launchpad.net/nova/+bug/2091185 but we are working to remedy that. In testing this issue has cropped up. The workaround here is the fact that OpenStack does not support the name field in their scheme per the comments in but a human crafts their own network_data.json today when they use VLANs and often provide their own name.
Steps to reproduce the problem
Run cloud-init with the OpenStack helper consuming network_data.json without a name field on the physical NIC and use something like Broadcom which likes to make 14 character interface names.
Environment details
Cloud-init version:
Operating System Distribution: Ubuntu 24.04
Cloud provider, platform or installer type: OpenStack
I wonder if it wouldn't be better to remove those lines that issue the rename?
The text was updated successfully, but these errors were encountered:
Looks like just removing the name in the VLAN case won't do the trick. Here's the same system built without a VLAN interface. You can see the names are still too long.
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno8303: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether c4:cb:e1:bf:90:d4 brd ff:ff:ff:ff:ff:ff
altname enp195s0f0
3: enp196s0f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 14:23:f3:f5:3b:a0 brd ff:ff:ff:ff:ff:ff
4: eno8403: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether c4:cb:e1:bf:90:d5 brd ff:ff:ff:ff:ff:ff
altname enp195s0f1
5: enp196s0f1np1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 14:23:f3:f5:3b:a1 brd ff:ff:ff:ff:ff:ff
6: eno3np0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether d4:04:e6:4f:87:84 brd ff:ff:ff:ff:ff:ff
altname enp197s0f0np0
7: eno4np1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether d4:04:e6:4f:87:85 brd ff:ff:ff:ff:ff:ff
altname enp197s0f1np1
Bug report
Related to bug #4743, the helper code at
cloud-init/cloudinit/sources/helpers/openstack.py
Lines 738 to 740 in 2b7d963
ens
prefix vsenp
prefix). However when the helper runs the longer form is the only name is available.Why this issue isn't seen more is the fact that the generation of VLAN info isn't happening by default in network_data.json per bug https://bugs.launchpad.net/nova/+bug/2091185 but we are working to remedy that. In testing this issue has cropped up. The workaround here is the fact that OpenStack does not support the
name
field in their scheme per the comments in but a human crafts their own network_data.json today when they use VLANs and often provide their own name.Steps to reproduce the problem
Run cloud-init with the OpenStack helper consuming network_data.json without a
name
field on the physical NIC and use something like Broadcom which likes to make 14 character interface names.Environment details
I wonder if it wouldn't be better to remove those lines that issue the rename?
The text was updated successfully, but these errors were encountered: