[ovs-discuss] [ovsdb] OVS DB connection refused by using ovsdb-client
Justin Pettit
jpettit at ovn.org
Thu Nov 17 22:51:13 UTC 2016
> On Nov 16, 2016, at 11:35 PM, zhi <changzhi1990 at gmail.com> wrote:
>
> Hi, all.
>
> I install the OVS 2.6.0 by following the document[1]. Everything goes okay but I meet a problem when I am using " ovsdb-client ".
>
> I try to use " ovsdb-client dump " command to get information from OVS DB and output is okay.
>
> I meet an exception when I try to use " ovsdb-client dump tcp:127.0.0.1:6640 ". Result shows below:
>
> root at devstack:~/openvswitch-2.6.0# ovsdb-client dump tcp:127.0.0.1:6640
> ovsdb-client: failed to connect to "tcp:127.0.0.1:6640" (Connection refused)
>
> I think that OVS DB doesn't listen port 6640.
>
> How do I ensure if OVS DB listen port 6640?
>
> If OVS DB doesn't listen port 6640, what should I do?
Those instructions don't look they tell ovsdb-server to listen to a TCP socket. It looks like it's setting up a unix domain socket to "/usr/local/var/run/openvswitch/db.sock". Depending on how you built ovsdb-client, the default path it uses may just work. If it doesn't, you'll likely need to tell it by adding "unix:/usr/local/var/run/openvswitch/db.sock" to the command.
--Justin
More information about the discuss
mailing list