[ovs-discuss] client transaction failed; time out error; OVSDB still empty

Ben Pfaff blp at nicira.com
Tue Feb 17 23:02:21 UTC 2015


On Tue, Feb 17, 2015 at 10:51:48PM +0000, Liu, Weijie wrote:
> I tried to use the command bellow to send a transaction to the OVSDB:
> 
> 
> # sudo ovsdb-client -v transact tcp:127.0.0.1:6640 '["Open_vSwitch",{"rows":[{"bridges":["set",[]]}],"until":"==","where":[["_uuid","==",["uuid","7b733b72-17f7-41c7-9f0a-641686db2dcd"]]],"timeout":0,"op":"wait","table":"Open_vSwitch","columns":["bridges"]},{"uuid-name":"row095f7ccc_ccb9_4c1e_94e8_b304deb6986f","op":"insert","table":"Port","row":{"interfaces":["named-uuid","row3886989c_5708_4eac_bfcb_329b2d5da01c"],"name":"br0"}},{"uuid-name":"row3886989c_5708_4eac_bfcb_329b2d5da01c","op":"insert","table":"Interface","row":{"name":"br0","type":"internal"}},{"uuid-name":"rowcd9eb1b9_090f_4a0e_bd08_bc57ade47441","op":"insert","table":"Bridge","row":{"name":"br0","ports":["named-uuid","row095f7ccc_ccb9_4c1e_94e8_b304deb6986f"]}},{"where":[["_uuid","==",["uuid","7b733b72-17f7-41c7-9f0a-641686db2dcd"]]],"op":"update","table":"Open_vSwitch","row":{"bridges":["named-uuid","rowcd9eb1b9_090f_4a0e_bd08_bc57ade47441"]}},{"mutations":[["next_cfg","+=",1]],"where":[["_uuid","==",["uuid","7b733b72-17f7-41c7-9f0a-641686db2dcd"]]],"op":"mutate","table":"Open_vSwitch"},{"where":[["_uuid","==",["uuid","7b733b72-17f7-41c7-9f0a-641686db2dcd"]]],"op":"select","table":"Open_vSwitch","columns":["next_cfg"]},{"comment":"ovs-vsctl: ovs-vsctl --verbose add-br br0","op":"comment"}]'
> 
> 
> But it says:
> 
> 
> # 2015-02-17T22:49:20Z|00003|jsonrpc|DBG|tcp:127.0.0.1:6640: received reply, result=[{"error":"timed out","details":"\"wait\" timed out after 101 ms"},null,null,null,null,null,null,null], id=0
> 
> [{"details":"\"wait\" timed out after 101 ms","error":"timed out"},null,null,null,null,null,null,null]
> 
> Any thoughts? I tried deleting the 'wait' operation and there is no such 'time out' error; but the OVSDB is still empty. Thanks.

This transaction will only do something useful if the database has the
contents that it did when ovs-vsctl generated it, in particular if the
Open_vSwitch table's row has UUID 7b733b72-17f7-41c7-9f0a-641686db2dcd.



More information about the discuss mailing list