Neutron cannot ping router gateway external flat network

asked 2015-01-17 05:49:12 -0500

iqbal gravatar image

updated 2015-01-17 05:50:28 -0500

Dear Stackers,

I build HA openstack juno on debian wheezy 7.7 with neutron network.

But when i try create external network, i can't ping router::gateway (status down) and i found some weird on my neutron-server (controller) and neutron-plugins (network)

neutron.log (controller)

2015-01-17 18:32:38.126 5940 INFO neutron.api.extensions [-] Extension 'Distributed Virtual Router' provides no backward compatibility map for extended attributes

2015-01-17 18:32:38.126 5940 INFO neutron.api.extensions [-] Extension 'Neutron Extra Route' provides no backward compatibility map for extended attributes

neutron-openvswitch-agent.log (network)

2015-01-17 18:26:01.022 13974 INFO neutron.plugins.openvswitch.agent.ovs_neutron_agent [req-6bb9cbe5-7ce9-4d29-a6d5-17b249f31110 None] Agent out of sync with plugin!

2015-01-17 18:26:01.081 13974 INFO neutron.plugins.openvswitch.agent.ovs_neutron_agent [req-6bb9cbe5-7ce9-4d29-a6d5-17b249f31110 None] Agent tunnel out of sync with plugin!

2015-01-17 18:27:54.622 13974 ERROR neutron.agent.linux.ovsdb_monitor [-] Error received from ovsdb monitor: ovsdb-client: unix:/var/run/openvswitch/db.sock: receive failed (End of file)

2015-01-17 18:27:54.637 13974 ERROR neutron.agent.linux.utils [-] 
Command: ['ps', '--ppid', '14139', '-o', 'pid=']
Exit code: 1
Stdout: ''
Stderr: ''

2015-01-17 18:27:55.638 13974 INFO neutron.plugins.openvswitch.agent.ovs_neutron_agent [req-6bb9cbe5-7ce9-4d29-a6d5-17b249f31110 None] Mapping physical network external to bridge br-ex

2015-01-17 18:27:57.628 13974 INFO neutron.plugins.openvswitch.agent.ovs_neutron_agent [req-6bb9cbe5-7ce9-4d29-a6d5-17b249f31110 None] Agent tunnel out of sync with plugin!

neutron-l3-agent.log (network)

2015-01-17 18:34:29.424 13859 ERROR neutron.agent.linux.utils [-] 
Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qrouter-9b5a9267-ef06-4c21-b19d-c62b248e55d9', 'ip', '-o', '-d', 'link', 'list']
Exit code: 1
Stdout: ''
Stderr: 'Cannot open network namespace "qrouter-9b5a9267-ef06-4c21-b19d-c62b248e55d9": No such file or directory\n'

2015-01-17 18:34:29.425 13859 ERROR neutron.agent.l3_agent [-] 
Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qrouter-9b5a9267-ef06-4c21-b19d-c62b248e55d9', 'ip', '-o', '-d', 'link', 'list']
Exit code: 1
Stdout: ''
Stderr: 'Cannot open network namespace "qrouter-9b5a9267-ef06-4c21-b19d-c62b248e55d9": No such file or directory\n'

2015-01-17 18:34:29.425 13859 TRACE neutron.agent.l3_agent Traceback (most recent call last):

2015-01-17 18:34:29.425 13859 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.7/dist-packages/neutron/common/utils.py", line 341, in call

2015-01-17 18:34:29.425 13859 TRACE neutron.agent.l3_agent     return func(*args, **kwargs)

2015-01-17 18:34:29.425 13859 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/l3_agent.py", line 904, in process_router

2015-01-17 18:34:29.425 13859 TRACE neutron.agent.l3_agent     existing_devices = self._get_existing_devices(ri)

2015-01-17 18:34:29.425 13859 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/l3_agent.py", line 858, in _get_existing_devices

2015-01-17 18:34:29.425 13859 TRACE neutron.agent.l3_agent     ip_devs = ip_wrapper.get_devices(exclude_loopback=True)

2015-01-17 18:34:29.425 13859 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 104, in get_devices

2015-01-17 18:34:29.425 13859 TRACE neutron.agent.l3_agent     self.root_helper, self.namespace)

2015-01-17 18:34:29.425 13859 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent ...
(more)
edit retag flag offensive close merge delete

Comments

Stderr: 'Cannot open network namespace "qrouter-9b5a9267-ef06-4c21-b19d-c62b248e55d9": No such file or directory\n' Router namespace is not properly configured. Clean all network / Restart service and configure network again.

Ranjit gravatar imageRanjit ( 2015-01-18 07:39:57 -0500 )edit

Also verify all neutron agents status before configuring network.

Ranjit gravatar imageRanjit ( 2015-01-18 07:40:36 -0500 )edit

Dear Ranjit,

I already clear all network and all neutron agent is up. But still no luck, i got this in neutron-l3-agent.log

Stderr: '/usr/bin/neutron-rootwrap: Unauthorized command: ip netns exec qrouter-53c2045b-2612-4339-ba05-7d164825dbb7 conntrack -D -q 192.168.100.52 (no filter matched)\n'
iqbal gravatar imageiqbal ( 2015-01-19 01:05:14 -0500 )edit

ok. Then it needs more debugging. Can you copy and paste the output of following.

  1. ovs-vsctl show
  2. ip netns
  3. neutron net-list
  4. neutron related .conf files
Ranjit gravatar imageRanjit ( 2015-01-19 02:55:11 -0500 )edit

Dear Ranjit,

Really appreciate your help...i solve the problem, now my gateway connected, but still have a problem

i can't connect to metadata,

checking http://169.254.169.254/2009-04-04/instance-id
failed 1/20: up 0.93. request failed...

do you know how to fix it?

iqbal gravatar imageiqbal ( 2015-01-19 06:35:53 -0500 )edit