← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1472243] Re: Router interface add port with a mac address raise runtime error

 

** Changed in: neutron
       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/1472243

Title:
  Router interface add port with a mac address raise runtime error

Status in neutron:
  Fix Released

Bug description:
  Trace:
  ERROR neutron.agent.l3.agent [-] Failed to process compatible router '1794ed9d-68d6-402c-a4e5-8041de4c4186'
  TRACE neutron.agent.l3.agent Traceback (most recent call last):
  TRACE neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/l3/agent.py", line 452, in _process_router_update
  TRACE neutron.agent.l3.agent     self._process_router_if_compatible(router)
  TRACE neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/l3/agent.py", line 406, in _process_router_if_compatible
  TRACE neutron.agent.l3.agent     self._process_updated_router(router)
  TRACE neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/l3/agent.py", line 420, in _process_updated_router
  TRACE neutron.agent.l3.agent     ri.process(self)
  TRACE neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/common/utils.py", line 346, in call
  TRACE neutron.agent.l3.agent     self.logger(e)
  TRACE neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
  TRACE neutron.agent.l3.agent     six.reraise(self.type_, self.value, self.tb)
  TRACE neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/common/utils.py", line 343, in call
  TRACE neutron.agent.l3.agent     return func(*args, **kwargs)
  TRACE neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/l3/router_info.py", line 605, in process
  TRACE neutron.agent.l3.agent     self._process_internal_ports()
  TRACE neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/l3/router_info.py", line 361, in _process_internal_ports
  TRACE neutron.agent.l3.agent     self.internal_network_added(p)
  TRACE neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/l3/router_info.py", line 312, in internal_network_added
  TRACE neutron.agent.l3.agent     INTERNAL_DEV_PREFIX)
  TRACE neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/l3/router_info.py", line 288, in _internal_network_added
  TRACE neutron.agent.l3.agent     prefix=prefix)
  TRACE neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/interface.py", line 252, in plug
  TRACE neutron.agent.l3.agent     ns_dev.link.set_address(mac_address)
  TRACE neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 270, in set_address
  TRACE neutron.agent.l3.agent     self._as_root([], ('set', self.name, 'address', mac_address))
  TRACE neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 222, in _as_root
  TRACE neutron.agent.l3.agent     use_root_namespace=use_root_namespace)
  TRACE neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 69, in _as_root
  TRACE neutron.agent.l3.agent     log_fail_as_error=self.log_fail_as_error)
  TRACE neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 78, in _execute
  TRACE neutron.agent.l3.agent     log_fail_as_error=log_fail_as_error)
  TRACE neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py", line 137, in execute
  TRACE neutron.agent.l3.agent     raise RuntimeError(m)
  TRACE neutron.agent.l3.agent RuntimeError: 
  TRACE neutron.agent.l3.agent Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'link', 'set', 'qr-a848e3a3-ce', 'address', '00:00:00:00:00:00']
  TRACE neutron.agent.l3.agent Exit code: 2
  TRACE neutron.agent.l3.agent Stdin: 
  TRACE neutron.agent.l3.agent Stdout: 
  TRACE neutron.agent.l3.agent Stderr: RTNETLINK answers: Cannot assign requested address

  
  Steps to reproduce:
  router_id=$(neutron router-create test | grep ' id ' | awk '{ print $4 }')
  neutron net-create test
  neutron subnet-create test 192.168.0.1/24
  port_id=$(neutron port-create --mac_address '00:00:00:00:00:00' test | grep ' id ' | awk '{ print $4 }')
  neutron router-interface-add $router_id port=$port_id

  Impact:
  Raise RuntimeError instead of NeutronError

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


References