yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #41959
[Bug 1193972] Re: To set mac address needs the link is down
[Expired for neutron because there has been no activity for 60 days.]
** Changed in: neutron
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1193972
Title:
To set mac address needs the link is down
Status in neutron:
Expired
Bug description:
`Command: ['sudo', '/usr/bin/quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ip', 'link', 'set', 'tap12968d5 a-ba', 'address', 'fa:16:3e:3f:c2:0c']
Exit code: 2
Stdout: ''
Stderr: 'RTNETLINK answers: Device or resource busy\n'`
The workaround above can be done within the code as:
--- /usr/lib/python2.6/site-packages/quantum/agent/linux/interface.py
+++ /usr/lib/python2.6/site-packages/quantum/agent/linux/interface.py
@@ -174,7 +174,9 @@
internal=internal)
ns_dev = ip.device(device_name)
+ ns_dev.link.set_down()
ns_dev.link.set_address(mac_address)
+ ns_dev.link.set_up()
if self.conf.network_device_mtu:
ns_dev.link.set_mtu(self.conf.network_device_mtu)
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1193972/+subscriptions