Interface name too long in esxi [closed]

asked 2016-04-14 06:35:48 -0600

nergal gravatar image

I'm trying to install Mirantis with Fuel on an ESXI 6 host. Network check etc turns out fine but when the puppet scripts tried to add a new network device with the full name with a postfix of the vlan tag the interface name becomes to long.

Hence ESXI is used the NIC in the VMs get the name eno<long_number>.<vlan_id> and that becomes an issue. This might be because the host is an Ubuntu perhaps?

There is not idea changing name of the NICs inside the nodes since they are reinstalled during setup.

This is the output:

2016-04-14 10:13:54 ERR (/Stage[main]/Main/L23network::L2::Port[eno16777984.1030]/L2_port[eno16777984.1030]/ensure) Error: argument "eno16777984.1030" is wrong: "name" too long 2016-04-14 10:13:54 ERR (/Stage[main]/Main/L23network::L2::Port[eno16777984.1030]/L2_port[eno16777984.1030]/ensure) change from absent to present failed: Command 'ip link add link eno16777984 name eno16777984.1030 type vlan id 1030' has been failed with exit_code=255:

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by nergal
close date 2016-04-14 08:04:47.787636

Comments

Using 100-999 as VLAN seems to make the command work. Going to deploy using that now.

nergal gravatar imagenergal ( 2016-04-14 06:53:58 -0600 )edit

That made it work. So using shorter VLAN ID makes this function correctly.

nergal gravatar imagenergal ( 2016-04-14 08:04:32 -0600 )edit

the issue is due to the logical name for an interface cannot be longer than 16 characters. Changing the vlan value brings the total vlan logical name to 16 or less characters. so, there is still a problem for logical names that are longer than 16 char. with that said, do you have a recommendation.

dtiernan gravatar imagedtiernan ( 2017-05-10 20:10:41 -0600 )edit