← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1281098] [NEW] Too long tunnel devices names

 

Public bug reported:

Openvswitch neutron agent create too long names for tunnel devices. 
Ports name are created like %type-%remoteip.
For example for gre type tunnel, name is gre-192.168.201.10 which exceed max length for linux network devices (15 chars).
This name pass throw openvswitch, but create failed port with ofport -1 and proceed with error like this:

2014-02-17 11:25:14.048 22908 ERROR neutron.agent.linux.ovs_lib [-] Unable to execute ['ovs-ofctl', 'add-flow', 'br-tun', 'hard_timeout=0,idle_timeout=0,priority=1,in_port=-1,actions=resubmit(,2)']. Exception: 
Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-ofctl', 'add-flow', 'br-tun', 'hard_timeout=0,idle_timeout=0,priority=1,in_port=-1,actions=resubmit(,2)']
Exit code: 1
Stdout: ''
Stderr: 'ovs-ofctl: -1: negative values not supported for in_port\n'

This bug affect only devices with long ip address 10.0.0.1 will pass,
but 192.168.201.10 fail.

Found in HAVANA with:
openvswitch: 1.9.3-1
linux: 3.2.54-2

But I think length limit will apply on all versions.

** 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/1281098

Title:
  Too long tunnel devices names

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  Openvswitch neutron agent create too long names for tunnel devices. 
  Ports name are created like %type-%remoteip.
  For example for gre type tunnel, name is gre-192.168.201.10 which exceed max length for linux network devices (15 chars).
  This name pass throw openvswitch, but create failed port with ofport -1 and proceed with error like this:

  2014-02-17 11:25:14.048 22908 ERROR neutron.agent.linux.ovs_lib [-] Unable to execute ['ovs-ofctl', 'add-flow', 'br-tun', 'hard_timeout=0,idle_timeout=0,priority=1,in_port=-1,actions=resubmit(,2)']. Exception: 
  Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-ofctl', 'add-flow', 'br-tun', 'hard_timeout=0,idle_timeout=0,priority=1,in_port=-1,actions=resubmit(,2)']
  Exit code: 1
  Stdout: ''
  Stderr: 'ovs-ofctl: -1: negative values not supported for in_port\n'

  This bug affect only devices with long ip address 10.0.0.1 will pass,
  but 192.168.201.10 fail.

  Found in HAVANA with:
  openvswitch: 1.9.3-1
  linux: 3.2.54-2

  But I think length limit will apply on all versions.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1281098/+subscriptions


Follow ups

References