[ovs-dev] dpif_netlink|INFO|Generic Netlink family 'ovs_datapath' does not exist. .

Xu Wei weiyshay at gmail.com
Sat May 4 01:56:56 UTC 2019


Hi,
I got the error message while I tried to run ovs-vswitch 2.10.1 on CentOS
7.6
and I am using a 4.20 kernel with openvswitch built into vmlinuz.

I disabled selinux due to the documentation and it didn't make sense.
Also, all the netlink related options had been included in my kernel
config while IPv6 was disabled cos I wanted a minimal setup:

The kernel path netlink_sendmsg() was invoked and all the things done was a
unicast to tap interfaces(no any actually) and netlink_ack().

It seems like it fails when trying to handle and update the default route
in 'netdev_linux_netnsid_update__()', see call trace below:

Also, I didn't see this problem on ovs 2.8 since no netdev related check
and initialization in the code path.

Can anybody help?

command line:
ovs-vswitchd --pidfile --detach --log-file

Kernel config:
CONFIG_COMPAT_NETLINK_MESSAGES=y
CONFIG_NETFILTER_NETLINK=y
CONFIG_NETFILTER_NETLINK_ACCT=y
CONFIG_NETFILTER_NETLINK_QUEUE=y
CONFIG_NETFILTER_NETLINK_LOG=y
CONFIG_NETFILTER_NETLINK_OSF=m
CONFIG_NF_CT_NETLINK=y
CONFIG_NF_CT_NETLINK_TIMEOUT=y
# CONFIG_NF_CT_NETLINK_HELPER is not set
CONFIG_NETFILTER_NETLINK_GLUE_CT=y
CONFIG_NETLINK_DIAG=m
CONFIG_SCSI_NETLINK=y
CONFIG_QUOTA_NETLINK_INTERFACE=y

ovs-switchd call trace:
#0  dpif_netlink_init () at lib/dpif-netlink.c:3367
#1  0x000000000052b23c in dpif_netlink_vport_transact
(request=0x7fffffffc0a0, reply=0x7fffffffc120, bufp=0x7fffffffc118) at
lib/dpif-netlink.c:3557
#2  0x000000000052c32d in dpif_netlink_vport_get (name=<optimized out>,
reply=reply at entry=0x7fffffffc120, bufp=bufp at entry=0x7fffffffc118) at
lib/dpif-netlink.c:3597
#3  0x000000000052fc63 in netdev_linux_netnsid_update__ (netdev=0x899980)
at lib/netdev-linux.c:603
#4  netdev_linux_netnsid_update (netdev=0x899980) at lib/netdev-linux.c:627
#5  0x000000000052fd25 in netdev_linux_netnsid_update (netdev=0x899980,
netdev at entry=0x899930) at lib/netdev-linux.c:646
#6  netdev_linux_netnsid_is_remote (netdev=netdev at entry=0x899980) at
lib/netdev-linux.c:644
#7  0x0000000000530480 in netdev_linux_get_addr_list (netdev_=0x899980,
addr=0x7fffffffc220, mask=0x7fffffffc218, n_cnt=0x7fffffffc214) at
lib/netdev-linux.c:2872
#8  0x000000000049898f in netdev_get_addr_list (netdev=<optimized out>,
addr=addr at entry=0x7fffffffc220, mask=mask at entry=0x7fffffffc218,
n_addr=n_addr at entry=0x7fffffffc214)
    at lib/netdev.c:1283
#9  0x00000000004eaa59 in get_src_addr (ip6_dst=ip6_dst at entry=0x7fffffffd18c,
output_bridge=output_bridge at entry=0x7fffffffd19c "enp3s0",
psrc=psrc at entry=0x899958)
at lib/ovs-router.c:181
#10 0x00000000004eb080 in ovs_router_insert__ (mark=<optimized out>,
priority=<optimized out>, local=<optimized out>,
ip6_dst=ip6_dst at entry=0x7fffffffd17c,
plen=<optimized out>,
    output_bridge=output_bridge at entry=0x7fffffffd19c "enp3s0",
gw=gw at entry=0x7fffffffd18c)
at lib/ovs-router.c:240
#11 0x00000000004eb944 in ovs_router_insert (mark=<optimized out>,
ip_dst=ip_dst at entry=0x7fffffffd17c, plen=<optimized out>, local=<optimized
out>,
    output_bridge=output_bridge at entry=0x7fffffffd19c "enp3s0",
gw=gw at entry=0x7fffffffd18c)
at lib/ovs-router.c:274
#12 0x000000000053bf1e in route_table_handle_msg (change=0x7fffffffd170) at
lib/route-table.c:311
#13 route_table_reset () at lib/route-table.c:184
#14 0x000000000053bff9 in route_table_init () at lib/route-table.c:119
#15 0x0000000000475b85 in dp_initialize () at lib/dpif.c:123
#16 0x0000000000475c8e in dp_enumerate_types (types=0x7fffffffe230) at
lib/dpif.c:241
#17 0x000000000041ae45 in ofproto_enumerate_types
(types=types at entry=0x7fffffffe230)
at ofproto/ofproto.c:440
#18 0x000000000040b5e5 in bridge_run__ () at vswitchd/bridge.c:2942
#19 0x0000000000411580 in bridge_run () at vswitchd/bridge.c:3008
#20 0x0000000000412c77 in main (argc=4, argv=0x7fffffffe4e8) at
vswitchd/ovs-vswitchd.c:125


More information about the dev mailing list