Discussion:
[ovs-discuss] Question
yue.yihua
2014-10-21 08:18:53 UTC
Permalink
Hi,
When i use ovs version-2.1.3,i can create bridge in userspace, but when i update to version-2.3.0,i can not create bridge, how can i resolve it?
Thsnk you!

There are my steps:
ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema
ovsdb-server /usr/local/etc/openvswitch/conf.db --remote=punix:/usr/local/var/run/openvswitch/db.sock --pidfile --detach --log-file
ovs-vsctl --no-wait init
ovs-vswitchd --pidfile --detach unix:/usr/local/var/run/openvswitch/db.sock --log-file --verbose

ovs-vsctl add-br s1 /* not ok, i must type 'Ctrl+C' to break it */
ovs-vsctl set bridge s1 datapath_type=netdev
ovs-vsctl add-port s1 virbr0
ovs-vsctl set-controller s1 tcp:192.168.8.150:6633


yue.yihua at embedway.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20141021/b7b683b6/attachment.html>
Ben Pfaff
2014-10-21 17:26:46 UTC
Permalink
Post by yue.yihua
When i use ovs version-2.1.3,i can create bridge in userspace, but when i update to version-2.3.0,i can not create bridge, how can i resolve it?
Thsnk you!
ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema
ovsdb-server /usr/local/etc/openvswitch/conf.db --remote=punix:/usr/local/var/run/openvswitch/db.sock --pidfile --detach --log-file
ovs-vsctl --no-wait init
ovs-vswitchd --pidfile --detach unix:/usr/local/var/run/openvswitch/db.sock --log-file --verbose
ovs-vsctl add-br s1 /* not ok, i must type 'Ctrl+C' to break it */
ovs-vsctl set bridge s1 datapath_type=netdev
ovs-vsctl add-port s1 virbr0
ovs-vsctl set-controller s1 tcp:192.168.8.150:6633
Usually, if "ovs-vsctl" hangs, it indicates that ovs-vswitchd is not
running. In this case, though, it probably means that the kernel
module is not loaded; that should *not* cause ovs-vsctl to hang (and
it does not on master; I did not check on 2.1.3), but it seems like
the most likely cause here.

Probably, you can work around the problem here by adding the bridge
and setting its datapath type at the same time:

ovs-vsctl add-br s1 -- set bridge s1 datapath_type=netdev
Ben Pfaff
2014-10-22 15:48:37 UTC
Permalink
Please don't drop the list.

What's in your ovs-vswitchd and ovsdb-server logs?
Hi, Ben,
When i add the bridge and set its datapath type at the same time, but it is still hang.
I use 'ps' command, ovs-dbserver and ovs-vswitchd are running.
I just want to use userspace function but not kernel module, how can i do then?
Thank you!
yue.yihua at embedway.com
From: Ben Pfaff
Date: 2014-10-22 01:26
To: yue.yihua at embedway.com
CC: bugs
Subject: Re: [ovs-discuss] Question
Post by yue.yihua
When i use ovs version-2.1.3,i can create bridge in userspace, but when i update to version-2.3.0,i can not create bridge, how can i resolve it?
Thsnk you!
ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema
ovsdb-server /usr/local/etc/openvswitch/conf.db --remote=punix:/usr/local/var/run/openvswitch/db.sock --pidfile --detach --log-file
ovs-vsctl --no-wait init
ovs-vswitchd --pidfile --detach unix:/usr/local/var/run/openvswitch/db.sock --log-file --verbose
ovs-vsctl add-br s1 /* not ok, i must type 'Ctrl+C' to break it */
ovs-vsctl set bridge s1 datapath_type=netdev
ovs-vsctl add-port s1 virbr0
ovs-vsctl set-controller s1 tcp:192.168.8.150:6633
Usually, if "ovs-vsctl" hangs, it indicates that ovs-vswitchd is not
running. In this case, though, it probably means that the kernel
module is not loaded; that should *not* cause ovs-vsctl to hang (and
it does not on master; I did not check on 2.1.3), but it seems like
the most likely cause here.
Probably, you can work around the problem here by adding the bridge
ovs-vsctl add-br s1 -- set bridge s1 datapath_type=netdev
Continue reading on narkive:
Loading...