Hello,* * I am running OVS in userspace mode and I am using the following script to start it:*
* ovsdb-tool create /usr/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema ovsdb-server /usr/etc/openvswitch/conf.db --remote=punix:/usr/var/run/openvswitch/db.sock \ --remote=db:Open_vSwitch,manager_options --pidfile --detach ovs-vsctl --no-wait init sleep 5 ovs-vswitchd unix:/usr/var/run/openvswitch/db.sock --pidfile --log-file --detach* * * * This script successfully starts OVS and the program is detached from the shell. However, as soon as I add a bridge using *"ovs-vsctl add-br br0 -- set bridge br0 datapath_type=netdev"* , the main daemon (ovs-vscwitchd) exits. The log file shows this: 2000-01-18T04:10:02Z|00009|poll_loop|DBG|wakeup due to 100-ms timeout at vswitchd/bridge.c:2166 2000-01-18T04:10:09Z|00010|poll_loop|DBG|wakeup due to [POLLIN] on fd 15 (<->/usr/var/run/openvswitch/db.sock) at lib/stream-fd.c:142 (0% CPU usage) 2000-01-18T04:10:09Z|00011|jsonrpc|DBG|unix:/usr/var/run/openvswitch/db.sock: received notification, method="update", params=[null,{"Port":{"b228515c-6df5-44d5-9eec-648cd11fbc00":{"new":{"name":"br0","bond_updelay":0,"bond_mode":["set",[]],"statistics":["map",[]],"vlan_mode":["set",[]],"qos":["set",[]],"other_config":["map",[]],"bond_fake_iface":false,"tag":["set",[]],"status":["map",[]],"mac":["set",[]],"trunks":["set",[]],"interfaces":["uuid","07b4875e-88d7-47cd-b6ec-0b97150ff16d"],"lacp":["set",[]],"bond_downdelay":0}}},"Bridge":{"953c8cb2-8dcd-4f58-bf6f-85c660d61737":{"new":{"name":"br0","fail_mode":["set",[]],"protocols":["set",[]],"ports":["uuid","b228515c-6df5-44d5-9eec-648cd11fbc00"],"flood_vlans":["set",[]],"netflow":["set",[]],"mirrors":["set",[]],"flow_tables":["map",[]],"sflow":["set",[]],"other_config":["map",[]],"datapath_type":"netdev","datapath_id":["set",[]],"status":["map",[]],"controller":["set",[]],"stp_enable":false}}},"Interface":{"07b4875e-88d7-47cd-b6ec-0b97150ff16d":{"new":{"name":"br0","options":["map",[]],"statistics":["map",[]],"link_speed":["set",[]],"mtu":["set",[]],"mac_in_use":["set",[]],"type":"internal","ingress_policing_rate":0,"cfm_remote_opstate":["set",[]],"status":["map",[]],"mac":["set",[]],"ofport":["set",[]],"cfm_fault_status":["set",[]],"cfm_fault":["set",[]],"lacp_current":["set",[]],"duplex":["set",[]],"other_config":["map",[]],"admin_state":["set",[]],"link_state":["set",[]],"cfm_remote_mpids":["set",[]],"cfm_mpid":["set",[]],"ofport_request":["set",[]],"ingress_policing_burst":0,"cfm_health":["set",[]],"link_resets":["set",[]]}}},"Open_vSwitch":{"98bcedfd-b378-4b0f-b968-52dee6e1cea8":{"old":{"bridges":["set",[]],"next_cfg":0},"new":{"statistics":["map",[]],"manager_options":["set",[]],"bridges":["uuid","953c8cb2-8dcd-4f58-bf6f-85c660d61737"],"other_config":["map",[]],"ssl":["set",[]],"next_cfg":1,"cur_cfg":0}}}}] 2000-01-18T04:10:13Z|00003|worker(worker)|INFO|worker process exiting I also tried adding bridge first and then setting the type as netdev separately: * * ovs-vsctl add-br br0 ovs-vsctl set bridge br0 datapath_type=netdev* * Here again vswitchd exits and the following log is created. * * 2000-01-18T04:13:57Z|00009|jsonrpc|DBG|unix:/usr/var/run/openvswitch/db.sock: received notification, method="update", params=[null,{"Port":{"73baa5b6-8d0b-49fe-b3a3-684b5b67af36":{"new":{"name":"br0","bond_updelay":0,"bond_mode":["set",[]],"statistics":["map",[]],"vlan_mode":["set",[]],"qos":["set",[]],"other_config":["map",[]],"bond_fake_iface":false,"tag":["set",[]],"status":["map",[]],"mac":["set",[]],"trunks":["set",[]],"interfaces":["uuid","47cfdaf8-a8f0-454c-9fdc-d347905bdd1d"],"lacp":["set",[]],"bond_downdelay":0}}},"Interface":{"47cfdaf8-a8f0-454c-9fdc-d347905bdd1d":{"new":{"name":"br0","options":["map",[]],"statistics":["map",[]],"link_speed":["set",[]],"mtu":["set",[]],"mac_in_use":["set",[]],"type":"internal","ingress_policing_rate":0,"cfm_remote_opstate":["set",[]],"status":["map",[]],"mac":["set",[]],"ofport":["set",[]],"cfm_fault_status":["set",[]],"cfm_fault":["set",[]],"lacp_current":["set",[]],"duplex":["set",[]],"other_config":["map",[]],"admin_state":["set",[]],"link_state":["set",[]],"cfm_remote_mpids":["set",[]],"cfm_mpid":["set",[]],"ofport_request":["set",[]],"ingress_policing_burst":0,"cfm_health":["set",[]],"link_resets":["set",[]]}}},"Bridge":{"dba61a54-db77-4b1c-b22f-a99e71871179":{"new":{"name":"br0","fail_mode":["set",[]],"protocols":["set",[]],"ports":["uuid","73baa5b6-8d0b-49fe-b3a3-684b5b67af36"],"flood_vlans":["set",[]],"netflow":["set",[]],"mirrors":["set",[]],"flow_tables":["map",[]],"sflow":["set",[]],"other_config":["map",[]],"datapath_type":"","datapath_id":["set",[]],"status":["map",[]],"controller":["set",[]],"stp_enable":false}}},"Open_vSwitch":{"899ced14-d4b6-4910-ad2e-8fe4ab425f9d":{"old":{"bridges":["set",[]],"next_cfg":0},"new":{"statistics":["map",[]],"manager_options":["set",[]],"bridges":["uuid","dba61a54-db77-4b1c-b22f-a99e71871179"],"other_config":["map",[]],"ssl":["set",[]],"next_cfg":1,"cur_cfg":0}}}}] 2000-01-18T04:13:57Z|00010|ofproto|WARN|unknown datapath type system 2000-01-18T04:13:57Z|00011|ofproto|WARN|unknown datapath type system 2000-01-18T04:13:57Z|00012|ofproto|WARN|could not create datapath br0 of unknown type system 2000-01-18T04:13:57Z|00013|bridge|ERR|failed to create bridge br0: Address family not supported by protocol 2000-01-18T04:13:57Z|00014|jsonrpc|DBG|unix:/usr/var/run/openvswitch/db.sock: send request, method="transact", params=["Open_vSwitch",{"lock":"ovs_vswitchd","op":"assert"},{"row":{"cur_cfg":1},"table":"Open_vSwitch","where":[["_uuid","==",["uuid","899ced14-d4b6-4910-ad2e-8fe4ab425f9d"]]],"op":"update"}], id=2 2000-01-18T04:13:57Z|00015|poll_loop|DBG|wakeup due to [POLLIN] on fd 15 (<->/usr/var/run/openvswitch/db.sock) at lib/stream-fd.c:142 2000-01-18T04:13:57Z|00016|jsonrpc|DBG|unix:/usr/var/run/openvswitch/db.sock: received notification, method="update", params=[null,{"Open_vSwitch":{"899ced14-d4b6-4910-ad2e-8fe4ab425f9d":{"old":{"cur_cfg":0},"new":{"statistics":["map",[]],"manager_options":["set",[]],"bridges":["uuid","dba61a54-db77-4b1c-b22f-a99e71871179"],"other_config":["map",[]],"ssl":["set",[]],"next_cfg":1,"cur_cfg":1}}}}] 2000-01-18T04:13:57Z|00017|jsonrpc|DBG|unix:/usr/var/run/openvswitch/db.sock: received reply, result=[{},{"count":1}], id=2 2000-01-18T04:13:57Z|00018|ovsdb_idl|DBG|unix:/usr/var/run/openvswitch/db.sock: received unexpected reply message 2000-01-18T04:13:57Z|00019|poll_loop|DBG|wakeup due to 99-ms timeout at vswitchd/bridge.c:2166 2000-01-18T04:14:10Z|00020|poll_loop|DBG|wakeup due to [POLLIN] on fd 15 (<->/usr/var/run/openvswitch/db.sock) at lib/stream-fd.c:142 (0% CPU usage) 2000-01-18T04:14:10Z|00021|memory|INFO|3772 kB peak resident set size after 21.0 seconds 2000-01-18T04:14:10Z|00022|memory|INFO| 2000-01-18T04:14:10Z|00023|jsonrpc|DBG|unix:/usr/var/run/openvswitch/db.sock: received notification, method="update", params=[null,{"Bridge":{"dba61a54-db77-4b1c-b22f-a99e71871179":{"old":{"datapath_type":""},"new":{"name":"br0","fail_mode":["set",[]],"protocols":["set",[]],"ports":["uuid","73baa5b6-8d0b-49fe-b3a3-684b5b67af36"],"flood_vlans":["set",[]],"netflow":["set",[]],"mirrors":["set",[]],"flow_tables":["map",[]],"sflow":["set",[]],"other_config":["map",[]],"datapath_type":"netdev","datapath_id":["set",[]],"status":["map",[]],"controller":["set",[]],"stp_enable":false}}},"Open_vSwitch":{"899ced14-d4b6-4910-ad2e-8fe4ab425f9d":{"old":{"next_cfg":1},"new":{"statistics":["map",[]],"manager_options":["set",[]],"bridges":["uuid","dba61a54-db77-4b1c-b22f-a99e71871179"],"other_config":["map",[]],"ssl":["set",[]],"next_cfg":2,"cur_cfg":1}}}}] 2000-01-18T04:14:14Z|00003|worker(worker)|INFO|worker process exiting I cannot make any sense out of this log. Any help in this regard is greatly appreciated. Thanks, -- *Junaid Zulfiqar*
_______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev