OpenDaylight is not able to resolve the MAC address of the external gateway IP when integrated with OpenStack

asked 2019-02-21 03:42:27 -0500

Mansi Jain gravatar image

Hi, I integrated ODL(Carbon) with OpenStack (Queens) using kolla. But provider network(Flat,VLAN) was not working. After debugging, I found that ODL is not able to resolve the MAC address of the external gateway IP.

The below mentioned document says:

Verify OpenDaylight has successfully resolved the MAC address of the external gateway IP. This can be verified by searching for the line “Installing ext-net group” in the karaf.log.

I cannot find "Installing ext-net group” in karaf.log.

https://media.readthedocs.org/pdf/odl-netvirt/latest/odl-netvirt.pdf (https://media.readthedocs.org/pdf/odl...)

CONTROLLER NODE:

****(openvswitch-vswitchd)[root@CONTROLLER232585 /]# **ovs-vsctl show******
ecb7ea92-14d5-44cc-a75a-280f77149e1b
    Manager "tcp:172.16.140.23:6641"
        is_connected: true
    Bridge br-ex
        Port br-ex
            Interface br-ex
                type: internal
        Port "eno2"
            Interface "eno2"
        Port br-ex-int-patch
            Interface br-ex-int-patch
                type: patch
                options: {peer=br-ex-patch}
    Bridge br-int
        Controller "tcp:172.16.140.23:6653"
            is_connected: true
        fail_mode: secure
        Port "tap9aab0916-d4"
            tag: 4095
            Interface "tap9aab0916-d4"
                type: internal
        Port "tapdb35096f-bd"
            Interface "tapdb35096f-bd"
        Port br-int
            Interface br-int
                type: internal
        Port br-ex-patch
            Interface br-ex-patch
                type: patch
                options: {peer=br-ex-int-patch}
        Port "tap41518687-bb"
            Interface "tap41518687-bb"
        Port "tap6eb22bc3-70"
            tag: 4095
            Interface "tap6eb22bc3-70"
                type: internal
        Port "tund12616179b8"
            Interface "tund12616179b8"
                type: vxlan
                options: {key=flow, local_ip="172.16.140.23", remote_ip="172.16.140.42"}

DUMP FLOWS CONTROLLER NODE:

CONTROLLER

    (openvswitch-vswitchd)[root@CONTROLLER232585 /]#
    (openvswitch-vswitchd)[root@CONTROLLER232585 /]# **ovs-ofctl -OOpenFlow13 dump-flows br-int**
    cookie=0x8000001, duration=62384.328s, table=0, n_packets=261916, n_bytes=16668165, priority=5,in_port=tund12616179b8 actions=write_metadata:0xa0000000001/0xfffff0000000001,goto_table:36
    cookie=0x8000000, duration=65351.916s, table=0, n_packets=751966, n_bytes=61266807, priority=4,in_port="br-ex-patch",vlan_tci=0x0000/0x1fff actions=write_metadata:0x30000000001/0xffffff0000000001,goto_table:17
    cookie=0x8000000, duration=65346.686s, table=0, n_packets=566, n_bytes=48017, priority=4,in_port="tap9aab0916-d4",vlan_tci=0x0000/0x1fff actions=write_metadata:0x10000000000/0xffffff0000000001,goto_table:17
    cookie=0x8000000, duration=63578.321s, table=0, n_packets=387, n_bytes=41193, priority=4,in_port="tap6eb22bc3-70",vlan_tci=0x0000/0x1fff actions=write_metadata:0x40000000000/0xffffff0000000001,goto_table:17
    cookie=0x8000000, duration=63413.908s, table=0, n_packets=148, n_bytes=13764, priority=4,in_port="tapdb35096f-bd",vlan_tci=0x0000/0x1fff actions=write_metadata:0x50000000000/0xffffff0000000001,goto_table:17
    cookie=0x8000000, duration=62385.119s, table=0, n_packets=117, n_bytes=11230, priority=4,in_port="tap41518687-bb",vlan_tci=0x0000/0x1fff actions=write_metadata:0x70000000000/0xffffff0000000001,goto_table:17
    cookie=0x8000001, duration=65350.569s, table=17, n_packets=751960, n_bytes=61266165, priority=10,metadata=0x30000000000/0xffffff0000000000 actions=load:0x186a1->NXM_NX_REG3[0..24],write_metadata:0x9000030000030d42/0xfffffffffffffffe,goto_table:19
    cookie=0x8040000, duration=65350.569s, table=17, n_packets=751950, n_bytes=61265001, priority=10,metadata=0x9000030000000000/0xffffff0000000000 actions=load:0x3->NXM_NX_REG1[0..19],load:0x138a->NXM_NX_REG7[0..15],write_metadata:0xa00003138a000000/0xfffffffffffffffe,goto_table:43
    cookie=0x8000001, duration=65346.616s, table=17, n_packets=566, n_bytes=48017, priority=10,metadata=0x10000000000/0xffffff0000000000 actions=load:0x186a4->NXM_NX_REG3[0..24],write_metadata:0x9000010000030d48/0xfffffffffffffffe,goto_table:19
    cookie=0x8040000, duration=65346.616s, table=17, n_packets=566, n_bytes=48017, priority=10,metadata=0x9000010000000000/0xffffff0000000000 actions=load:0x1->NXM_NX_REG1[0..19],load:0x138a->NXM_NX_REG7[0..15],write_metadata:0xa00001138a000000/0xfffffffffffffffe,goto_table:43
    cookie=0x8000001, duration=63577.387s, table=17, n_packets=387, n_bytes=41193, priority=10,metadata=0x40000000000/0xffffff0000000000 actions=load:0x186a7->NXM_NX_REG3[0..24 ...
(more)
edit retag flag offensive close merge delete

Comments

I think ext-net refers to the public network, try to find the public network name in the logs, also check all the log files as karaf is quite big and tends to rotate often

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2019-02-21 05:44:13 -0500 )edit

I checked all the karaf logs but could not find anything related to public network.

Mansi Jain gravatar imageMansi Jain ( 2019-02-24 11:46:37 -0500 )edit

ODL worked with OpenStack Pike but it is not working with Queens release.

Mansi Jain gravatar imageMansi Jain ( 2019-02-27 00:14:34 -0500 )edit