[Openstack] [neutron][l3-agent] router-create does not create namespaces in juno

Akilesh K akilesh1597 at gmail.com
Thu Dec 11 11:46:12 UTC 2014


The issue occurs when there are two external networks. l3-agent complains
in the log file that when two external networks are present, the
gateway_external_network_id must be specified as below.

2014-12-11 17:23:22.103 7064 DEBUG neutron.common.rpc [-]
neutron.agent.l3_agent.L3PluginApi method call called with arguments
(<neutron.context.ContextBase object at 0x7f5d46e6e5d0>, {'args': {'host':
'nfvo1'}, 'namespace': None, 'method': 'get_external_network_id'}) {}
wrapper /usr/lib/python2.7/dist-packages/neutron/common/log.py:33
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/eventlet/greenpool.py", line 80,
in _spawn_n_impl
    func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/neutron/agent/l3_agent.py", line
1834, in _process_router_update
    self._process_routers([router])
  File "/usr/lib/python2.7/dist-packages/neutron/agent/l3_agent.py", line
1774, in _process_routers
    target_ex_net_id = self._fetch_external_net_id()
  File "/usr/lib/python2.7/dist-packages/neutron/agent/l3_agent.py", line
745, in _fetch_external_net_id
    raise Exception(msg)
Exception: The 'gateway_external_network_id' option must be configured for
this agent as Neutron has more than one external network.


Surprisingly this part of the log only pops up when i run l3-agent as root
from cli and does not write to log file when it is started as neutron user
from init.


When the second external network was deleted everything was fine.

On Thu, Dec 11, 2014 at 4:11 PM, Akilesh K <akilesh1597 at gmail.com> wrote:

> Hi,
> I am facing a strange issue where in juno, creating a router does not
> create a namespace. I even attached router to subnet and set external
> gateway and still nothing happens.
>
> The router's ports are in 'down' status and they are not seen when i do
> 'ovs-vsctl show'
>
> use_namespace is True in l3-agent.ini.
>
> ip netns shows only dhcp namespaces.
>
> Can anyone point me in the right direction? What am I missing?
>
> Thank you,
> Ageeleshwar K
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141211/785261dc/attachment.html>


More information about the Openstack mailing list