Thanks Mark and Ben for looking into this.

Attached please find the script I use to set up the OVS-DPDK. If both DPDK
and OVS are re-built, it works fine. However, if DPDK and OVS are not
rebuilt, then it will cause the problem.

The OS is Fedora Server 23 with updated kernel (4.5.7-200.fc23.x86_64)

Charlie

On Tue, Jul 5, 2016 at 5:37 AM, Kavanagh, Mark B <mark.b.kavan...@intel.com>
wrote:

>
> >
> >The logs show that ovs-vswitchd failing to log anything after it
> >receives the initial configuration from the database.  This is probably
> >a bug in the DPDK portion of OVS.  OVS-DPDK folks, have you noticed
> >anything like this before?  Can you take over the investigation?
> >
>
> I can take this Ben - I've conducted some preliminary testing and have not
> been able to reproduce the issue.
>
> Charlie - can you provide the exact steps that you perform to trigger this
> issue?
> Also, could you also provide details of your OS, kernel, etc.?
>
> Thanks,
> Mark
>
> >Thanks,
> >
> >Ben.
> >
> >On Sat, Jul 02, 2016 at 10:30:34AM -0500, Charlie Li wrote:
> >> Please see the attached logs from ovs-vswitchd.
> >>
> >> On Sat, Jul 2, 2016 at 10:01 AM, Ben Pfaff <b...@ovn.org> wrote:
> >>
> >> > Thanks.
> >> >
> >> > The logs show ovs-vsctl is sending the configuration change to the
> >> > database, but ovs-vswitchd never acknowledges that the configuration
> >> > change has been completed.
> >> >
> >> > What's in the ovs-vswitchd log?
> >> >
> >> > On Sat, Jul 02, 2016 at 09:24:16AM -0500, Charlie Li wrote:
> >> > > Please see the attached logs (with "-v" option).
> >> > >
> >> > > On Fri, Jul 1, 2016 at 7:06 PM, Ben Pfaff <b...@ovn.org> wrote:
> >> > >
> >> > > > OK, in that case, can you run the command in circumstances such
> that it
> >> > > > hangs, but adding the "-v" option?  That will cause it to print a
> log
> >> > of
> >> > > > debugging messages to stdout.  Give it a couple of seconds, then
> hit
> >> > > > control+C and email all of the output that it printed.
> >> > > >
> >> > > > Thanks,
> >> > > >
> >> > > > Ben.
> >> > > >
> >> > > > On Fri, Jul 01, 2016 at 06:35:26PM -0500, Charlie Li wrote:
> >> > > > > ovs-vsctl: cannot create a bridge named br0 because a bridge
> named
> >> > br0
> >> > > > > already exists
> >> > > > >
> >> > > > >
> >> > > > > On Fri, Jul 1, 2016 at 5:22 PM, Ben Pfaff <b...@ovn.org> wrote:
> >> > > > >
> >> > > > > > If you hit control+C and run the ovs-vsctl command again, what
> >> > happens?
> >> > > > > >
> >> > > > > > On Fri, Jul 01, 2016 at 05:06:27PM -0500, Charlie Li wrote:
> >> > > > > > > I don't think so - "ps -ef" shows the following processes
> >> > > > > > >
> >> > > > > > > root      1458     1  0 16:17 ?        00:00:00
> ./ovsdb-server
> >> > > > > > > --remote=punix:/usr/local/var/run/openvswitch/db.sock
> >> > > > > > --remote=db:Open_vSw
> >> > > > > > > root      1464     1  0 16:18 ?        00:00:09
> ./ovs-vswitchd
> >> > > > --dpdk -c
> >> > > > > > > 0x1 -n 4 -- unix:/usr/local/var/run/openvswitch/db.sock
> --pidfil
> >> > > > > > > root      1468  1332  0 16:19 pts/0    00:00:00 sudo
> ./ovs-vsctl
> >> > > > add-br
> >> > > > > > br0
> >> > > > > > > -- set bridge br0 datapath_type=netdev
> >> > > > > > > root      1469  1468  0 16:19 pts/0    00:00:00 ./ovs-vsctl
> >> > add-br
> >> > > > br0 --
> >> > > > > > > set bridge br0 datapath_type=netdev
> >> > > > > > >
> >> > > > > > >
> >> > > > > > > On Fri, Jul 1, 2016 at 4:38 PM, Ben Pfaff <b...@ovn.org>
> wrote:
> >> > > > > > >
> >> > > > > > > > Does ovs-vswitchd die when you run that?
> >> > > > > > > >
> >> > > > > > > > On Fri, Jul 01, 2016 at 04:24:15PM -0500, Charlie Li
> wrote:
> >> > > > > > > > > If I don't re-build DPDK and OVS, the following command
> will
> >> > hang
> >> > > > > > > > >
> >> > > > > > > > > sudo ./ovs-vsctl add-br br0 -- set bridge br0
> >> > > > datapath_type=netdev
> >> > > > > > > > >
> >> > > > > > > > > Looks like Bala reported the same issue (not sure if it
> is
> >> > > > caused by
> >> > > > > > the
> >> > > > > > > > > same reason - not re-building OVS/DPDK)
> >> > > > > > > > >
> >> > > > > > > > > On Fri, Jul 1, 2016 at 3:21 PM, Ben Pfaff <b...@ovn.org>
> >> > wrote:
> >> > > > > > > > >
> >> > > > > > > > > > On Fri, Jul 01, 2016 at 01:57:38PM -0500, Charlie Li
> wrote:
> >> > > > > > > > > > > By now I am successful in running openvswitch-2.5.0
> with
> >> > > > > > DPDK-2.2.0
> >> > > > > > > > by
> >> > > > > > > > > > > following "INSTALL.DPDK.md <http://install.dpdk.md/
> >".
> >> > > > > > > > > > >
> >> > > > > > > > > > > I understand that I have to build DPDK and OVS for
> the
> >> > very
> >> > > > first
> >> > > > > > > > time.
> >> > > > > > > > > > >
> >> > > > > > > > > > > # Build DPDK
> >> > > > > > > > > > > cd $DPDK_DIR
> >> > > > > > > > > > > make install T=x86_64-native-linuxapp-gcc
> >> > > > > > > > > > >
> >> > > > > > > > > > > # Configure & build OVS
> >> > > > > > > > > > > cd $OVS_DIR
> >> > > > > > > > > > > ./boot.sh
> >> > > > > > > > > > > ./configure --with-dpdk=$DPDK_BUILD/
> >> > > > > > > > > > > make CFLAGS='-O3 -march=native'
> >> > > > > > > > > > >
> >> > > > > > > > > > > But why do I have to build DPDK and OVS every time
> to run
> >> > > > > > OVS-DPDK?
> >> > > > > > > > > >
> >> > > > > > > > > > You don't.  This doesn't make any sense.
> >> > > > > > > > > >
> >> > > > > > > > > > If you don't re-build OVS after you reboot, what
> happens?
> >> > > > > > > > > >
> >> > > > > > > >
> >> > > > > >
> >> > > >
> >> >
> >> > > $ sudo ./ovs-vsctl -v add-br br0 -- set bridge br0
> datapath_type=netdev
> >> > >
> >> >
> 2016-07-02T14:18:06Z|00002|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >> > entering BACKOFF
> >> > > 2016-07-02T14:18:06Z|00003|hmap|DBG|lib/shash.c:112: 6 nodes in
> bucket
> >> > (32 nodes, 16 buckets)
> >> > >
> >> >
> 2016-07-02T14:18:06Z|00004|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
> >> > connecting...
> >> > >
> >> >
> 2016-07-02T14:18:06Z|00005|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >> > entering CONNECTING
> >> > > 2016-07-02T14:18:06Z|00006|poll_loop|DBG|wakeup due to [POLLOUT] on
> fd 4
> >> > (<->/usr/local/var/run/openvswitch/db.sock) at lib/stream-fd.c:151
> >> > >
> >> >
> 2016-07-02T14:18:06Z|00007|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
> >> > connected
> >> > >
> >> >
> 2016-07-02T14:18:06Z|00008|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >> > entering ACTIVE
> >> > >
> >> >
> 2016-07-02T14:18:06Z|00009|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >> > send request, method="get_schema", params=["Open_vSwitch"], id=0
> >> > > 2016-07-02T14:18:06Z|00010|poll_loop|DBG|wakeup due to [POLLIN] on
> fd 4
> >> > (<->/usr/local/var/run/openvswitch/db.sock) at lib/stream-fd.c:155
> >> > > 2016-07-02T14:18:06Z|00011|hmap|DBG|lib/shash.c:112: 6 nodes in
> bucket
> >> > (8 nodes, 4 buckets)
> >> > > 2016-07-02T14:18:06Z|00012|hmap|DBG|lib/shash.c:112: 6 nodes in
> bucket
> >> > (32 nodes, 16 buckets)
> >> > >
> >> >
> 2016-07-02T14:18:06Z|00013|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >> > received reply, result={"name":"Open_vSwitch","tables":{"QoS":{"isR
> >> >
> >> >
>
> >oot":true,"columns":{"external_ids":{"type":{"max":"unlimited","value":"string","key":"string
> >","min":0}},"type":{"type":"string"},"queues":{"type":{"ma
> >> >
> >> >
>
> >x":"unlimited","value":{"type":"uuid","refTable":"Queue"},"key":{"minInteger":0,"maxInteger":
> >4294967295,"type":"integer"},"min":0}},"other_config":{"ty
> >> >
> >> >
>
> >pe":{"max":"unlimited","value":"string","key":"string","min":0}}}},"Queue":{"isRoot":true,"co
> >lumns":{"external_ids":{"type":{"max":"unlimited","value":
> >> >
> >> >
>
> >"string","key":"string","min":0}},"dscp":{"type":{"key":{"minInteger":0,"maxInteger":63,"type
> >":"integer"},"min":0}},"other_config":{"type":{"max":"unli
> >> >
> >> >
>
> >mited","value":"string","key":"string","min":0}}}},"Open_vSwitch":{"maxRows":1,"isRoot":true,
> >"columns":{"datapath_types":{"type":{"max":"unlimited","mi
> >> >
> >> >
>
> >n":0,"key":"string"}},"statistics":{"type":{"max":"unlimited","value":"string","key":"string"
> >,"min":0},"ephemeral":true},"external_ids":{"type":{"max":
> >> >
> >> >
>
> >"unlimited","value":"string","key":"string","min":0}},"cur_cfg":{"type":"integer"},"db_versio
> >n":{"type":{"key":"string","min":0}},"other_config":{"type
> >> >
> >> >
>
> >":{"max":"unlimited","value":"string","key":"string","min":0}},"next_cfg":{"type":"integer"},
> >"system_type":{"type":{"key":"string","min":0}},"system_ve
> >> >
> >> >
>
> >rsion":{"type":{"key":"string","min":0}},"ovs_version":{"type":{"key":"string","min":0}},"bri
> >dges":{"type":{"max":"unlimited","min":0,"key":{"type":"uu
> >> >
> >> >
>
> >id","refTable":"Bridge"}}},"ssl":{"type":{"key":{"type":"uuid","refTable":"SSL"},"min":0}},"m
> >anager_options":{"type":{"max":"unlimited","min":0,"key":{
> >> >
> >> >
>
> >"type":"uuid","refTable":"Manager"}}},"iface_types":{"type":{"max":"unlimited","min":0,"key":
> >"string"}}}},"Flow_Sample_Collector_Set":{"isRoot":true,"c
> >> >
> >> >
>
> >olumns":{"external_ids":{"type":{"max":"unlimited","value":"string","key":"string","min":0}},
> >"bridge":{"type":{"key":{"type":"uuid","refTable":"Bridge"
> >> >
> >> >
>
> >}}},"ipfix":{"type":{"key":{"type":"uuid","refTable":"IPFIX"},"min":0}},"id":{"type":{"key":{
> >"minInteger":0,"maxInteger":4294967295,"type":"integer"}}}
> >> >
> >> >
>
> >},"indexes":[["id","bridge"]]},"Bridge":{"columns":{"rstp_status":{"type":{"max":"unlimited",
> >"value":"string","key":"string","min":0},"ephemeral":true}
> >> >
> >> >
>
> >,"datapath_version":{"type":"string"},"flow_tables":{"type":{"max":"unlimited","value":{"type
> >":"uuid","refTable":"Flow_Table"},"key":{"minInteger":0,"m
> >> >
> >> >
>
> >axInteger":254,"type":"integer"},"min":0}},"protocols":{"type":{"max":"unlimited","min":0,"ke
> >y":{"type":"string","enum":["set",["OpenFlow10","OpenFlow1
> >> >
> >> >
>
> >1","OpenFlow12","OpenFlow13","OpenFlow14","OpenFlow15"]]}}},"auto_attach":{"type":{"key":{"ty
> >pe":"uuid","refTable":"AutoAttach"},"min":0}},"mcast_snoop
> >> >
> >> >
>
> >ing_enable":{"type":"boolean"},"flood_vlans":{"type":{"max":4096,"min":0,"key":{"minInteger":
> >0,"maxInteger":4095,"type":"integer"}}},"stp_enable":{"typ
> >> >
> >> >
>
> >e":"boolean"},"name":{"type":"string","mutable":false},"sflow":{"type":{"key":{"type":"uuid",
> >"refTable":"sFlow"},"min":0}},"ports":{"type":{"max":"unli
> >> >
> >> >
>
> >mited","min":0,"key":{"type":"uuid","refTable":"Port"}}},"mirrors":{"type":{"max":"unlimited"
> >,"min":0,"key":{"type":"uuid","refTable":"Mirror"}}},"netf
> >> >
> >> >
>
> >low":{"type":{"key":{"type":"uuid","refTable":"NetFlow"},"min":0}},"external_ids":{"type":{"m
> >ax":"unlimited","value":"string","key":"string","min":0}},
> >> >
> >> >
>
> >"other_config":{"type":{"max":"unlimited","value":"string","key":"string","min":0}},"datapath
> >_type":{"type":"string"},"fail_mode":{"type":{"key":{"type
> >> >
> >> >
>
> >":"string","enum":["set",["secure","standalone"]]},"min":0}},"datapath_id":{"type":{"key":"st
> >ring","min":0},"ephemeral":true},"controller":{"type":{"ma
> >> >
> >> >
>
> >x":"unlimited","min":0,"key":{"type":"uuid","refTable":"Controller"}}},"ipfix":{"type":{"key"
> >:{"type":"uuid","refTable":"IPFIX"},"min":0}},"rstp_enable
> >> >
> >> >
>
> >":{"type":"boolean"},"status":{"type":{"max":"unlimited","value":"string","key":"string","min
> >":0},"ephemeral":true}},"indexes":[["name"]]},"IPFIX":{"co
> >> >
> >> >
>
> >lumns":{"external_ids":{"type":{"max":"unlimited","value":"string","key":"string","min":0}},"
> >sampling":{"type":{"key":{"minInteger":1,"maxInteger":4294
> >> >
> >> >
>
> >967295,"type":"integer"},"min":0}},"cache_active_timeout":{"type":{"key":{"minInteger":0,"max
> >Integer":4200,"type":"integer"},"min":0}},"other_config":{
> >> >
> >> >
>
> >"type":{"max":"unlimited","value":"string","key":"string","min":0}},"targets":{"type":{"max":
> >"unlimited","min":0,"key":"string"}},"obs_domain_id":{"typ
> >> >
> >> >
>
> >e":{"key":{"minInteger":0,"maxInteger":4294967295,"type":"integer"},"min":0}},"obs_point_id":
> >{"type":{"key":{"minInteger":0,"maxInteger":4294967295,"ty
> >> >
> >> >
>
> >pe":"integer"},"min":0}},"cache_max_flows":{"type":{"key":{"minInteger":0,"maxInteger":429496
> >7295,"type":"integer"},"min":0}}}},"SSL":{"maxRows":1,"col
> >> >
> >> >
>
> >umns":{"external_ids":{"type":{"max":"unlimited","value":"string","key":"string","min":0}},"c
> >ertificate":{"type":"string"},"bootstrap_ca_cert":{"type":
> >> >
> >> >
>
> >"boolean"},"ca_cert":{"type":"string"},"private_key":{"type":"string"}}},"Interface":{"column
> >s":{"mac":{"type":{"key":"string","min":0}},"cfm_fault_sta
> >> >
> >> >
>
> >tus":{"type":{"max":"unlimited","min":0,"key":"string"},"ephemeral":true},"lldp":{"type":{"ma
> >x":"unlimited","value":"string","key":"string","min":0}},"
> >> >
> >> >
>
> >statistics":{"type":{"max":"unlimited","value":"integer","key":"string","min":0},"ephemeral":
> >true},"cfm_flap_count":{"type":{"key":"integer","min":0}},
> >> >
> >> >
>
> >"type":{"type":"string"},"link_resets":{"type":{"key":"integer","min":0},"ephemeral":true},"n
> >ame":{"type":"string","mutable":false},"lacp_current":{"ty
> >> >
> >> >
>
> >pe":{"key":"boolean","min":0},"ephemeral":true},"options":{"type":{"max":"unlimited","value":
> >"string","key":"string","min":0}},"cfm_health":{"type":{"k
> >> >
> >> >
>
> >ey":{"minInteger":0,"maxInteger":100,"type":"integer"},"min":0},"ephemeral":true},"cfm_mpid":
> >{"type":{"key":"integer","min":0}},"ingress_policing_rate"
> >> >
> >> >
>
> >:{"type":{"key":{"type":"integer","minInteger":0}}},"cfm_remote_mpids":{"type":{"max":"unlimi
> >ted","min":0,"key":"integer"},"ephemeral":true},"mac_in_us
> >> >
> >> >
>
> >e":{"type":{"key":"string","min":0},"ephemeral":true},"status":{"type":{"max":"unlimited","va
> >lue":"string","key":"string","min":0},"ephemeral":true},"l
> >> >
> >> >
>
> >ink_speed":{"type":{"key":"integer","min":0},"ephemeral":true},"link_state":{"type":{"key":{"
> >type":"string","enum":["set",["down","up"]]},"min":0},"eph
> >> >
> >> >
>
> >emeral":true},"ofport":{"type":{"key":"integer","min":0}},"bfd_status":{"type":{"max":"unlimi
> >ted","value":"string","key":"string","min":0}},"bfd":{"typ
> >> >
> >> >
>
> >e":{"max":"unlimited","value":"string","key":"string","min":0}},"ofport_request":{"type":{"ke
> >y":{"minInteger":1,"maxInteger":65279,"type":"integer"},"m
> >> >
> >> >
>
> >in":0}},"ifindex":{"type":{"key":{"minInteger":0,"maxInteger":4294967295,"type":"integer"},"m
> >in":0},"ephemeral":true},"ingress_policing_burst":{"type":
> >> >
> >> >
>
> >{"key":{"type":"integer","minInteger":0}}},"external_ids":{"type":{"max":"unlimited","value":
> >"string","key":"string","min":0}},"cfm_fault":{"type":{"ke
> >> >
> >> >
>
> >y":"boolean","min":0},"ephemeral":true},"other_config":{"type":{"max":"unlimited","value":"st
> >ring","key":"string","min":0}},"admin_state":{"type":{"key
> >> >
> >> >
>
> >":{"type":"string","enum":["set",["down","up"]]},"min":0},"ephemeral":true},"mtu":{"type":{"k
> >ey":"integer","min":0},"ephemeral":true},"cfm_remote_opsta
> >> >
> >> >
>
> >te":{"type":{"key":{"type":"string","enum":["set",["down","up"]]},"min":0},"ephemeral":true},
> >"error":{"type":{"key":"string","min":0}},"duplex":{"type"
> >> >
> >> >
>
> >:{"key":{"type":"string","enum":["set",["full","half"]]},"min":0},"ephemeral":true}},"indexes
> >":[["name"]]},"Manager":{"columns":{"external_ids":{"type"
> >> >
> >> >
>
> >:{"max":"unlimited","value":"string","key":"string","min":0}},"is_connected":{"type":"boolean
> >","ephemeral":true},"other_config":{"type":{"max":"unlimit
> >> >
> >> >
>
> >ed","value":"string","key":"string","min":0}},"connection_mode":{"type":{"key":{"type":"strin
> >g","enum":["set",["in-band","out-of-band"]]},"min":0}},"ta
> >> >
> >> >
>
> >rget":{"type":"string"},"inactivity_probe":{"type":{"key":"integer","min":0}},"status":{"type
> >":{"max":"unlimited","value":"string","key":"string","min"
> >> >
> >> >
>
> >:0},"ephemeral":true},"max_backoff":{"type":{"key":{"type":"integer","minInteger":1000},"min"
> >:0}}},"indexes":[["target"]]},"Flow_Table":{"columns":{"ex
> >> >
> >> >
>
> >ternal_ids":{"type":{"max":"unlimited","value":"string","key":"string","min":0}},"prefixes":{
> >"type":{"max":3,"min":0,"key":"string"}},"name":{"type":{"
> >> >
> >> >
>
> >key":"string","min":0}},"overflow_policy":{"type":{"key":{"type":"string","enum":["set",["evi
> >ct","refuse"]]},"min":0}},"groups":{"type":{"max":"unlimit
> >> >
> >> >
>
> >ed","min":0,"key":"string"}},"flow_limit":{"type":{"key":{"type":"integer","minInteger":0},"m
> >in":0}}}},"Port":{"columns":{"statistics":{"type":{"max":"
> >> >
> >> >
>
> >unlimited","value":"integer","key":"string","min":0},"ephemeral":true},"mac":{"type":{"key":"
> >string","min":0}},"trunks":{"type":{"max":4096,"min":0,"ke
> >> >
> >> >
>
> >y":{"minInteger":0,"maxInteger":4095,"type":"integer"}}},"rstp_status":{"type":{"max":"unlimi
> >ted","value":"string","key":"string","min":0},"ephemeral":
> >> >
> >> >
>
> >true},"bond_updelay":{"type":"integer"},"bond_downdelay":{"type":"integer"},"bond_active_slav
> >e":{"type":{"key":"string","min":0}},"bond_fake_iface":{"t
> >> >
> >> >
>
> >ype":"boolean"},"name":{"type":"string","mutable":false},"lacp":{"type":{"key":{"type":"strin
> >g","enum":["set",["active","off","passive"]]},"min":0}},"f
> >> >
> >> >
>
> >ake_bridge":{"type":"boolean"},"qos":{"type":{"key":{"type":"uuid","refTable":"QoS"},"min":0}
> >},"interfaces":{"type":{"max":"unlimited","key":{"type":"u
> >> >
> >> >
>
> >uid","refTable":"Interface"}}},"rstp_statistics":{"type":{"max":"unlimited","value":"integer"
> >,"key":"string","min":0},"ephemeral":true},"external_ids":
> >> >
> >> >
>
> >{"type":{"max":"unlimited","value":"string","key":"string","min":0}},"vlan_mode":{"type":{"ke
> >y":{"type":"string","enum":["set",["access","native-tagged
> >> >
> >> >  ","native-
>
> >untagged","trunk"]]},"min":0}},"tag":{"type":{"key":{"minInteger":0,"maxInteger":4095,"type":
> >"integer"},"min":0}},"other_config":{"type":{"ma
> >> >
> >> >
>
> >x":"unlimited","value":"string","key":"string","min":0}},"status":{"type":{"max":"unlimited",
> >"value":"string","key":"string","min":0},"ephemeral":true}
> >> >
> >> >
> ,"bond_mode":{"type":{"key":{"type":"string","enum":["set",["active-backup","balance-
> >slb","balance-tcp"]]},"min":0}}},"indexes":[["name"]]},"NetFlow":{
> >> >
> >> >
>
> >"columns":{"external_ids":{"type":{"max":"unlimited","value":"string","key":"string","min":0}
> >},"active_timeout":{"type":{"key":{"type":"integer","minIn
> >> >
> >> >  teger":-
>
> >1}}},"targets":{"type":{"max":"unlimited","key":"string"}},"add_id_to_interface":{"type":"boo
> >lean"},"engine_id":{"type":{"key":{"minInteger":0,
> >> >
> >> >
>
> >"maxInteger":255,"type":"integer"},"min":0}},"engine_type":{"type":{"key":{"minInteger":0,"ma
> >xInteger":255,"type":"integer"},"min":0}}}},"Controller":{
> >> >
> >> >
>
> >"columns":{"external_ids":{"type":{"max":"unlimited","value":"string","key":"string","min":0}
> >},"local_ip":{"type":{"key":"string","min":0}},"role":{"ty
> >> >
> >> >
>
> >pe":{"key":{"type":"string","enum":["set",["master","other","slave"]]},"min":0},"ephemeral":t
> >rue},"is_connected":{"type":"boolean","ephemeral":true},"o
> >> >
> >> >
>
> >ther_config":{"type":{"max":"unlimited","value":"string","key":"string","min":0}},"controller
> >_rate_limit":{"type":{"key":{"type":"integer","minInteger"
> >> >
> >> >
>
> >:100},"min":0}},"controller_burst_limit":{"type":{"key":{"type":"integer","minInteger":25},"m
> >in":0}},"connection_mode":{"type":{"key":{"type":"string",
> >> >
> >> >  "enum":["set",["in-band","out-of-
>
> >band"]]},"min":0}},"enable_async_messages":{"type":{"key":"boolean","min":0}},"target":{"type
> >":"string"},"local_netmas
> >> >
> >> >
>
> >k":{"type":{"key":"string","min":0}},"inactivity_probe":{"type":{"key":"integer","min":0}},"s
> >tatus":{"type":{"max":"unlimited","value":"string","key":"
> >> >
> >> >
>
> >string","min":0},"ephemeral":true},"local_gateway":{"type":{"key":"string","min":0}},"max_bac
> >koff":{"type":{"key":{"type":"integer","minInteger":1000},
> >> >
> >> >
>
> >"min":0}}}},"Mirror":{"columns":{"external_ids":{"type":{"max":"unlimited","value":"string","
> >key":"string","min":0}},"select_all":{"type":"boolean"},"s
> >> >
> >> >
>
> >elect_src_port":{"type":{"max":"unlimited","min":0,"key":{"refTable":"Port","refType":"weak",
> >"type":"uuid"}}},"output_vlan":{"type":{"key":{"minInteger
> >> >
> >> >
>
> >":1,"maxInteger":4095,"type":"integer"},"min":0}},"statistics":{"type":{"max":"unlimited","va
> >lue":"integer","key":"string","min":0},"ephemeral":true},"
> >> >
> >> >
>
> >select_vlan":{"type":{"max":4096,"min":0,"key":{"minInteger":0,"maxInteger":4095,"type":"inte
> >ger"}}},"output_port":{"type":{"key":{"refTable":"Port","r
> >> >
> >> >
>
> >efType":"weak","type":"uuid"},"min":0}},"name":{"type":"string"},"select_dst_port":{"type":{"
> >max":"unlimited","min":0,"key":{"refTable":"Port","refType
> >> >
> >> >
>
> >":"weak","type":"uuid"}}}}},"AutoAttach":{"columns":{"system_name":{"type":"string"},"mapping
> >s":{"type":{"max":"unlimited","value":{"minInteger":0,"max
> >> >
> >> >
>
> >Integer":4095,"type":"integer"},"key":{"minInteger":0,"maxInteger":16777215,"type":"integer"}
> >,"min":0}},"system_description":{"type":"string"}}},"sFlow
> >> >
> >> >
>
> >":{"columns":{"external_ids":{"type":{"max":"unlimited","value":"string","key":"string","min"
> >:0}},"agent":{"type":{"key":"string","min":0}},"header":{"
> >> >
> >> >
>
> >type":{"key":"integer","min":0}},"polling":{"type":{"key":"integer","min":0}},"sampling":{"ty
> >pe":{"key":"integer","min":0}},"targets":{"type":{"max":"u
> >> >
> >> >  nlimited","key":"string"}}}}},"version":"7.12.1","cksum":"2211824403
> >> > 22535"}, id=0
> >> > > 2016-07-02T14:18:06Z|00014|hmap|DBG|lib/sset.c:53: 6 nodes in
> bucket (8
> >> > nodes, 4 buckets)
> >> > > 2016-07-02T14:18:06Z|00015|hmap|DBG|lib/sset.c:53: 6 nodes in
> bucket (32
> >> > nodes, 16 buckets)
> >> > >
> >> >
> 2016-07-02T14:18:06Z|00016|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >> > send request, method="monitor", params=["Open_vSwitch",null,{"Open_
> >> >
> >> >
>
> >vSwitch":{"columns":["bridges","cur_cfg"]},"Interface":{"columns":["name","ofport"]},"Flow_Sa
> >mple_Collector_Set":{"columns":["bridge"]},"Port":{"column
> >> >
> >> >
>
> >s":["fake_bridge","interfaces","name","tag"]},"Bridge":{"columns":["controller","datapath_typ
> >e","fail_mode","name","ports"]},"Controller":{"columns":[]
> >> >              }}], id=1
> >> > >
> >> >
> 2016-07-02T14:18:06Z|00017|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >> > received reply, result={"Open_vSwitch":{"c67d14d9-857f-460d-90a2-da
> >> >        79df5f9d09":{"new":{"cur_cfg":0,"bridges":["set",[]]}}}}, id=1
> >> > >
> >> >
> 2016-07-02T14:18:06Z|00018|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >> > send request, method="transact", params=["Open_vSwitch",{"where":[[
> >> >
> >> >  "_uuid","==",["uuid","c67d14d9-857f-460d-90a2-
>
> >da79df5f9d09"]]],"table":"Open_vSwitch","timeout":0,"op":"wait","rows":[{"bridges":["set",[]]
> >}],"columns"
> >> >
> >> >  :["bridges"],"until":"=="},{"row":{"name":"br0","ports":["named-
>
> >uuid","row67094deb_129b_4760_afef_46082914fc0f"],"datapath_type":"netdev"},"table":"Bri
> >> >
> >> >  dge","op":"insert","uuid-
>
> >name":"rowd71a9941_b131_4485_a077_cd03e0720c90"},{"row":{"bridges":["named-
> >uuid","rowd71a9941_b131_4485_a077_cd03e0720c90"]},"
> >> >
> >> >  where":[["_uuid","==",["uuid","c67d14d9-857f-460d-90a2-
>
> >da79df5f9d09"]]],"table":"Open_vSwitch","op":"update"},{"row":{"type":"internal","name":"br0"
> >},"
> >> >
> >> >  table":"Interface","op":"insert","uuid-
>
> >name":"row786ac466_b3fa_42ed_91a3_c73b98506b45"},{"row":{"name":"br0","interfaces":["named-
> >uuid","row786ac466_b3
> >> >
> >> >  fa_42ed_91a3_c73b98506b45"]},"table":"Port","op":"insert","uuid-
>
> >name":"row67094deb_129b_4760_afef_46082914fc0f"},{"mutations":[["next_cfg","+=",1]],"wh
> >> >
> >> >  ere":[["_uuid","==",["uuid","c67d14d9-857f-460d-90a2-
>
> >da79df5f9d09"]]],"table":"Open_vSwitch","op":"mutate"},{"where":[["_uuid","==",["uuid","c67d1
> >4d9-8
> >> >
> >> >  57f-460d-90a2-
>
> >da79df5f9d09"]]],"table":"Open_vSwitch","op":"select","columns":["next_cfg"]},{"op":"comment"
> >,"comment":"ovs-vsctl:
> >> > ./ovs-vsctl -v add-br                br0 -- set bridge br0
> >> > datapath_type=netdev"}], id=2
> >> > >
> >> >
> 2016-07-02T14:18:06Z|00019|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >> > received notification, method="update", params=[null,{"Interface":{
> >> >
> >> >  "e0c6c65d-6420-428a-b260-
>
> >0a7813bb8e05":{"new":{"ofport":["set",[]],"name":"br0"}}},"Open_vSwitch":{"c67d14d9-857f-
> >460d-90a2-da79df5f9d09":{"old":{"brid
> >> >
> >> >
> ges":["set",[]]},"new":{"cur_cfg":0,"bridges":["uuid","bc4fe747-1603-4ede-a94e-
> >a64af3226cee"]}}},"Port":{"10f4a392-4c3d-4c24-a2e1-78f91c60f9f9":{"new":
> >> >
> >> >
> {"fake_bridge":false,"tag":["set",[]],"name":"br0","interfaces":["uuid","e0c6c65d-6420-
> >428a-b260-0a7813bb8e05"]}}},"Bridge":{"bc4fe747-1603-4ede-a94e-a
> >> >
> >> >
> 64af3226cee":{"new":{"name":"br0","ports":["uuid","10f4a392-4c3d-4c24-a2e1-
>
> >78f91c60f9f9"],"datapath_type":"netdev","fail_mode":["set",[]],"controller":
> >> >              ["set",[]]}}}}]
> >> > >
> >> >
> 2016-07-02T14:18:06Z|00020|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >> > received reply, result=[{},{"uuid":["uuid","bc4fe747-1603-4ede-a94e
> >> >
> >> >
> -a64af3226cee"]},{"count":1},{"uuid":["uuid","e0c6c65d-6420-428a-b260-
>
> >0a7813bb8e05"]},{"uuid":["uuid","10f4a392-4c3d-4c24-a2e1-78f91c60f9f9"]},{"count"
> >> >              :1},{"rows":[{"next_cfg":1}]},{}], id=2
> >> > > 2016-07-02T14:18:06Z|00021|poll_loop|DBG|wakeup due to 0-ms timeout
> at
> >> > lib/ovsdb-idl.c:1729
> >> > > 2016-07-02T14:19:51Z|00022|poll_loop|DBG|wakeup due to [POLLIN] on
> fd 5
> >> > (FIFO pipe:[26870]) at lib/fatal-signal.c:224 (0% CPU usage)
> >> > > 2016-07-02T14:19:51Z|00023|fatal_signal|WARN|terminating with
> signal 2
> >> > (Interrupt)
> >> >
> >> >
> >
> >> $ sudo ./ovs-vswitchd --dpdk -c 0x1 -n 4 -- unix:$DB_SOCK --pidfile
> --detach -v
> >> 2016-07-02T15:22:49Z|00001|dpdk|INFO|No -vhost_sock_dir provided -
> defaulting to
> >/usr/local/var/run/openvswitch
> >> EAL: Detected lcore 0 as core 0 on socket 0
> >> EAL: Detected lcore 1 as core 1 on socket 0
> >> EAL: Detected lcore 2 as core 2 on socket 0
> >> EAL: Detected lcore 3 as core 3 on socket 0
> >> EAL: Support maximum 128 logical core(s) by configuration.
> >> EAL: Detected 4 lcore(s)
> >> EAL: VFIO modules not all loaded, skip VFIO support...
> >> EAL: Setting up physically contiguous memory...
> >> EAL: Ask a virtual area of 0x40000000 bytes
> >> EAL: Virtual area found at 0x7f8400000000 (size = 0x40000000)
> >> EAL: Requesting 1 pages of size 1024MB from socket 0
> >> EAL: TSC frequency is ~2096068 KHz
> >> EAL: Master lcore 0 is ready (tid=c499bac0;cpuset=[0])
> >> EAL: PCI device 0000:02:00.0 on NUMA socket -1
> >> EAL:   probe driver: 8086:10fb rte_ixgbe_pmd
> >> EAL:   PCI memory mapped at 0x7f8440000000
> >> EAL:   PCI memory mapped at 0x7f8440080000
> >> PMD: eth_ixgbe_dev_init(): MAC: 2, PHY: 18, SFP+: 5
> >> PMD: eth_ixgbe_dev_init(): port 0 vendorID=0x8086 deviceID=0x10fb
> >> EAL: PCI device 0000:02:00.1 on NUMA socket -1
> >> EAL:   probe driver: 8086:10fb rte_ixgbe_pmd
> >> EAL:   PCI memory mapped at 0x7f8440084000
> >> EAL:   PCI memory mapped at 0x7f8440104000
> >> PMD: eth_ixgbe_dev_init(): MAC: 2, PHY: 18, SFP+: 6
> >> PMD: eth_ixgbe_dev_init(): port 1 vendorID=0x8086 deviceID=0x10fb
> >> Zone 0: name:<RG_MP_log_history>, phys:0x1bfffdec0, len:0x2080,
> virt:0x7f843fffdec0,
> >socket_id:0, flags:0
> >> Zone 1: name:<MP_log_history>, phys:0x1bfd73d40, len:0x28a0c0,
> virt:0x7f843fd73d40,
> >socket_id:0, flags:0
> >> Zone 2: name:<rte_eth_dev_data>, phys:0x1bfd43380, len:0x2f700,
> virt:0x7f843fd43380,
> >socket_id:0, flags:0
> >>
> 2016-07-02T15:22:51Z|00002|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >entering BACKOFF
> >> 2016-07-02T15:22:51Z|00003|hmap|DBG|lib/shash.c:112: 6 nodes in bucket
> (32 nodes, 16
> >buckets)
> >> 2016-07-02T15:22:51Z|00004|ovs_numa|INFO|Discovered 4 CPU cores on NUMA
> node 0
> >> 2016-07-02T15:22:51Z|00005|ovs_numa|INFO|Discovered 1 NUMA nodes and 4
> CPU cores
> >>
> 2016-07-02T15:22:51Z|00006|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
> >connecting...
> >>
> 2016-07-02T15:22:51Z|00007|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >entering CONNECTING
> >> 2016-07-02T15:22:51Z|00008|poll_loop|DBG|wakeup due to [POLLOUT] on fd
> 19 (<-
> >>/usr/local/var/run/openvswitch/db.sock) at lib/stream-fd.c:151
> >>
> 2016-07-02T15:22:51Z|00009|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock:
> >connected
> >>
> 2016-07-02T15:22:51Z|00010|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >entering ACTIVE
> >>
> 2016-07-02T15:22:51Z|00011|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> send
> >request, method="get_schema", params=["Open_vSwitch"], id=0
> >>
> 2016-07-02T15:22:51Z|00012|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> send
> >request, method="lock", params=["ovs_vswitchd"], id=1
> >> 2016-07-02T15:22:51Z|00001|poll_loop(urcu3)|DBG|wakeup due to 0-ms
> timeout
> >> 2016-07-02T15:22:51Z|00013|poll_loop|DBG|wakeup due to [POLLIN] on fd
> 19 (<-
> >>/usr/local/var/run/openvswitch/db.sock) at lib/stream-fd.c:155
> >> 2016-07-02T15:22:51Z|00014|hmap|DBG|lib/shash.c:112: 6 nodes in bucket
> (8 nodes, 4 buckets)
> >> 2016-07-02T15:22:51Z|00015|hmap|DBG|lib/shash.c:112: 6 nodes in bucket
> (32 nodes, 16
> >buckets)
> >>
> 2016-07-02T15:22:51Z|00016|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >received reply,
>
> >result={"name":"Open_vSwitch","tables":{"QoS":{"isRoot":true,"columns":{"external_ids":{"type
>
> >":{"max":"unlimited","value":"string","key":"string","min":0}},"type":{"type":"string"},"queu
>
> >es":{"type":{"max":"unlimited","value":{"type":"uuid","refTable":"Queue"},"key":{"minInteger"
>
> >:0,"maxInteger":4294967295,"type":"integer"},"min":0}},"other_config":{"type":{"max":"unlimit
>
> >ed","value":"string","key":"string","min":0}}}},"Queue":{"isRoot":true,"columns":{"external_i
>
> >ds":{"type":{"max":"unlimited","value":"string","key":"string","min":0}},"dscp":{"type":{"key
>
> >":{"minInteger":0,"maxInteger":63,"type":"integer"},"min":0}},"other_config":{"type":{"max":"
>
> >unlimited","value":"string","key":"string","min":0}}}},"Open_vSwitch":{"maxRows":1,"isRoot":t
>
> >rue,"columns":{"datapath_types":{"type":{"max":"unlimited","min":0,"key":"string"}},"statisti
>
> >cs":{"type":{"max":"unlimited","value":"string","key":"string","min":0},"ephemeral":true},"ex
>
> >ternal_ids":{"type":{"max":"unlimited","value":"string","key":"string","min":0}},"cur_cfg":{"
>
> >type":"integer"},"db_version":{"type":{"key":"string","min":0}},"other_config":{"type":{"max"
>
> >:"unlimited","value":"string","key":"string","min":0}},"next_cfg":{"type":"integer"},"system_
>
> >type":{"type":{"key":"string","min":0}},"system_version":{"type":{"key":"string","min":0}},"o
>
> >vs_version":{"type":{"key":"string","min":0}},"bridges":{"type":{"max":"unlimited","min":0,"k
>
> >ey":{"type":"uuid","refTable":"Bridge"}}},"ssl":{"type":{"key":{"type":"uuid","refTable":"SSL
>
> >"},"min":0}},"manager_options":{"type":{"max":"unlimited","min":0,"key":{"type":"uuid","refTa
>
> >ble":"Manager"}}},"iface_types":{"type":{"max":"unlimited","min":0,"key":"string"}}}},"Flow_S
>
> >ample_Collector_Set":{"isRoot":true,"columns":{"external_ids":{"type":{"max":"unlimited","val
>
> >ue":"string","key":"string","min":0}},"bridge":{"type":{"key":{"type":"uuid","refTable":"Brid
>
> >ge"}}},"ipfix":{"type":{"key":{"type":"uuid","refTable":"IPFIX"},"min":0}},"id":{"type":{"key
>
> >":{"minInteger":0,"maxInteger":4294967295,"type":"integer"}}}},"indexes":[["id","bridge"]]},"
>
> >Bridge":{"columns":{"rstp_status":{"type":{"max":"unlimited","value":"string","key":"string",
>
> >"min":0},"ephemeral":true},"datapath_version":{"type":"string"},"flow_tables":{"type":{"max":
>
> >"unlimited","value":{"type":"uuid","refTable":"Flow_Table"},"key":{"minInteger":0,"maxInteger
>
> >":254,"type":"integer"},"min":0}},"protocols":{"type":{"max":"unlimited","min":0,"key":{"type
>
> >":"string","enum":["set",["OpenFlow10","OpenFlow11","OpenFlow12","OpenFlow13","OpenFlow14","O
>
> >penFlow15"]]}}},"auto_attach":{"type":{"key":{"type":"uuid","refTable":"AutoAttach"},"min":0}
>
> >},"mcast_snooping_enable":{"type":"boolean"},"flood_vlans":{"type":{"max":4096,"min":0,"key":
>
> >{"minInteger":0,"maxInteger":4095,"type":"integer"}}},"stp_enable":{"type":"boolean"},"name":
>
> >{"type":"string","mutable":false},"sflow":{"type":{"key":{"type":"uuid","refTable":"sFlow"},"
>
> >min":0}},"ports":{"type":{"max":"unlimited","min":0,"key":{"type":"uuid","refTable":"Port"}}}
>
> >,"mirrors":{"type":{"max":"unlimited","min":0,"key":{"type":"uuid","refTable":"Mirror"}}},"ne
>
> >tflow":{"type":{"key":{"type":"uuid","refTable":"NetFlow"},"min":0}},"external_ids":{"type":{
>
> >"max":"unlimited","value":"string","key":"string","min":0}},"other_config":{"type":{"max":"un
>
> >limited","value":"string","key":"string","min":0}},"datapath_type":{"type":"string"},"fail_mo
>
> >de":{"type":{"key":{"type":"string","enum":["set",["secure","standalone"]]},"min":0}},"datapa
>
> >th_id":{"type":{"key":"string","min":0},"ephemeral":true},"controller":{"type":{"max":"unlimi
>
> >ted","min":0,"key":{"type":"uuid","refTable":"Controller"}}},"ipfix":{"type":{"key":{"type":"
>
> >uuid","refTable":"IPFIX"},"min":0}},"rstp_enable":{"type":"boolean"},"status":{"type":{"max":
>
> >"unlimited","value":"string","key":"string","min":0},"ephemeral":true}},"indexes":[["name"]]}
>
> >,"IPFIX":{"columns":{"external_ids":{"type":{"max":"unlimited","value":"string","key":"string
>
> >","min":0}},"sampling":{"type":{"key":{"minInteger":1,"maxInteger":4294967295,"type":"integer
>
> >"},"min":0}},"cache_active_timeout":{"type":{"key":{"minInteger":0,"maxInteger":4200,"type":"
>
> >integer"},"min":0}},"other_config":{"type":{"max":"unlimited","value":"string","key":"string"
>
> >,"min":0}},"targets":{"type":{"max":"unlimited","min":0,"key":"string"}},"obs_domain_id":{"ty
>
> >pe":{"key":{"minInteger":0,"maxInteger":4294967295,"type":"integer"},"min":0}},"obs_point_id"
>
> >:{"type":{"key":{"minInteger":0,"maxInteger":4294967295,"type":"integer"},"min":0}},"cache_ma
>
> >x_flows":{"type":{"key":{"minInteger":0,"maxInteger":4294967295,"type":"integer"},"min":0}}}}
>
> >,"SSL":{"maxRows":1,"columns":{"external_ids":{"type":{"max":"unlimited","value":"string","ke
>
> >y":"string","min":0}},"certificate":{"type":"string"},"bootstrap_ca_cert":{"type":"boolean"},
>
> >"ca_cert":{"type":"string"},"private_key":{"type":"string"}}},"Interface":{"columns":{"mac":{
>
> >"type":{"key":"string","min":0}},"cfm_fault_status":{"type":{"max":"unlimited","min":0,"key":
>
> >"string"},"ephemeral":true},"lldp":{"type":{"max":"unlimited","value":"string","key":"string"
>
> >,"min":0}},"statistics":{"type":{"max":"unlimited","value":"integer","key":"string","min":0},
>
> >"ephemeral":true},"cfm_flap_count":{"type":{"key":"integer","min":0}},"type":{"type":"string"
>
> >},"link_resets":{"type":{"key":"integer","min":0},"ephemeral":true},"name":{"type":"string","
>
> >mutable":false},"lacp_current":{"type":{"key":"boolean","min":0},"ephemeral":true},"options":
>
> >{"type":{"max":"unlimited","value":"string","key":"string","min":0}},"cfm_health":{"type":{"k
>
> >ey":{"minInteger":0,"maxInteger":100,"type":"integer"},"min":0},"ephemeral":true},"cfm_mpid":
>
> >{"type":{"key":"integer","min":0}},"ingress_policing_rate":{"type":{"key":{"type":"integer","
>
> >minInteger":0}}},"cfm_remote_mpids":{"type":{"max":"unlimited","min":0,"key":"integer"},"ephe
>
> >meral":true},"mac_in_use":{"type":{"key":"string","min":0},"ephemeral":true},"status":{"type"
>
> >:{"max":"unlimited","value":"string","key":"string","min":0},"ephemeral":true},"link_speed":{
>
> >"type":{"key":"integer","min":0},"ephemeral":true},"link_state":{"type":{"key":{"type":"strin
>
> >g","enum":["set",["down","up"]]},"min":0},"ephemeral":true},"ofport":{"type":{"key":"integer"
>
> >,"min":0}},"bfd_status":{"type":{"max":"unlimited","value":"string","key":"string","min":0}},
>
> >"bfd":{"type":{"max":"unlimited","value":"string","key":"string","min":0}},"ofport_request":{
>
> >"type":{"key":{"minInteger":1,"maxInteger":65279,"type":"integer"},"min":0}},"ifindex":{"type
>
> >":{"key":{"minInteger":0,"maxInteger":4294967295,"type":"integer"},"min":0},"ephemeral":true}
>
> >,"ingress_policing_burst":{"type":{"key":{"type":"integer","minInteger":0}}},"external_ids":{
>
> >"type":{"max":"unlimited","value":"string","key":"string","min":0}},"cfm_fault":{"type":{"key
>
> >":"boolean","min":0},"ephemeral":true},"other_config":{"type":{"max":"unlimited","value":"str
>
> >ing","key":"string","min":0}},"admin_state":{"type":{"key":{"type":"string","enum":["set",["d
>
> >own","up"]]},"min":0},"ephemeral":true},"mtu":{"type":{"key":"integer","min":0},"ephemeral":t
>
> >rue},"cfm_remote_opstate":{"type":{"key":{"type":"string","enum":["set",["down","up"]]},"min"
>
> >:0},"ephemeral":true},"error":{"type":{"key":"string","min":0}},"duplex":{"type":{"key":{"typ
>
> >e":"string","enum":["set",["full","half"]]},"min":0},"ephemeral":true}},"indexes":[["name"]]}
>
> >,"Manager":{"columns":{"external_ids":{"type":{"max":"unlimited","value":"string","key":"stri
>
> >ng","min":0}},"is_connected":{"type":"boolean","ephemeral":true},"other_config":{"type":{"max
>
> >":"unlimited","value":"string","key":"string","min":0}},"connection_mode":{"type":{"key":{"ty
> >pe":"string","enum":["set",["in-band","out-of-
>
> >band"]]},"min":0}},"target":{"type":"string"},"inactivity_probe":{"type":{"key":"integer","mi
>
> >n":0}},"status":{"type":{"max":"unlimited","value":"string","key":"string","min":0},"ephemera
>
> >l":true},"max_backoff":{"type":{"key":{"type":"integer","minInteger":1000},"min":0}}},"indexe
>
> >s":[["target"]]},"Flow_Table":{"columns":{"external_ids":{"type":{"max":"unlimited","value":"
>
> >string","key":"string","min":0}},"prefixes":{"type":{"max":3,"min":0,"key":"string"}},"name":
>
> >{"type":{"key":"string","min":0}},"overflow_policy":{"type":{"key":{"type":"string","enum":["
>
> >set",["evict","refuse"]]},"min":0}},"groups":{"type":{"max":"unlimited","min":0,"key":"string
>
> >"}},"flow_limit":{"type":{"key":{"type":"integer","minInteger":0},"min":0}}}},"Port":{"column
>
> >s":{"statistics":{"type":{"max":"unlimited","value":"integer","key":"string","min":0},"epheme
>
> >ral":true},"mac":{"type":{"key":"string","min":0}},"trunks":{"type":{"max":4096,"min":0,"key"
>
> >:{"minInteger":0,"maxInteger":4095,"type":"integer"}}},"rstp_status":{"type":{"max":"unlimite
>
> >d","value":"string","key":"string","min":0},"ephemeral":true},"bond_updelay":{"type":"integer
>
> >"},"bond_downdelay":{"type":"integer"},"bond_active_slave":{"type":{"key":"string","min":0}},
>
> >"bond_fake_iface":{"type":"boolean"},"name":{"type":"string","mutable":false},"lacp":{"type":
>
> >{"key":{"type":"string","enum":["set",["active","off","passive"]]},"min":0}},"fake_bridge":{"
>
> >type":"boolean"},"qos":{"type":{"key":{"type":"uuid","refTable":"QoS"},"min":0}},"interfaces"
>
> >:{"type":{"max":"unlimited","key":{"type":"uuid","refTable":"Interface"}}},"rstp_statistics":
>
> >{"type":{"max":"unlimited","value":"integer","key":"string","min":0},"ephemeral":true},"exter
>
> >nal_ids":{"type":{"max":"unlimited","value":"string","key":"string","min":0}},"vlan_mode":{"t
>
> >ype":{"key":{"type":"string","enum":["set",["access","native-tagged","native-
>
> >untagged","trunk"]]},"min":0}},"tag":{"type":{"key":{"minInteger":0,"maxInteger":4095,"type":
>
> >"integer"},"min":0}},"other_config":{"type":{"max":"unlimited","value":"string","key":"string
>
> >","min":0}},"status":{"type":{"max":"unlimited","value":"string","key":"string","min":0},"eph
>
> >emeral":true},"bond_mode":{"type":{"key":{"type":"string","enum":["set",["active-
> >backup","balance-slb","balance-
>
> >tcp"]]},"min":0}}},"indexes":[["name"]]},"NetFlow":{"columns":{"external_ids":{"type":{"max":
>
> >"unlimited","value":"string","key":"string","min":0}},"active_timeout":{"type":{"key":{"type"
> >:"integer","minInteger":-
>
> >1}}},"targets":{"type":{"max":"unlimited","key":"string"}},"add_id_to_interface":{"type":"boo
>
> >lean"},"engine_id":{"type":{"key":{"minInteger":0,"maxInteger":255,"type":"integer"},"min":0}
>
> >},"engine_type":{"type":{"key":{"minInteger":0,"maxInteger":255,"type":"integer"},"min":0}}}}
>
> >,"Controller":{"columns":{"external_ids":{"type":{"max":"unlimited","value":"string","key":"s
>
> >tring","min":0}},"local_ip":{"type":{"key":"string","min":0}},"role":{"type":{"key":{"type":"
>
> >string","enum":["set",["master","other","slave"]]},"min":0},"ephemeral":true},"is_connected":
>
> >{"type":"boolean","ephemeral":true},"other_config":{"type":{"max":"unlimited","value":"string
>
> >","key":"string","min":0}},"controller_rate_limit":{"type":{"key":{"type":"integer","minInteg
>
> >er":100},"min":0}},"controller_burst_limit":{"type":{"key":{"type":"integer","minInteger":25}
>
> >,"min":0}},"connection_mode":{"type":{"key":{"type":"string","enum":["set",["in-band","out-
> >of-
>
> >band"]]},"min":0}},"enable_async_messages":{"type":{"key":"boolean","min":0}},"target":{"type
>
> >":"string"},"local_netmask":{"type":{"key":"string","min":0}},"inactivity_probe":{"type":{"ke
>
> >y":"integer","min":0}},"status":{"type":{"max":"unlimited","value":"string","key":"string","m
>
> >in":0},"ephemeral":true},"local_gateway":{"type":{"key":"string","min":0}},"max_backoff":{"ty
>
> >pe":{"key":{"type":"integer","minInteger":1000},"min":0}}}},"Mirror":{"columns":{"external_id
>
> >s":{"type":{"max":"unlimited","value":"string","key":"string","min":0}},"select_all":{"type":
>
> >"boolean"},"select_src_port":{"type":{"max":"unlimited","min":0,"key":{"refTable":"Port","ref
>
> >Type":"weak","type":"uuid"}}},"output_vlan":{"type":{"key":{"minInteger":1,"maxInteger":4095,
>
> >"type":"integer"},"min":0}},"statistics":{"type":{"max":"unlimited","value":"integer","key":"
>
> >string","min":0},"ephemeral":true},"select_vlan":{"type":{"max":4096,"min":0,"key":{"minInteg
>
> >er":0,"maxInteger":4095,"type":"integer"}}},"output_port":{"type":{"key":{"refTable":"Port","
>
> >refType":"weak","type":"uuid"},"min":0}},"name":{"type":"string"},"select_dst_port":{"type":{
>
> >"max":"unlimited","min":0,"key":{"refTable":"Port","refType":"weak","type":"uuid"}}}}},"AutoA
>
> >ttach":{"columns":{"system_name":{"type":"string"},"mappings":{"type":{"max":"unlimited","val
>
> >ue":{"minInteger":0,"maxInteger":4095,"type":"integer"},"key":{"minInteger":0,"maxInteger":16
>
> >777215,"type":"integer"},"min":0}},"system_description":{"type":"string"}}},"sFlow":{"columns
>
> >":{"external_ids":{"type":{"max":"unlimited","value":"string","key":"string","min":0}},"agent
>
> >":{"type":{"key":"string","min":0}},"header":{"type":{"key":"integer","min":0}},"polling":{"t
>
> >ype":{"key":"integer","min":0}},"sampling":{"type":{"key":"integer","min":0}},"targets":{"typ
> >e":{"max":"unlimited","key":"string"}}}}},"version":"7.12.1","cksum":"2211824403
> 22535"},
> >id=0
> >> 2016-07-02T15:22:51Z|00017|hmap|DBG|lib/sset.c:53: 6 nodes in bucket (8
> nodes, 4 buckets)
> >> 2016-07-02T15:22:51Z|00018|hmap|DBG|lib/sset.c:53: 6 nodes in bucket
> (32 nodes, 16 buckets)
> >>
> 2016-07-02T15:22:51Z|00019|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> send
> >request, method="monitor",
>
> >params=["Open_vSwitch",null,{"QoS":{"columns":["other_config","queues","type"]},"Queue":{"col
>
> >umns":["dscp","other_config"]},"Flow_Sample_Collector_Set":{"columns":["bridge","id","ipfix"]
>
> >},"Open_vSwitch":{"columns":["bridges","cur_cfg","datapath_types","iface_types","manager_opti
>
> >ons","next_cfg","other_config","ssl","statistics"]},"Bridge":{"columns":["auto_attach","contr
>
> >oller","datapath_id","datapath_type","datapath_version","fail_mode","flood_vlans","flow_table
>
> >s","ipfix","mcast_snooping_enable","mirrors","name","netflow","other_config","ports","protoco
>
> >ls","rstp_enable","rstp_status","sflow","status","stp_enable"]},"IPFIX":{"columns":["cache_ac
>
> >tive_timeout","cache_max_flows","obs_domain_id","obs_point_id","other_config","sampling","tar
>
> >gets"]},"SSL":{"columns":["bootstrap_ca_cert","ca_cert","certificate","private_key"]},"Manage
>
> >r":{"columns":["connection_mode","other_config","target"]},"Interface":{"columns":["admin_sta
>
> >te","bfd","bfd_status","cfm_fault","cfm_fault_status","cfm_flap_count","cfm_health","cfm_mpid
>
> >","cfm_remote_mpids","cfm_remote_opstate","duplex","error","ifindex","ingress_policing_burst"
>
> >,"ingress_policing_rate","lacp_current","link_resets","link_speed","link_state","lldp","mac",
>
> >"mac_in_use","mtu","name","ofport","ofport_request","options","other_config","statistics","st
>
> >atus","type"]},"Flow_Table":{"columns":["external_ids","flow_limit","groups","name","overflow
>
> >_policy","prefixes"]},"Port":{"columns":["bond_active_slave","bond_downdelay","bond_fake_ifac
>
> >e","bond_mode","bond_updelay","fake_bridge","interfaces","lacp","mac","name","other_config","
>
> >qos","rstp_statistics","rstp_status","statistics","status","tag","trunks","vlan_mode"]},"NetF
>
> >low":{"columns":["active_timeout","add_id_to_interface","engine_id","engine_type","targets"]}
>
> >,"Controller":{"columns":["connection_mode","controller_burst_limit","controller_rate_limit",
>
> >"enable_async_messages","inactivity_probe","is_connected","local_gateway","local_ip","local_n
>
> >etmask","max_backoff","other_config","role","status","target"]},"AutoAttach":{"columns":["map
>
> >pings","system_description","system_name"]},"Mirror":{"columns":["name","output_port","output
>
> >_vlan","select_all","select_dst_port","select_src_port","select_vlan","statistics"]},"sFlow":
> >{"columns":["agent","header","polling","sampling","targets"]}}], id=2
> >>
> 2016-07-02T15:22:51Z|00020|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >received reply, result={"locked":true}, id=1
> >>
> 2016-07-02T15:22:51Z|00021|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >received reply, result={"Open_vSwitch":{"e0730da5-786e-4990-a4ee-
>
> >04772db6c420":{"new":{"statistics":["map",[]],"datapath_types":["set",[]],"cur_cfg":0,"next_c
>
> >fg":0,"other_config":["map",[]],"bridges":["set",[]],"ssl":["set",[]],"manager_options":["set
> >",[]],"iface_types":["set",[]]}}}}, id=2
> >> 2016-07-02T15:22:51Z|00022|netlink_socket|DBG|nl_sock_send__ (Success):
> nl(len:17,
> >type=26(family-defined), flags=305[REQUEST][ACK][DUMP], seq=1,
> pid=3560992085
> >> 2016-07-02T15:22:51Z|00023|netlink_socket|DBG|nl_sock_recv__ (Success):
> nl(len:60,
> >type=24(family-defined), flags=2[MULTI], seq=1, pid=3560992085
> >> 2016-07-02T15:22:51Z|00024|netlink_socket|DBG|nl_sock_recv__ (Success):
> nl(len:116,
> >type=24(family-defined), flags=2[MULTI], seq=1, pid=3560992085
> >> 2016-07-02T15:22:51Z|00025|netlink_socket|DBG|nl_sock_recv__ (Success):
> nl(len:20,
> >type=3(done), flags=2[MULTI], seq=1, pid=3560992085 done(0)
> >>
> 2016-07-02T15:22:51Z|00026|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> send
> >request, method="transact",
>
> >params=["Open_vSwitch",{"op":"assert","lock":"ovs_vswitchd"},{"row":{"datapath_types":["set",
>
> >["netdev","system"]],"iface_types":["set",["dpdk","dpdkr","dpdkvhostuser","geneve","gre","int
>
> >ernal","ipsec_gre","lisp","patch","stt","system","tap","vxlan"]]},"where":[["_uuid","==",["uu
> >id","e0730da5-786e-4990-a4ee-04772db6c420"]]],"table":"Open_vSwitch","op":"update"}],
> id=3
> >> 2016-07-02T15:22:51Z|00002|poll_loop(urcu3)|DBG|wakeup due to [POLLIN]
> on fd 21 (FIFO
> >pipe:[26795]) at lib/ovs-rcu.c:286
> >> 2016-07-02T15:22:51Z|00027|poll_loop|DBG|wakeup due to [POLLIN] on fd
> 19 (<-
> >>/usr/local/var/run/openvswitch/db.sock) at lib/stream-fd.c:155
> >>
> 2016-07-02T15:22:51Z|00028|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >received notification, method="update",
> params=[null,{"Open_vSwitch":{"e0730da5-786e-4990-
> >a4ee-
>
> >04772db6c420":{"old":{"datapath_types":["set",[]],"iface_types":["set",[]]},"new":{"statistic
>
> >s":["map",[]],"datapath_types":["set",["netdev","system"]],"cur_cfg":0,"next_cfg":0,"other_co
>
> >nfig":["map",[]],"bridges":["set",[]],"ssl":["set",[]],"manager_options":["set",[]],"iface_ty
>
> >pes":["set",["dpdk","dpdkr","dpdkvhostuser","geneve","gre","internal","ipsec_gre","lisp","pat
> >ch","stt","system","tap","vxlan"]]}}}}]
> >>
> 2016-07-02T15:22:51Z|00029|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock:
> >received reply, result=[{},{"count":1}], id=3
> >
> >
> >_______________________________________________
> >dev mailing list
> >d...@openvswitch.org
> >http://openvswitch.org/mailman/listinfo/dev
>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Both DPDK and OVS were successfully built before
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

#path
export DPDK_DIR=/home/amd/dpdk-2.2.0
export OVS_DIR=/home/amd/openvswitch-2.5.0
export DPDK_BUILD=$DPDK_DIR/x86_64-native-linuxapp-gcc
export DB_SOCK=/usr/local/var/run/openvswitch/db.sock

# mount hugepages
# grep Huge /proc/meminfo
sudo mount -t hugetlbfs -o pagesize=1G none /dev/hugepages

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# If DPDK and OVS are not re-built evertime, it won't work
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

# Build DPDK
cd $DPDK_DIR
make install T=x86_64-native-linuxapp-gcc

# Configure & build OVS
cd $OVS_DIR
./boot.sh
./configure --with-dpdk=$DPDK_BUILD/
make CFLAGS='-O3 -march=native'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# If DPDK and OVS are not re-built evertime, it won't work
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

# Setup DPDK devices
sudo modprobe uio
sudo insmod $DPDK_BUILD/kmod/igb_uio.ko
sudo $DPDK_DIR/tools/dpdk_nic_bind.py --bind=igb_uio enp2s0f0
sudo $DPDK_DIR/tools/dpdk_nic_bind.py --bind=igb_uio enp2s0f1
# sudo $DPDK_DIR/tools/dpdk_nic_bind.py --status

# Initialize open-vswitch database with new schema
sudo rm -rf /usr/local/etc/openvswitch
sudo rm -rf /usr/local/var/run/openvswitch

sudo mkdir -p /usr/local/etc/openvswitch
sudo mkdir -p /usr/local/var/run/openvswitch

cd $OVS_DIR/ovsdb
#******* one command start **************
sudo ./ovsdb-tool create /usr/local/etc/openvswitch/conf.db 
$OVS_DIR/vswitchd/vswitch.ovsschema
#******* one command end ****************

# Start ovsdb-server
#******* one command start **************
sudo ./ovsdb-server --remote=punix:$DB_SOCK 
--remote=db:Open_vSwitch,Open_vSwitch,manager_options --pidfile --detach
#******* one command end ****************

# Initialize ovsdb
cd $OVS_DIR/utilities
sudo ./ovs-vsctl --no-wait init

# start open-vswitch daemon
cd $OVS_DIR/vswitchd
#******* one command start **************
sudo ./ovs-vswitchd --dpdk -c 0x1 -n 4 -- unix:$DB_SOCK --pidfile --detach -v
#******* one command end ****************

# create br and add ports
cd $OVS_DIR/utilities

sudo ./ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk
sudo ./ovs-vsctl add-port br0 dpdk1 -- set Interface dpdk1 type=dpdk
# sudo ./ovs-vsctl show

# add flows 
cd $OVS_DIR/utilities
sudo ./ovs-ofctl del-flows br0
sudo ./ovs-ofctl add-flow br0 in_port=1,action=output:2
sudo ./ovs-ofctl add-flow br0 in_port=2,action=output:1


_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to