name too long

Bug #1693829 reported by dan tiernan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
High
dan tiernan

Bug Description

I am trying to create an openstack environment using Fuel 9.0 - Openstack Mitaka-9.0.

The issue is related to when creating a vlan link the network name with vlan id number exceeds the 16 character length so it fails.

the why: There are 2 nodes and a Fuel Server. both nodes boot up and retrieve a Ubuntu image from the Fuel Server (via PXE). Then using the Fuel Dashboard I create a OS Enviornment which queries the network for any nodes and collects the logical names of the network interfaces, and all hardware attributes (memory, cores, etc).

Once the envirnment is created and one selects deploy, the deployment starts by first loading ubuntu. This process completes on both nodes and then Openstack is loaded on both nodes, here is when the problem starts. On the controller node at about 28 percent, the phyton script wants to creat a IP VLAN link - then errors out

2017-05-02 21:13:30 ERR Error: argument "enx8cae4cfe75f2.101" is wrong: "name" too long 2017-05-02 21:13:30 ERR Command 'ip link add link enx8cae4cfe75f2 name enx8cae4cfe75f2.101 type vlan id 101' has been failed with exit_code=255.

and since the logical name of the network interface is already at 14 (determined during the discovery of the nodes by the Fuel Dashboard) , it tries to add the vlan ID which is an additional 3 exceeding the 16 character max. Hence it fails and the openstack stack deployment fails.

I believe the solution should be that the pxe image that is loaded to each node should have the following configured during boot up " net.ifnames=0 biosdevname=0"

If I try to override this option within the Openstack deployment process (under settings, kernal) it is ignored. Hence openstack discovers the nodes and its attributes and in this case the network interface name is based of mac address of enx8cae4cfe75f2 which is too long.

I have been searching the web for viable options and found none. I am of the opinion this is a critical bug, prohibiting openstack deployments.

Please advise

thanks
dan

Revision history for this message
Matt Riedemann (mriedem) wrote :

Added MOS since I think that's tied to Fuel, plus mitaka is end of life upstream for nova.

Matt Riedemann (mriedem)
Changed in nova:
status: New → Invalid
no longer affects: nova
no longer affects: mos
Changed in fuel:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → MOS Maintenance (mos-maintenance)
milestone: none → 9.x-updates
Revision history for this message
Max Yatsenko (myatsenko) wrote :

I suppose that this issue is related to that interface name has length restrictions in Linux kernel:
http://kernel.ubuntu.com/git/ubuntu/ubuntu-trusty.git/tree/include/uapi/linux/if.h#n26

There is '#define IFNAMSIZ 16', so interface name size has 16 byte length (15 visible symbols).

When I try perform:
root@node-8:~# ip link add dev 1234567890123456 type dummy
Error: argument "1234567890123456" is wrong: "name" too long

I get an error '"name" too long', so its system restriction.

To fully reproduce your issue, please specify step-by-step actions: how you get interface name based on mac address.

Changed in fuel:
status: Confirmed → Incomplete
assignee: MOS Maintenance (mos-maintenance) → Max Yatsenko (myatsenko)
assignee: Max Yatsenko (myatsenko) → nobody
Changed in fuel:
assignee: nobody → dan tiernan (dtiernan-1)
Changed in fuel:
status: Incomplete → Invalid
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.