I had the same issue.

First make sure your ovsdb server is running

mininet@mininet-vm:~$ sudo ps -ef | grep open
root       927   926  0 Jul29 ?        00:02:39 ovsdb-server 
/var/lib/openvswitch/conf.db -vANY:CONSOLE:EMER -vANY:SYSLOG:ERR 
-vANY:FILE:INFO --remote=punix:/var/run/openvswitch/db.sock 
--remote=db:Open_vSwitch,manager_options --private-key=db:SSL,private_key 
--certificate=db:SSL,certificate --bootstrap-ca-cert=db:SSL,ca_cert --no-chdir 
--log-file=/var/log/openvswitch/ovsdb-server.log 
--pidfile=/var/run/openvswitch/ovsdb-server.pid --detach -monitor

generally the db.sock file is in /var/run /openvswitch if it is then for 
running ovsctl you need to use

ovs-vsctl  --db=unix:/var/run/openvswitch/db.sock


Hope it helps

From: [email protected] [mailto:[email protected]] 
On Behalf Of Dmita Levy
Sent: Tuesday, August 06, 2013 3:15 PM
To: Bob Lantz
Cc: [email protected]
Subject: Re: [ovs-discuss] Running OVS in Mininet

How do I get the database server to run and listen to that socket? I've 
installed it on other hosts but it only seems to give me trouble in mininet...
On Wed, Jul 31, 2013 at 10:03 PM, Bob Lantz 
<[email protected]<mailto:[email protected]>> wrote:
Following up on what Ben said, you should make sure that you're not using two 
versions of OVS, one installed manually in /usr/local and another one installed 
via your OS's package system, and you should make sure that OVS is working, e.g.

sudo service openvswitch-switch restart


On Jul 31, 2013, at 10:24 AM, Ben Pfaff 
<[email protected]<mailto:[email protected]>> wrote:

> On Wed, Jul 31, 2013 at 01:12:02PM -0400, Dmita Levy wrote:
>> I am trying to run the ovs-vsctl show command on a switch in mininet but I
>> get the error message below. I've done some searches but could not find a
>> definitive answer as to how to fix this. Does this mean the database is not
>> created and I have to create it or does OVS run with limited capabilities
>> in mininet?
>>
>> Jul 31 10:02:17|00001|stream_unix|ERR|/tmp/stream-unix.1846.0: connection
>> to /usr/local/var/run/openvswitch/db.sock failed: No such file or directory
>
> The database server isn't running or isn't listening to that socket.
> _______________________________________________
> discuss mailing list
> [email protected]<mailto:[email protected]>
> http://openvswitch.org/mailman/listinfo/discuss

_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to