yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #38499
[Bug 1495960] [NEW] linuxbridge with vlan crashes when long device names used
Public bug reported:
The linuxbridge agent creates a linux vlan-device for each openstack vlan network that has been defined. Therefore the code uses the following naming scheme : <eth-dev-name>.<vlan-id>
Example: eth-dev-name: eth0, vlan-id: 1000 --> eth0.1000
This works fine, if eth-dev-name is a short name like "eth0". If there
is a long device name (e.g. long-device-name) this will cause trouble,
as the vlan device name "long-device-name.1000" exceeds the max length
of a linux network device, which is 15 chars.
Today the linuxbridge agent fails with
Command: ['ip', 'link', 'add', 'link', 'too_long_name', 'name', 'too_long_name.1007', 'type', 'vlan', 'id', 1007]
Exit code: 255
Stderr: Error: argument "too_long_name.1007" is wrong: "name" too long
The same problem needs to be solved for the new macvtap agent that is
currently under development [1] as well
[1] https://bugs.launchpad.net/neutron/+bug/1480979
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1495960
Title:
linuxbridge with vlan crashes when long device names used
Status in neutron:
New
Bug description:
The linuxbridge agent creates a linux vlan-device for each openstack vlan network that has been defined. Therefore the code uses the following naming scheme : <eth-dev-name>.<vlan-id>
Example: eth-dev-name: eth0, vlan-id: 1000 --> eth0.1000
This works fine, if eth-dev-name is a short name like "eth0". If there
is a long device name (e.g. long-device-name) this will cause trouble,
as the vlan device name "long-device-name.1000" exceeds the max length
of a linux network device, which is 15 chars.
Today the linuxbridge agent fails with
Command: ['ip', 'link', 'add', 'link', 'too_long_name', 'name', 'too_long_name.1007', 'type', 'vlan', 'id', 1007]
Exit code: 255
Stderr: Error: argument "too_long_name.1007" is wrong: "name" too long
The same problem needs to be solved for the new macvtap agent that is
currently under development [1] as well
[1] https://bugs.launchpad.net/neutron/+bug/1480979
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1495960/+subscriptions
Follow ups