[Rdo-list] Trying out Neutron Quickstart running into issues with netns (l2 agent and dhcp agent)

Thomas Graf tgraf at redhat.com
Mon Aug 5 08:27:21 UTC 2013


On 08/04/2013 05:47 PM, Kashyap Chamarthy wrote:
>>> 2013-08-04 09:08:05  WARNING [quantum.openstack.common.loopingcall] task run outlasted interval by 56.853869 sec
>>> 2013-08-04 09:08:06     INFO [quantum.agent.dhcp_agent] Synchronizing state
>>> 2013-08-04 09:32:34    ERROR [quantum.agent.dhcp_agent] Unable to enable dhcp.
>>> Traceback (most recent call last):
>>>    File "/usr/lib/python2.6/site-packages/quantum/agent/dhcp_agent.py", line 131, in call_driver
>>>      getattr(driver, action)()
>>>    File "/usr/lib/python2.6/site-packages/quantum/agent/linux/dhcp.py", line 124, in enable
>>>      reuse_existing=True)
>>>    File "/usr/lib/python2.6/site-packages/quantum/agent/dhcp_agent.py", line 554, in setup
>>>      namespace=namespace)
>>>    File "/usr/lib/python2.6/site-packages/quantum/agent/linux/interface.py", line 181, in plug
>>>      ns_dev.link.set_address(mac_address)
>>>    File "/usr/lib/python2.6/site-packages/quantum/agent/linux/ip_lib.py", line 180, in set_address
>>>      self._as_root('set', self.name, 'address', mac_address)
>>>    File "/usr/lib/python2.6/site-packages/quantum/agent/linux/ip_lib.py", line 167, in _as_root
>>>      kwargs.get('use_root_namespace', False))
>>>    File "/usr/lib/python2.6/site-packages/quantum/agent/linux/ip_lib.py", line 47, in _as_root
>>>      namespace)
>>>    File "/usr/lib/python2.6/site-packages/quantum/agent/linux/ip_lib.py", line 58, in _execute
>>>      root_helper=root_helper)
>>>    File "/usr/lib/python2.6/site-packages/quantum/agent/linux/utils.py", line 61, in execute
>>>      raise RuntimeError(m)
>>> RuntimeError:
>>> Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ip', 'link', 'set', 'tap07d8cc77-fc', 'address', 'fa:16:3e:da:66:28']
>>> Exit code: 2
>>> Stdout: ''
>>> Stderr: 'RTNETLINK answers: Device or resource busy\n'

Quantum attempts to change the MAC address while the link is up. The
live MAC address change feature is not supported in the openstack
kernel at this point.

We can attempt a backport of the feature to the openstack kernel and
enable it for tap and veth devices or we modify quantum to bring down
the interface before changing the mac address and bring it up again
afterwards.




More information about the dev mailing list