#following command runs fine $ ./ovs-vsctl --verbose add-br br0 2013-06-12T20:17:23Z|00002|reconnect|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: entering BACKOFF 2013-06-12T20:17:23Z|00003|reconnect|INFO|unix:/data/local/tmp/run/openvswitch/db.sock: connecting... 2013-06-12T20:17:23Z|00004|reconnect|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: entering CONNECTING 2013-06-12T20:17:23Z|00005|poll_loop|DBG|wakeup due to [POLLOUT] on fd 3 (<->/data/local/tmp/run/openvswitch/db.sock) at lib/stream-fd.c:138 2013-06-12T20:17:23Z|00006|reconnect|INFO|unix:/data/local/tmp/run/openvswitch/db.sock: connected 2013-06-12T20:17:23Z|00007|reconnect|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: entering ACTIVE 2013-06-12T20:17:23Z|00008|jsonrpc|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: send request, method="monitor", params=["Open_vSwitch",null,{"Port":{"columns":["fake_bridge","interfaces","name","tag"]},"Interface":{"columns":["name"]},"Bridge":{"columns":["controller","fail_mode","name","ports"]},"Controller":{"columns":[]},"Open_vSwitch":{"columns":["bridges","cur_cfg"]}}], id=0 2013-06-12T20:17:23Z|00009|poll_loop|DBG|wakeup due to [POLLIN] on fd 3 (<->/data/local/tmp/run/openvswitch/db.sock) at lib/stream-fd.c:142 2013-06-12T20:17:23Z|00010|jsonrpc|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: received reply, result={"Open_vSwitch":{"aff90ca3-aabd-4bf9-84e5-a8b81e6e8a8e":{"new":{"bridges":["set",[]],"cur_cfg":0}}}}, id=0 2013-06-12T20:17:23Z|00011|jsonrpc|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: send request, method="transact", params=["Open_vSwitch",{"rows":[{"bridges":["set",[]]}],"columns":["bridges"],"table":"Open_vSwitch","until":"==","where":[["_uuid","==",["uuid","aff90ca3-aabd-4bf9-84e5-a8b81e6e8a8e"]]],"timeout":0,"op":"wait"},{"row":{"name":"br0","interfaces":["named-uuid","row8b9563cc_67f4_4e7c_9e8f_e2f41d9c9a79"]},"table":"Port","uuid-name":"rowbd50b2f8_d169_4df0_b08a_5c0a4d9f23a0","op":"insert"},{"row":{"name":"br0","type":"internal"},"table":"Interface","uuid-name":"row8b9563cc_67f4_4e7c_9e8f_e2f41d9c9a79","op":"insert"},{"row":{"name":"br0","ports":["named-uuid","rowbd50b2f8_d169_4df0_b08a_5c0a4d9f23a0"]},"table":"Bridge","uuid-name":"row7c71444f_aa62_486e_9283_56913df77289","op":"insert"},{"row":{"bridges":["named-uuid","row7c71444f_aa62_486e_9283_56913df77289"]},"table":"Open_vSwitch","where":[["_uuid","==",["uuid","aff90ca3-aabd-4bf9-84e5-a8b81e6e8a8e"]]],"op":"update"},{"mutations":[["next_cfg","+=",1]],"table":"Open_vSwitch","where":[["_uuid","==",["uuid","aff90ca3-aabd-4bf9-84e5-a8b81e6e8a8e"]]],"op":"mutate"},{"columns":["next_cfg"],"table":"Open_vSwitch","where":[["_uuid","==",["uuid","aff90ca3-aabd-4bf9-84e5-a8b81e6e8a8e"]]],"op":"select"},{"comment":"ovs-vsctl: ./ovs-vsctl --verbose add-br br0","op":"comment"}], id=1 2013-06-12T20:17:23Z|00012|jsonrpc|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: received notification, method="update", params=[null,{"Port":{"e00ea329-91a8-44ae-95a4-ab67e01cbfc4":{"new":{"name":"br0","fake_bridge":false,"interfaces":["uuid","7e2eef9a-5571-424f-bc5a-260bb32188f5"],"tag":["set",[]]}}},"Interface":{"7e2eef9a-5571-424f-bc5a-260bb32188f5":{"new":{"name":"br0"}}},"Bridge":{"ff84eda1-24b2-4568-988c-c9596c697dc6":{"new":{"fail_mode":["set",[]],"name":"br0","ports":["uuid","e00ea329-91a8-44ae-95a4-ab67e01cbfc4"],"controller":["set",[]]}}},"Open_vSwitch":{"aff90ca3-aabd-4bf9-84e5-a8b81e6e8a8e":{"old":{"bridges":["set",[]]},"new":{"bridges":["uuid","ff84eda1-24b2-4568-988c-c9596c697dc6"],"cur_cfg":0}}}}] 2013-06-12T20:17:23Z|00013|jsonrpc|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: received reply, result=[{},{"uuid":["uuid","e00ea329-91a8-44ae-95a4-ab67e01cbfc4"]},{"uuid":["uuid","7e2eef9a-5571-424f-bc5a-260bb32188f5"]},{"uuid":["uuid","ff84eda1-24b2-4568-988c-c9596c697dc6"]},{"count":1},{"count":1},{"rows":[{"next_cfg":1}]},{}], id=1 2013-06-12T20:17:23Z|00014|poll_loop|DBG|wakeup due to 0-ms timeout at lib/ovsdb-idl.c:1341 2013-06-12T20:17:23Z|00015|poll_loop|DBG|wakeup due to [POLLIN] on fd 3 (<->/data/local/tmp/run/openvswitch/db.sock) at lib/stream-fd.c:142 2013-06-12T20:17:23Z|00016|jsonrpc|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: received notification, method="update", params=[null,{"Open_vSwitch":{"aff90ca3-aabd-4bf9-84e5-a8b81e6e8a8e":{"old":{"cur_cfg":0},"new":{"bridges":["uuid","ff84eda1-24b2-4568-988c-c9596c697dc6"],"cur_cfg":1}}}}] #this command actually hang. following is the output of verbose. Then we ctl+z to stop $ ./ovs-vsctl --verbose add-port br0 wlan0 2013-06-12T20:20:32Z|00002|reconnect|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: entering BACKOFF 2013-06-12T20:20:32Z|00003|reconnect|INFO|unix:/data/local/tmp/run/openvswitch/db.sock: connecting... 2013-06-12T20:20:32Z|00004|reconnect|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: entering CONNECTING 2013-06-12T20:20:32Z|00005|poll_loop|DBG|wakeup due to [POLLOUT] on fd 3 (<->/data/local/tmp/run/openvswitch/db.sock) at lib/stream-fd.c:138 2013-06-12T20:20:32Z|00006|reconnect|INFO|unix:/data/local/tmp/run/openvswitch/db.sock: connected 2013-06-12T20:20:32Z|00007|reconnect|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: entering ACTIVE 2013-06-12T20:20:32Z|00008|jsonrpc|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: send request, method="monitor", params=["Open_vSwitch",null,{"Port":{"columns":["fake_bridge","interfaces","name","tag"]},"Interface":{"columns":["name"]},"Bridge":{"columns":["controller","fail_mode","name","ports"]},"Controller":{"columns":[]},"Open_vSwitch":{"columns":["bridges","cur_cfg"]}}], id=0 2013-06-12T20:20:32Z|00009|poll_loop|DBG|wakeup due to [POLLIN] on fd 3 (<->/data/local/tmp/run/openvswitch/db.sock) at lib/stream-fd.c:142 2013-06-12T20:20:32Z|00010|jsonrpc|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: received reply, result={"Port":{"e00ea329-91a8-44ae-95a4-ab67e01cbfc4":{"new":{"name":"br0","fake_bridge":false,"interfaces":["uuid","7e2eef9a-5571-424f-bc5a-260bb32188f5"],"tag":["set",[]]}}},"Interface":{"7e2eef9a-5571-424f-bc5a-260bb32188f5":{"new":{"name":"br0"}}},"Bridge":{"ff84eda1-24b2-4568-988c-c9596c697dc6":{"new":{"fail_mode":["set",[]],"name":"br0","ports":["uuid","e00ea329-91a8-44ae-95a4-ab67e01cbfc4"],"controller":["set",[]]}}},"Open_vSwitch":{"aff90ca3-aabd-4bf9-84e5-a8b81e6e8a8e":{"new":{"bridges":["uuid","ff84eda1-24b2-4568-988c-c9596c697dc6"],"cur_cfg":1}}}}, id=0 2013-06-12T20:20:32Z|00011|jsonrpc|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: send request, method="transact", params=["Open_vSwitch",{"rows":[{"interfaces":["uuid","7e2eef9a-5571-424f-bc5a-260bb32188f5"]}],"columns":["interfaces"],"table":"Port","until":"==","where":[["_uuid","==",["uuid","e00ea329-91a8-44ae-95a4-ab67e01cbfc4"]]],"timeout":0,"op":"wait"},{"rows":[{"ports":["uuid","e00ea329-91a8-44ae-95a4-ab67e01cbfc4"]}],"columns":["ports"],"table":"Bridge","until":"==","where":[["_uuid","==",["uuid","ff84eda1-24b2-4568-988c-c9596c697dc6"]]],"timeout":0,"op":"wait"},{"rows":[{"bridges":["uuid","ff84eda1-24b2-4568-988c-c9596c697dc6"]}],"columns":["bridges"],"table":"Open_vSwitch","until":"==","where":[["_uuid","==",["uuid","aff90ca3-aabd-4bf9-84e5-a8b81e6e8a8e"]]],"timeout":0,"op":"wait"},{"row":{"name":"wlan0"},"table":"Interface","uuid-name":"row91758479_2810_450f_afe7_96de5eb0fb11","op":"insert"},{"row":{"ports":["set",[["named-uuid","row91bea837_6984_44be_8d22_d5b5dca43224"],["uuid","e00ea329-91a8-44ae-95a4-ab67e01cbfc4"]]]},"table":"Bridge","where":[["_uuid","==",["uuid","ff84eda1-24b2-4568-988c-c9596c697dc6"]]],"op":"update"},{"row":{"name":"wlan0","interfaces":["named-uuid","row91758479_2810_450f_afe7_96de5eb0fb11"]},"table":"Port","uuid-name":"row91bea837_6984_44be_8d22_d5b5dca43224","op":"insert"},{"mutations":[["next_cfg","+=",1]],"table":"Open_vSwitch","where":[["_uuid","==",["uuid","aff90ca3-aabd-4bf9-84e5-a8b81e6e8a8e"]]],"op":"mutate"},{"columns":["next_cfg"],"table":"Open_vSwitch","where":[["_uuid","==",["uuid","aff90ca3-aabd-4bf9-84e5-a8b81e6e8a8e"]]],"op":"select"},{"comment":"ovs-vsctl: ./ovs-vsctl --verbose add-port br0 wlan0","op":"comment"}], id=1 2013-06-12T20:20:32Z|00012|jsonrpc|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: received notification, method="update", params=[null,{"Port":{"308a7c25-a7de-4bf7-b547-8a753ed22a59":{"new":{"name":"wlan0","fake_bridge":false,"interfaces":["uuid","d523bc7c-7486-4088-9cf0-f3f32e7c5404"],"tag":["set",[]]}}},"Bridge":{"ff84eda1-24b2-4568-988c-c9596c697dc6":{"old":{"ports":["uuid","e00ea329-91a8-44ae-95a4-ab67e01cbfc4"]},"new":{"fail_mode":["set",[]],"name":"br0","ports":["set",[["uuid","308a7c25-a7de-4bf7-b547-8a753ed22a59"],["uuid","e00ea329-91a8-44ae-95a4-ab67e01cbfc4"]]],"controller":["set",[]]}}},"Interface":{"d523bc7c-7486-4088-9cf0-f3f32e7c5404":{"new":{"name":"wlan0"}}}}] 2013-06-12T20:20:32Z|00013|jsonrpc|DBG|unix:/data/local/tmp/run/openvswitch/db.sock: received reply, result=[{},{},{},{"uuid":["uuid","d523bc7c-7486-4088-9cf0-f3f32e7c5404"]},{"count":1},{"uuid":["uuid","308a7c25-a7de-4bf7-b547-8a753ed22a59"]},{"count":1},{"rows":[{"next_cfg":2}]},{}], id=1 2013-06-12T20:20:32Z|00014|poll_loop|DBG|wakeup due to 0-ms timeout at lib/ovsdb-idl.c:1341 #this command actually hang. Then we ctl+z to stop $ ovs-vsctl add-port br0 vif1.0 #following command runs fine $ ./ovs-vsctl show aff90ca3-aabd-4bf9-84e5-a8b81e6e8a8e Bridge "br0" Port "vif1.0" Interface "vif1.0" Port "wlan0" Interface "wlan0" Port "br0" Interface "br0" type: internal #following command shows some error $ ./ovs-ofctl --verbose dump-flows br0 2013-06-12T20:31:23Z|00001|stream_unix|DBG|br0: connection failed (No such file or directory) 2013-06-12T20:31:23Z|00002|stream_unix|DBG|/data/local/tmp/run/openvswitch/br0.mgmt: connection failed (Connection refused) ovs-ofctl: /data/local/tmp/run/openvswitch/br0.mgmt: failed to open socket (Connection refused)