yugang
发件人: yewgang
发送时间: 2016-03-23 12:11
收件人: yugang
抄送: Chandran, Sugesh; yugangdeai; discuss
主题: Re: [ovs-discuss] 回复: Re: userspace openvswitch
2016-03-22 9:11 GMT+08:00 yugang <yug...@dptechnology.net>:
Dear,
Here are the log:
2009-01-02T14:42:35Z|00043|hmap|DBG|lib/shash.c:112: 6 nodes in bucket (64
nodes, 32 buckets)
2009-01-02T14:42:35Z|00044|hmap|DBG|lib/shash.c:112: 6 nodes in bucket (64
nodes, 32 buckets)
2009-01-02T14:42:35Z|00045|netlink_socket|DBG|nl_sock_send__ (Success):
nl(len:17, type=26(family-defined), flags=305[REQUEST][ACK][DUMP], seq=1,
pid=4294963102
2009-01-02T14:42:35Z|00046|netlink_socket|DBG|nl_sock_recv__ (Success):
nl(len:68, type=24(family-defined), flags=2[MULTI], seq=1, pid=4294963102
2009-01-02T14:42:35Z|00047|netlink_socket|DBG|nl_sock_recv__ (Success):
nl(len:164, type=24(family-defined), flags=2[MULTI], seq=1, pid=4294963102
2009-01-02T14:42:35Z|00048|netlink_socket|DBG|nl_sock_recv__ (Success):
nl(len:164, type=24(family-defined), flags=2[MULTI], seq=1, pid=4294963102
2009-01-02T14:42:35Z|00049|netlink_socket|DBG|nl_sock_recv__ (Success):
nl(len:144, type=24(family-defined), flags=2[MULTI], seq=1, pid=4294963102
2009-01-02T14:42:35Z|00050|netlink_socket|DBG|nl_sock_recv__ (Success):
nl(len:144, type=24(family-defined), flags=2[MULTI], seq=1, pid=4294963102
2009-01-02T14:42:35Z|00051|netlink_socket|DBG|nl_sock_recv__ (Success):
nl(len:144, type=24(family-defined), flags=2[MULTI], seq=1, pid=4294963102
2009-01-02T14:42:35Z|00052|netlink_socket|DBG|nl_sock_recv__ (Success):
nl(len:20, type=3(done), flags=2[MULTI], seq=1, pid=4294963102 done(0)
2009-01-02T14:42:35Z|00053|netlink_socket|DBG|nl_sock_transact_multiple__
(Success): nl(len:40, type=16(control), flags=1[REQUEST], seq=1,
pid=14940,genl(cmd=3,version=1)
2009-01-02T14:42:35Z|00054|netlink_socket|DBG|nl_sock_recv__ (Success):
nl(len:36, type=2(error), flags=0, seq=1, pid=14940 error(-2(No such file or
directory), in-reply-to(nl(len:40, type=16(control), flags=1[REQUEST], seq=1,
pid=14940))
2009-01-02T14:42:35Z|00055|netlink_socket|DBG|received NAK error=0 (No such
file or directory)
2009-01-02T14:42:35Z|00056|dpif_netlink|ERR|Generic Netlink family
'ovs_datapath' does not exist. The Open vSwitch kernel module is probably not
loaded.
It seems that no datapath named 'ovs_datapath' exist.
So does you add bridge which type is 'ovs_datapath' already?
In OVS, default datapath type is 'ovs_datapath' or something.
[DPTECH-Developer-Shell]ovs-vsctl --timeout 10 add-br brtest -- set bridge
brtest datapath_type=netdev
ovs-vsctl: Error detected while setting up 'brtest'. See ovs-vswitchd log for
details.
[DPTECH-Developer-Shell]
We want to use it in userspace totaly, and this error is related to netlink and
kernel module, should not i ignore this error?
2009-01-02T14:42:35Z|00057|dpif|WARN|failed to enumerate system datapaths: No
such file or directory
2009-01-02T14:42:35Z|00058|dpif|WARN|failed to create datapath ovs-system: No
such file or directory
2009-01-02T14:42:35Z|00059|ofproto_dpif|ERR|failed to open datapath of type
system: No such file or directory
2009-01-02T14:42:35Z|00060|ofproto|ERR|failed to open datapath br1008: No such
file or directory
2009-01-02T14:42:35Z|00061|bridge|ERR|failed to create bridge br1008: No such
file or directory
2009-01-02T14:42:35Z|00062|dpif|WARN|failed to enumerate system datapaths: No
such file or directory
2009-01-02T14:42:39Z|00063|dpif|WARN|failed to create datapath ovs-system: No
such file or directory
2009-01-02T14:42:39Z|00064|ofproto_dpif|ERR|failed to open datapath of type
system: No such file or directory
2009-01-02T14:42:39Z|00065|ofproto|ERR|failed to open datapath br1009: No such
file or directory
2009-01-02T14:42:39Z|00066|bridge|ERR|failed to create bridge br1009: No such
file or directory
2009-01-02T14:42:39Z|00067|netdev_linux|WARN|ovs-netdev: creating tap device
failed: Invalid argument
Best regards,
Yugang
yugang
发件人: yugang
发送时间: 2016-03-22 09:03
收件人: Chandran, Sugesh; yugangdeai; discuss
主题: Re: RE: [ovs-discuss] userspace openvswitch
We have checked ‘INSTALL.userspace.md’ , it's same as version 1.11.0, and on
the same device, version 1.11.0 is ok,
here are tun module information:
[DPTECH-Developer-Shell]mknod /dev/net/tun c 10 200
[DPTECH-Developer-Shell]ls /dev/net
tun
[DPTECH-Developer-Shell]ls /dev/net -l
total 0
crw-r--r-- 1 root root 10, 200 Jan 2 22:39 tun
[DPTECH-Developer-Shell]
Best regards,
Yugang
yugang
From: Chandran, Sugesh
Date: 2016-03-21 18:31
To: yugang; yugangdeai; discuss
Subject: RE: RE: [ovs-discuss] userspace openvswitch
Regards
_Sugesh
From: yugang [mailto:yug...@dptechnology.net]
Sent: Monday, March 21, 2016 9:40 AM
To: Chandran, Sugesh <sugesh.chand...@intel.com>; yugangdeai
<yugangd...@163.com>; discuss <discuss@openvswitch.org>
Subject: Re: RE: [ovs-discuss] userspace openvswitch
[DPTECH-Developer-Shell]ovs-vsctl --timeout 10 add-br brtest -- set bridge
brtes
t datapath_type=netdev
ovs-vsctl: Error detected while setting up 'brtest'. See ovs-vswitchd log for
details.
[DPTECH-Developer-Shell]
We can also ignore this error msg?
[Sugesh] No, You are not supposed to get this error. Have you looked at ovs
logs??Please have a look at ‘INSTALL.userspace.md’ for detailed guide on how to
set up OVS in userspace. You might need to load tun/tap kernel module for
creating the bridge.
yugang
From: Chandran, Sugesh
Date: 2016-03-21 17:03
To: yugang; yugangdeai; discuss
Subject: RE: Re: [ovs-discuss] userspace openvswitch
Specify the type of bridge as netdev for userspace bridge.
ovs-vsctl --timeout 10 add-br br0 -- set bridge br0 datapath_type=netdev
You can ignore the warning message “failed to enumerate ….” for now.
Verify if the bridge has been created successfully using ‘ovs-vsctl show’.
Regards
_Sugesh
From: yugang [mailto:yug...@dptechnology.net]
Sent: Monday, March 21, 2016 8:57 AM
To: Chandran, Sugesh <sugesh.chand...@intel.com>; yugangdeai
<yugangd...@163.com>; discuss <discuss@openvswitch.org>
Subject: Re: Re: [ovs-discuss] userspace openvswitch
if it does, why i can add bridge with tool ovs-vsctl on version 1.11.0, but
failed on the latest version,
[Sugesh] What error you are getting?
[DPTECH-Developer-Shell]ps aux|grep ovs
root 4289 0.4 0.2 5904 1976 ? Ss 04:13 0:41 ./ovs-vswitchd --pidfile --detach
--verbose
root 9744 0.0 0.0 2088 340 ttyS0 S+ 06:33 0:00 grep ovs
root 24785 0.0 0.1 3924 1460 ? Ss Jan01 0:19 ovsdb-server -v
--remote=punix:/usr/local/var/run/openvswitch/db.sock
--remote=db:Open_vSwitch,Open_vSwitch,manager_options
--private-key=db:Open_vSwitch,SSL,private_key
--certificate=db:Open_vSwitch,SSL,certificate
--bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --pidfile --detach --log-file
[DPTECH-Developer-Shell]
[DPTECH-Developer-Shell]ovs-vsctl add-br testbridge
ovs-vsctl: Error detected while setting up 'testbridge'. See ovs-vswitchd log
for details.
[DPTECH-Developer-Shell]
Here are more:
2009-01-01T20:13:36Z|00051|netlink_socket|DBG|nl_sock_recv__ (Success):
nl(len:36, type=2(error), flags=0, seq=1, pid=4289 error(-2(No such file or
directory), in-reply-to(nl(len:40, type=16(control), flags=1[REQUEST], seq=1,
pid=4289))
2009-01-01T20:13:36Z|00052|netlink_socket|DBG|received NAK error=0 (No such
file or directory)
2009-01-01T20:13:36Z|00053|dpif_netlink|ERR|Generic Netlink family
'ovs_datapath' does not exist. The Open vSwitch kernel module is probably not
loaded.
2009-01-01T20:13:36Z|00054|dpif|WARN|failed to enumerate system datapaths: No
such file or directory
2009-01-01T20:13:36Z|00055|dpif|WARN|failed to create datapath ovs-system: No
such file or directory
2009-01-01T20:13:36Z|00056|ofproto_dpif|ERR|failed to open datapath of type
system: No such file or directory
Best regards,
Yugang
yugang
From: Chandran, Sugesh
Date: 2016-03-21 16:42
To: shanghai; discuss@openvswitch.org
Subject: Re: [ovs-discuss] userspace openvswitch
Regards
_Sugesh
From: discuss [mailto:discuss-boun...@openvswitch.org] On Behalf Of shanghai
Sent: Sunday, March 20, 2016 8:26 AM
To: discuss@openvswitch.org
Subject: [ovs-discuss] userspace openvswitch
Dear there,
Thanks for your time, i want to know that whether the version 2.5.0
openvswitch can work in userspace totaly,
[Sugesh] 2.5.0 supports userspace datapath.
if it does, why i can add bridge with tool ovs-vsctl on version 1.11.0, but
failed on the latest version,
[Sugesh] What error you are getting?
which remind me to load the kernel module, how could i solve this problem. I am
really looking forward to hear from you.
[Sugesh] No need to load ovs kernel module for userspace datapath.
Best regards,
Yugang .
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss