← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1514568] Re: Neutron is not compatible with iproute2 > v4.0.0

 

*** This bug is a duplicate of bug 1497309 ***
    https://bugs.launchpad.net/bugs/1497309

I am using clearlinux.org by the way :)

** This bug has been marked a duplicate of bug 1497309
   l3-agent unable to parse output from ip netns list (iproute2 >= 4.0)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1514568

Title:
  Neutron is not compatible with iproute2 > v4.0.0

Status in neutron:
  New

Bug description:
  Starting with v4.0.0, iproute2 added 'set/get' commands to assign an id, also modifies 
  the 'list' command to make it show the id if an id is assigned.

  Commit d182ee1307c7a83b581d8f6d473bbce2004420c0
  Author: Nicolas Dichtel <nicolas.dichtel@xxxxxxxxx>
  Date:   Tue Feb 17 17:30:37 2015 +0100

      ipnetns: allow to get and set netns ids

      The kernel now provides ids for peer netns. This patch implements a new command
      'set' to assign an id.
      When netns are listed, if an id is assigned, it is now displayed.

      Example:
       $ ip netns add foo
       $ ip netns set foo 1
       $ ip netns
       foo (id: 1)
       init_net

      Signed-off-by: Nicolas Dichtel <nicolas.dichtel@xxxxxxxxx>
      
  This is causing neutron to test if "qrouter-f00783d3-0e99-4fd6-a5b4-e058f857d77d" exists
  which fails because the output of ip netns list is "qrouter-f00783d3-0e99-4fd6-a5b4-e058f857d77d (id: 1)"

  Then tries to create qrouter-f00783d3-0e99-4fd6-a5b4-e058f857d77d which fails becasue the namespace
  already exists.

  # Output from /var/log/neutron/neutron-l3-agent.log
  2015-11-09 17:49:34.050 15248 DEBUG neutron.agent.linux.utils [-] Running command: ['sudo', '/usr/bin/neutron-rootwrap', '/usr/share/neutron/rootwrap.conf', 'ip', '-o', 'netns', 'list'] create_process /usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py:85
  2015-11-09 17:49:34.096 15248 DEBUG neutron.agent.linux.utils [-]
  Command: ['sudo', '/usr/bin/neutron-rootwrap', '/usr/share/neutron/rootwrap.conf', 'ip', '-o', 'netns', 'list']
  Exit code: 0
   execute /usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py:156
  2015-11-09 17:49:34.097 15248 DEBUG neutron.agent.linux.utils [-] Running command: ['sudo', '/usr/bin/neutron-rootwrap', '/usr/share/neutron/rootwrap.conf', 'ip', 'netns', 'add', 'qrouter-f00783d3-0e99-4fd6-a5b4-e058f857d77d'] create_process /usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py:85
  2015-11-09 17:49:34.144 15248 ERROR neutron.agent.linux.utils [-]
  Command: ['sudo', '/usr/bin/neutron-rootwrap', '/usr/share/neutron/rootwrap.conf', 'ip', 'netns', 'add', 'qrouter-f00783d3-0e99-4fd6-a5b4-e058f857d77d']
  Exit code: 1
  Stdin:
  Stdout:
  Stderr: Cannot create namespace file "/var/run/netns/qrouter-f00783d3-0e99-4fd6-a5b4-e058f857d77d": File exists

  Steps to reproduce:
  #1 Upgrade iproute to a version equal or greater than v4.0.0
  #2 Create a router.

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


References