[ovs-discuss] Stuck when add-br or del-br

HUNTER qin.hunter at qq.com
Fri Apr 28 03:04:53 UTC 2017


Do you mean dmesg or syslog?




------------------ Original ------------------
From:  "Ben Pfaff";<blp at ovn.org>;
Date:  Fri, Apr 28, 2017 11:00 AM
To:  "HUNTER"<qin.hunter at qq.com>; 
Cc:  "discuss"<discuss at openvswitch.org>; 
Subject:  Re: [ovs-discuss] Stuck when add-br or del-br



OVS died for some reason.  This is unusual.  We need to find out why.
Can you get a core file, or a backtrace?

On Fri, Apr 28, 2017 at 10:23:09AM +0800, HUNTER wrote:
> I apologized for dropping.
> 
> 
> I runned `sudo ovs-vswitchd --pidfile --detach`
> 2017-04-28T02:17:23Z|00001|ovs_numa|INFO|Discovered 4 CPU cores on NUMA node 0 2017-04-28T02:17:23Z|00002|ovs_numa|INFO|Discovered 1 NUMA nodes and 4 CPU cores 2017-04-28T02:17:23Z|00003|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock: connecting... 2017-04-28T02:17:23Z|00004|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock: connected 
> 
> 
> `ps -ef | grep ovs`.
> root     17018  1193  0 06:24 ?        00:00:00 ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock --remote=db:Open_vSwitch,Open_vSwitch,manager_options --pidfile --detach root     18591  1193  0 10:17 ?        00:00:00 ovs-vswitchd --pidfile --detach hunter   18593 17398  0 10:17 pts/18   00:00:00 grep --color=auto ovs 
> 
> 
> Then `sudo ovs-vsctl add-br br0`, and it stuck.
> root     17018  1193  0 06:25 ?        00:00:00 ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock --remote=db:Open_vSwitch,Open_vSwitch,manager_options --pidfile --detach root     18618  1984  0 10:20 pts/2    00:00:00 sudo ovs-vsctl add-br br0 root     18619 18618  0 10:20 pts/2    00:00:00 ovs-vsctl add-br br0 hunter   18624 17398  0 10:20 pts/18   00:00:00 grep --color=auto ovs 
> 
> 
> Is it normal?
> 
> 
> 
> 
> 
> 
> ------------------ Original ------------------
> From:  "Ben Pfaff";<blp at ovn.org>;
> Date:  Thu, Apr 27, 2017 11:51 PM
> To:  "HUNTER"<qin.hunter at qq.com>; 
> Cc:  "discuss"<discuss at openvswitch.org>; 
> Subject:  Re: [ovs-discuss] Stuck when add-br or del-br
> 
> 
> 
> Please don't drop the mailing list.
> 
> Is there a ovs-vswitchd process?  Does it show up in process listings?
> 
> On Thu, Apr 27, 2017 at 08:57:44PM +0800, HUNTER wrote:
> > Thanks for reply.
> > I don't know too much about ovs and I used to compile and install ovs like this:
> > 
> > sudo apt-get install -y git automake autoconf gcc uml-utilities libtool build-essential pkg-config linux-headers-`uname -r`
> > 
> > sudo apt-get -y install libnl-dev
> > 
> > sudo ./boot.sh
> > 
> > sudo ./configure --with-linux=/lib/modules/`uname -r`/build
> > 
> > sudo make
> > sudo make install
> > modinfo datapath/linux/openvswitch.ko
> > modprobe ... ... ...
> > 
> > sudo kill `cd /usr/local/var/run/openvswitch && cat ovsdb-server.pid ovs-vswitchd.pid
> > 
> > sudo rm -rf /usr/local/etc/openvswitch
> > 
> > sudo mkdir -p /usr/local/etc/openvswitch
> > 
> > sudo ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema
> > 
> > sudo ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock --remote=db:Open_vSwitch,Open_vSwitch,manager_options --pidfile --detach
> > 
> > sudo ovs-vsctl --no-wait init
> > sudo ovs-vswitchd --pidfile --detach
> > 
> > 
> > After these, I can add br, bla bla bla. And I'm sure it works well with ovs2.6.0 or mininet. But "add-br stuck" happend with ovs2.5.0 .
> > 
> > 
> > Anything I can do to check if ovs-vswitchd is running or crash?Plz tell me.Thanks again!
> > 
> > 
> > BW,
> > Hunter
> > 
> > 
> > ------------------ Original ------------------
> > From:  "Ben Pfaff";<blp at ovn.org>;
> > Date:  Wed, Apr 26, 2017 10:34 PM
> > To:  "HUNTER"<qin.hunter at qq.com>; 
> > Cc:  "ovs-discuss"<ovs-discuss at openvswitch.org>; 
> > Subject:  Re: [ovs-discuss] Stuck when add-br or del-br
> > 
> > 
> > 
> > On Wed, Apr 26, 2017 at 10:13:10PM +0800, HUNTER wrote:
> > > I have compiled OVS 2.5.0 on my VM, but when I `sudo ovs-vsctl add-br br0`, it got stuck.The `sudo ovs-vsctl show` shows that the bridge is added. The similar result is with `del-br`.I can `ctrl C`to stop them but I couldn't start my mininet in this way.
> > 
> > Are you sure ovs-vswitchd is running?  And if was running, did it crash?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20170428/f7d41fb6/attachment.html>


More information about the discuss mailing list