1. Protect DescriptorPool::BuildFile in ProtobufReader using mutex
2. Protect boost::uuids::random_generator in DbHandler using mutex
3. Copy over the errors from SocketStats to SocketIOStats

Added tests for the following in DbHandler:
1. Tests that show boost::uuids::random_generator is not thread-safe.
   This test is disabled since it fails as expected with duplicate
   uuids being returned.
2. Test that shows creating a boost::uuids::random_generator on stack
   is an order of magnitude expensive than not doing so or
   multi-threaded mutex lock based approach.

Change-Id: I22326c132ff733005312722461a0c5e831fbb964
Addressing review comments from ipv6 commits

Change-Id: Ie3148b22d4b0424cc9e6cd7e11773d952f97b338
Delete stale service chain objects when schema transformer restarts.

Change-Id: Id5855df46dd1b94339093e664058e5d3e9912566
Closes-Bug: 1336637
Remove changes to convert 'net_fq_name_str pfx/len' key to 'net_id pfx/len' key as this is not required anymore. This was causing issues when we have IPv6 subnets (Launched VMs going to error state for VN having IPv6 subnet).

Change-Id: Ie92c76adbf98517bd52f15754737358437295fb8
fix redhat build error

Change-Id: Ib314a524f1f382ccf79c8b65b6d6e9ed9d07d1bb
Merge "fix redhat build error"
Merge "Delete stale service chain objects when schema transformer restarts."
Update user-visible field (default true) in ID Perms

Change-Id: Ie6885b94cf52442eddad78cb47c41ae7b6a3ff34
Do not try connection to api server indefinitely. Give up after 10 retries.

Change-Id: I892daa6d5d663063ec59f7d53545acfef6769e67
Closes-Bug: 1372656
Closes-Bug: #1373631
  Issue: Latency graphs would not dip when reads/writes were zero
  Fix: Individual read/write latency is sent using equation:
       (curr_latency_sum - prev_latency_sum)/(curr_count - prev_count)
       over average latency.
  Test: Dip was seen in latency graph after stopping the traffic with
        the above fix.
  Code change done based on review comments
  Code change done based on second review comments
  Code change done based on third review comments

Change-Id: I0155690fcaa782deb81ee4805bfd6dea3a907b93
fix for Bug 1374203, Adding defensive code to encode all non ascii chars

Closes-Bug: 1374203

Change-Id: Ifa02e8099a270963bee19d9d5a8a7939502fc32c
check for port's tenant id when associating a floating ip to a port

Change-Id: I5365f92755b6fa6174b241d749df5b8447672455
Closes-Bug: 1373849
During router create, if we are also updating external gateway, we were updating the logical_router object without reading it. This could clobber the id_perms on the server. We should read before updating the object. Ideally, we should protect against this in api server.

Change-Id: I529b7f9e0b2ab3b635809af8678addc34467422c
Closes-Bug: 1373257
(cherry picked from commit f1342cfddd940e85c08d763d935db12f7aa66d91)
Fix memory leak in DB tests

Make sure DB_RunNotify_Yield deletes entries that it added.

Change-Id: Ibc019addea7f5fe545fd04fb799d04947adbe7b7
Merge "fix for Bug 1374203, Adding defensive code to encode all non ascii chars"
Merge "Closes-Bug: #1373631   Issue: Latency graphs would not dip when reads/writes were zero   Fix: Individual read/write latency is sent using equation:        (curr_latency_sum - prev_latency_sum)/(curr_count - prev_count)        over average latency.   Test: Dip was seen in latency graph after stopping the traffic with         the above fix.   Code change done based on review comments   Code change done based on second review comments   Code change done based on third review comments"
Merge "check for port's tenant id when associating a floating ip to a port"
Merge "During router create, if we are also updating external gateway, we were updating the logical_router object without reading it. This could clobber the id_perms on the server. We should read before updating the object. Ideally, we should protect against this in api server."
Merge "Update user-visible field (default true) in ID Perms"
Promote bgp_stress_test from flaky to non-flaky

Change-Id: I9a9c643cf0ca6d84ffdb0e6b6e0f05777bf7c2de