Ask Your Question
0

Juno neutron DVR and multiple external network can not work

asked 2015-08-31 22:30:02 -0500

akqzx gravatar image

updated 2015-09-01 10:21:48 -0500

Hello

After I enable DVR and add multiple external network,I get the error log:

root@network:~# tail -f /var/log/neutron/l3-agent.log
2015-09-01 11:13:02.507 10689 INFO neutron.openstack.common.service [req-98f5f879-41ee-40f1-b4ea-4883b41b95a6 None] Caught SIGTERM, exiting
2015-09-01 11:13:03.111 30071 INFO neutron.common.config [-] Logging enabled!
2015-09-01 11:13:03.117 30071 INFO oslo.messaging._drivers.impl_rabbit [req-1fea1d8c-1ee3-4139-9f78-6a11ddc047ad ] Connecting to AMQP server on controller:5672
2015-09-01 11:13:03.133 30071 INFO oslo.messaging._drivers.impl_rabbit [req-1fea1d8c-1ee3-4139-9f78-6a11ddc047ad ] Connected to AMQP server on controller:5672
2015-09-01 11:13:03.140 30071 INFO oslo.messaging._drivers.impl_rabbit [req-1fea1d8c-1ee3-4139-9f78-6a11ddc047ad ] Connecting to AMQP server on controller:5672
2015-09-01 11:13:03.153 30071 INFO oslo.messaging._drivers.impl_rabbit [req-1fea1d8c-1ee3-4139-9f78-6a11ddc047ad ] Connected to AMQP server on controller:5672
2015-09-01 11:13:03.193 30071 INFO oslo.messaging._drivers.impl_rabbit [-] Connecting to AMQP server on controller:5672
2015-09-01 11:13:03.206 30071 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on controller:5672
2015-09-01 11:13:03.219 30071 INFO neutron.agent.l3_agent [-] L3 agent started
2015-09-01 11:13:06.463 30071 ERROR neutron.agent.l3_agent [-] DVR: no map match_port found!
2015-09-01 11:13:07.108 30071 ERROR neutron.agent.l3_agent [-] DVR: no map match_port found!


root@network:~# cat /etc/neutron/plugins/ml2/ml2_conf.ini |grep -Ev '(^$)|(^\s*#)'
[ml2]
type_drivers = local,flat,vlan,gre,vxlan
tenant_network_types = vxlan
mechanism_drivers = openvswitch,l2population
[ml2_type_flat]
[ml2_type_vlan]
network_vlan_ranges = external:610:650
[ml2_type_gre]
[ml2_type_vxlan]
vni_ranges = 65537:69999
vxlan_group = 239.1.1.1
[securitygroup]
enable_security_group = True
enable_ipset = True
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
[ovs]
local_ip = 10.0.1.21
bridge_mappings = external:br-ex
[agent]
l2population = True
enable_distributed_routing = True
arp_responder = True
tunnel_types = vxlan                              


root@network:~# tail -f /var/log/neutron/openvswitch-agent.log
2015-09-01 11:19:30.365 31217 INFO neutron.plugins.openvswitch.agent.ovs_neutron_agent [req-65467bb5-f28c-4e71-9a84-90a44251831a None] Configuration for device d27bedbb-a476-46b5-8c07-182232dc9559 completed.
2015-09-01 11:19:30.518 31217 INFO neutron.plugins.openvswitch.agent.ovs_neutron_agent [req-65467bb5-f28c-4e71-9a84-90a44251831a None] Port f2fd8f08-fc83-4d81-be4f-dbf3491d1003 updated. Details: {u'profile': {}, u'admin_state_up': True, u'network_id': u'02b3253a-6b28-4584-bb6f-ef734c4a7c6b', u'segmentation_id': 65541, u'device_owner': u'network:router_interface_distributed', u'physical_network': None, u'mac_address': u'fa:16:3e:27:99:3a', u'device': u'f2fd8f08-fc83-4d81-be4f-dbf3491d1003', u'port_id': u'f2fd8f08-fc83-4d81-be4f-dbf3491d1003', u'fixed_ips': [{u'subnet_id': u'eeb67f31-ba9a-4dee-bbb0-62404663990e', u'ip_address': u'192.168.1.1'}], u'network_type': u'vxlan'}
2015-09-01 11:19:31.348 31217 INFO neutron.plugins.openvswitch.agent.ovs_neutron_agent [req-65467bb5-f28c-4e71-9a84-90a44251831a None] Configuration for device f2fd8f08-fc83-4d81-be4f-dbf3491d1003 completed.
2015-09-01 11:19:31.502 31217 INFO neutron.plugins.openvswitch.agent.ovs_neutron_agent [req-65467bb5-f28c-4e71-9a84-90a44251831a None] Port 3e3d20cb-18f2-4f7c-9154-b6a0984cd114 updated. Details: {u'profile': {}, u'admin_state_up': True, u'network_id': u'bc6d543f-e8b0-485c-9ecc-dfa541ec0e80', u'segmentation_id': 65537, u'device_owner': u'network:dhcp', u'physical_network': None, u'mac_address': u'fa:16:3e:9e:7f:8b', u'device': u'3e3d20cb-18f2-4f7c-9154-b6a0984cd114', u'port_id': u'3e3d20cb-18f2-4f7c-9154-b6a0984cd114', u'fixed_ips': [{u'subnet_id': u'8713c00a-c344-4566-be4a-905b11a4eb49', u'ip_address': u'192.168.1.3'}], u'network_type': u'vxlan'}
2015-09-01 11:19:31.894 31217 INFO neutron.plugins.openvswitch.agent.ovs_neutron_agent [req-65467bb5-f28c-4e71-9a84-90a44251831a None] Configuration for device 3e3d20cb-18f2-4f7c-9154-b6a0984cd114 completed.
2015-09-01 11:19:32.047 31217 INFO neutron.plugins.openvswitch.agent.ovs_neutron_agent [req-65467bb5-f28c-4e71-9a84-90a44251831a None ...
(more)
edit retag flag offensive close merge delete

Comments

Did you use "provider external networks" to create several external networks ?
Like in :
1. https://bugzilla.redhat.com/show_bug....
2. http://blog.oddbit.com/2014/05/28/mul...

dbaxps gravatar imagedbaxps ( 2015-09-01 02:49:06 -0500 )edit

Yes,I ues the same "provider external networks" to create everal external networks.

I had only one NIC can be use to external network,had anyway to make it?

my openstack Tenant network use vxlan,and External network use vlan.

akqzx gravatar imageakqzx ( 2015-09-01 03:11:25 -0500 )edit

Could you post ml2_conf.ini as UPDATE 1 to question ?

dbaxps gravatar imagedbaxps ( 2015-09-01 03:27:18 -0500 )edit

I post ml2_conf.ini in the question,Thank you

akqzx gravatar imageakqzx ( 2015-09-01 03:35:55 -0500 )edit

Please, post an exact syntax of CLI been used to create external networks.

dbaxps gravatar imagedbaxps ( 2015-09-01 11:32:02 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2015-09-01 12:07:22 -0500

dbaxps gravatar image

updated 2015-12-25 07:31:21 -0500

UPDATE 12/25/2015
See Running DVR with Two external network via flat network provider on CentOS 7.2 RDO Liberty
END UPDATE

On any compute node of my RDO Juno DVR deployment I am able to run.
Are you able to reproduce the same on yours ?

[root@ip-192-169-142-147 neutron]# ip netns
fip-76a8cbc3-ebed-4502-9448-a3f25b028886
qrouter-2ba3a798-5964-4ea7-87ed-d8e171afaf23
[root@ip-192-169-142-147 neutron]# ip netns exec fip-76a8cbc3-ebed-4502-9448-a3f25b028886 ip a | grep "inet"
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
    inet 169.254.31.29/31 scope global fpr-2ba3a798-5
    inet6 fe80::b0d0:2dff:febe:76d/64 scope link 
    inet 192.169.142.154/24 brd 192.169.142.255 scope global fg-ba2f2344-8f
    inet6 fe80::f816:3eff:fe82:f091/64 scope link 
[root@ip-192-169-142-147 neutron]# ip netns exec fip-76a8cbc3-ebed-4502-9448-a3f25b028886 route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.169.142.1   0.0.0.0         UG    0      0        0 fg-ba2f2344-8f
169.254.31.28   0.0.0.0         255.255.255.254 U     0      0        0 fpr-2ba3a798-5
192.169.142.0   0.0.0.0         255.255.255.0   U     0      0        0 fg-ba2f2344-8f
192.169.142.153 169.254.31.28   255.255.255.255 UGH   0      0        0 fpr-2ba3a798-5
[root@ip-192-169-142-147 neutron]# ip netns exec fip-76a8cbc3-ebed-4502-9448-a3f25b028886 ifconfig
fg-ba2f2344-8f: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.169.142.154  netmask 255.255.255.0  broadcast 192.169.142.255
        inet6 fe80::f816:3eff:fe82:f091  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:82:f0:91  txqueuelen 0  (Ethernet)
        RX packets 774365  bytes 1050468192 (1001.8 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 335056  bytes 26893163 (25.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

fpr-2ba3a798-5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.31.29  netmask 255.255.255.254  broadcast 0.0.0.0
        inet6 fe80::b0d0:2dff:febe:76d  prefixlen 64  scopeid 0x20<link>
        ether b2:d0:2d:be:07:6d  txqueuelen 1000  (Ethernet)
        RX packets 334991  bytes 26890433 (25.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 774307  bytes 1050465960 (1001.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Regarding multiple external network see Comment 6 from https://bugzilla.redhat.com/show_bug....

edit flag offensive delete link more

Comments

what is this for? I do not had any fip**

root@network:~# ip netns
qrouter-1bf79330-4e63
snat-a98c8471-e966
qrouter-cfe08d24-b60b
qrouter-a98c8471-e966
qdhcp-bc6d543f-e8b0
qdhcp-8997fbe9-f3df
qdhcp-553f18d9-1fd9
qdhcp-344d66dd-8578
qdhcp-02b3253a-6b28
akqzx gravatar imageakqzx ( 2015-09-01 22:16:26 -0500 )edit

I recommend you read http://schmaustech.blogspot.com/2014/...
and https://kimizhang.wordpress.com/2014/...
To get better understanding how DVR works.

dbaxps gravatar imagedbaxps ( 2015-09-02 00:31:24 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-08-31 22:30:02 -0500

Seen: 540 times

Last updated: Dec 25 '15