[ovs-discuss] Creatinhg bridge by adding to the OVSDB

John Chludzinski john.chludzinski at vivaldi.net
Mon Jul 11 21:39:42 UTC 2016


Sorry about that BUT I introduced that typo to deliberately test an 
hypothese.

BUT even when the typo is fixed/removed, the problem remains: no new 
entry in the Bridge table.

root at localhost ~# ovsdb-client -v transact '["Open_vSwitch", 
{"op":"insert", "table": "Bridge", "row": { "name": "b3" } } ]'

2016-07-11T16:30:12Z|00001|jsonrpc|DBG|unix:/var/run/openvswitch/db.sock: 
send request, method="transact", 
params=["Open_vSwitch",{"row":{"name":"b3"},"op":"insert","table":"Bridge"}], 
id=0
2016-07-11T16:30:12Z|00002|poll_loop|DBG|wakeup due to 0-ms timeout
2016-07-11T16:30:12Z|00003|poll_loop|DBG|wakeup due to [POLLIN] on fd 3 
(<->/var/run/openvswitch/db.sock) at lib/stream-fd.c:155
2016-07-11T16:30:12Z|00004|jsonrpc|DBG|unix:/var/run/openvswitch/db.sock: 
received reply, 
result=[{"uuid":["uuid","080e7540-49f1-4c11-8628-6746591820f6"]}], id=0
[{"uuid":["uuid","080e7540-49f1-4c11-8628-6746591820f6"]}]

root at localhost ~# ovsdb-client dump Open_vSwitch Bridge

Bridge table
_uuid auto_attach controller datapath_id datapath_type datapath_version 
external_ids fail_mode flood_vlans flow_tables ipfix 
mcast_snooping_enable mirrors name netflow other_config ports protocols 
rstp_enable rstp_status sflow status stp_enable
----- ----------- ---------- ----------- ------------- ---------------- 
------------ --------- ----------- ----------- ----- 
--------------------- ------- ---- ------- ------------ ----- --------- 
----------- ----------- ----- ------ ----------



>> I submitted the following command to add/insert a record/row to the
>> Bridge table in the Open_vSwitc database.
>> 
>> ~# ovsdb-client -v transact '["Open_vSwitc", {"op":"insert",
>> "table": "Bridge", "row": { "name": "b3" } } ]'
> 
> You have a typo in the database name - it is Open_vSwitch, not
> Open_vSwitc.
> 
> This is actually in the log, although somewhat obscured in the rest of
> the noise:
> 
>> 
> 2016-07-11T15:04:44Z|00004|jsonrpc|DBG|unix:/var/run/openvswitch/db.sock:
>> received error,
>> 
> error={"syntax":"[\"Open_vSwitc\",{\"op\":\"insert\",\"row\":{\"name\":\"b3\"},\"table\":\"Bridge\"}]","details":"transact
>> request specifies unknown database Open_vSwitc","error":"unknown
>> database"}, id=0
>> ovsdb-client: transaction returned error: {"details":"transact
>> request specifies unknown database Open_vSwitc","error":"unknown
>> 
> database","syntax":"[\"Open_vSwitc\",{\"op\":\"insert\",\"row\":{\"name\":\"b3\"},\"table\":\"Bridge\"}]"}
> 
> --
> Nick



More information about the discuss mailing list