[ovs-dev] jsonrpc / python ?

Tobias Guth - ECOS Technology tobias.guth at ecos.de
Fri Aug 31 21:27:43 UTC 2012


Hi,
well i got a problem with openvswitch initializing the db for the first
time.
ovs is the latest (1.8.9x) from the git repo, build on a 32bit gentoo
machine. When doing ovs-vsctl -v init I get ->

2012-08-31T21:24:48Z|00002|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
entering BACKOFF
2012-08-31T21:24:48Z|00003|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
connecting...
2012-08-31T21:24:48Z|00004|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
entering CONNECTING
2012-08-31T21:24:48Z|00005|poll_loop|DBG|wakeup due to [POLLOUT] on fd 4
(<->/usr/local/var/run/openvswitch/db.sock) at lib/stream-fd.c:139
2012-08-31T21:24:48Z|00006|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
connected
2012-08-31T21:24:48Z|00007|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
entering ACTIVE
2012-08-31T21:24:48Z|00008|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
send request, method="monitor",
params=["Open_vSwitch",null,{"Open_vSwitch":{"columns":["cur_cfg"]}}], id=0
2012-08-31T21:24:48Z|00009|poll_loop|DBG|wakeup due to [POLLIN] on fd 4
(<->/usr/local/var/run/openvswitch/db.sock) at lib/stream-fd.c:143
2012-08-31T21:24:48Z|00010|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
received error, error="\"monitor\" is not a valid command\n", id=0
2012-08-31T21:24:48Z|00011|ovsdb_idl|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
received unexpected error message

Same thing when doing something like ovsdb-client -v list-dbs
->
2012-08-31T21:20:12Z|00001|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
send request, method="list_dbs", params=[], id=0
2012-08-31T21:20:12Z|00002|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
received error, error="\"list_dbs\" is not a valid command\n", id=0
ovsdb-client: transaction returned error: "\"list_dbs\" is not a valid
command\n"


I was thinking about problems with the jasonrpc calls and python ?
Well I tried the same thing building ovs on a fedora machine.

I do not know what the problem ist, and definetly have no clue :-(
Any suggestions ?

Regards
Tobi



More information about the dev mailing list