yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #58928
[Bug 1374663] Re: [SRU] agent/linux/ip_lib.py does not correctly handle output from 'iproute2' command
This bug was fixed in the package neutron - 1:2014.1.5-0ubuntu7
---------------
neutron (1:2014.1.5-0ubuntu7) trusty; urgency=medium
* agent/linux/ip_lib.py does not correctly handle output from 'iproute2'
command. (LP: #1374663):
- d/p/neutron-ns-iface-enum.patch: Searches /sys/class/net for the correct
interface name instead of scraping iproute2 output.
-- Shane Peters (Shaner) <shane.peters@xxxxxxxxxxxxx> Thu, 03 Nov 2016
16:53:31 -0400
** Changed in: neutron (Ubuntu Trusty)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1374663
Title:
[SRU] agent/linux/ip_lib.py does not correctly handle output from
'iproute2' command
Status in Ubuntu Cloud Archive:
Fix Released
Status in Ubuntu Cloud Archive icehouse series:
In Progress
Status in neutron:
Fix Released
Status in neutron package in Ubuntu:
Fix Released
Status in neutron source package in Trusty:
Fix Released
Bug description:
[Impact]
* The get_devices() method in neutron/agent/linux/ip_lib.py chokes if 'iproute2' presents interface names containing '@', such as ipip tunnels and macvlan devices:
tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default
clone@eth0: <BROADCAST,MULTICAST> mtu 1454 qdisc noop state DOWN mode DEFAULT
* The mere presence of one of the above interface names will cause the
code to fail with:
RuntimeError:
Command: ['ip', 'addr', 'show', 'tunl0@NONE']
Exit code: 1
Stdout: ''
Stderr: 'Device "tunl0@NONE" does not exist.\n'
[Test Case]
* This has been seen in the vpn_agent.log after upgrading to a xenial kernel (4.4.0-45-generic) in a trusty/icehouse environment.
/var/log/neutron/vpn_agent.log:
ERROR neutron.agent.linux.interface [-] Failed unplugging interface 'qg-e75da35-63@if10'
[Regression Potential]
* iproute2 is still used, however, a search path was added
(/sys/class/net) which returns the interfaces without the '@'.
* This has been fixed since Kilo so there is minimal regression
potential.
[ Other Info ]
*
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1374663/+subscriptions
References