SandeshStateMachine::WorkQueue task acquires cdbq_mutex_ [CdbIf::Db_AddColumn()] and then WorkQueue::mutex_[WorkQueue<CdbIf::CdbIfColList>::MayBeStartRunner()] when sandesh
is received from the generator. At the same time, CdbIf::WorkQueue task acquires WorkQueue::mutex_ [WorkQueue<CdbIf::CdbIfColList>::RunnerDone()] and then
cdbq_mutex_ [CdbIf::Db_Uninit()] when connection to the Analytics database is disconnected and TTransportException is raised in CdbIf::Db_BatchAddColumn().
This results in deadlock as the locks are acquired in the reverse direction in different tasks that run in parallel.
Added a new function Db_UninitUnlocked() that would be invoked from SandeshGenerator::StartDbifReinit().
Closes-Bug: #1348563

Change-Id: I0d9601c24bb19645bea75e244ae662e0bdc407ce
in net-list and router-list, don't query for each project

This fix is cherry picked from
https://github.com/Juniper/contrail-neutron-plugin/commit/fa7d5df61753bb1ee7a274497089ac06862acee1

Change-Id: I44f10d62906eceea4b03d0e7f821545fe5211305
Add loadbalancer type for service template. Also remove ha-mode since max-instances will be used in template instead

Change-Id: I24d47eb6652cf88d3765317a9e8a6f311d57b3c5
Add loadbalancer to ifmap whitelist

Change-Id: I87b177b8acb9d3660d519741ee1864af928a03a2
Use the new attribute 'port_type' of the vrouter thrift API

Change-Id: Icbcbe7bc6ef7a88c8f3a4aa11b36034e36dca0f5
1) Filter clause is set incorrectly in the query when filter option is specified by the user in contrail-logs resulting in QueryEngine crash.
2) Filter operation should be LEQ instead GEQ.
Closes-Bug: #1353624

Change-Id: I8a9f2bfe4d3e842f92c90ad3eac1dc8282f9beef
Merge "in net-list and router-list, don't query for each project"
Merge "Add loadbalancer type for service template. Also remove ha-mode since max-instances will be used in template instead"
Merge "Add loadbalancer to ifmap whitelist"
Send a VN delete UVE when a VN is deleted

Change-Id: I5b0a286cca4f7a81269d9cb419607be6701d219c
Closes-Bug: 1355933
keyword support in contrail log

Change-Id: I7f902da6fdb440b6bf432c77c83785dc9bc65198
1. Do not hold the static HttpSession::mutex_ when doing a
HttpSession::Send() in HttpSession::SessionSend()
since the send can fail and call the session close handler -
HttpSession::OnSessionEvent() which again tries to acquire the
HttpSession::mutex_ resulting in a deadlock. This was added as
part of commit 943e011 on bitbucket, to prevent the session
from getting deleted in another thread. To prevent the same
store HttpSessionPtr in the HttpSession map instead of the raw
pointer. Rename HttpSession::mutex_ to map_mutex_.
2. Remove code to acquire HttpSession::mutex_ in OnRead(),
destructor, and FromQ since it was being used to protect the
request_queue_ which is a concurrent queue and hence there is
no need to protect it using mutex.

Closes-Bug: #1359183
Change-Id: I682ec60f4570a8b9c9e277e06c896af62d7f3c18
Fix UVE test cases and make them non-flaky
Remove test_stats.cc as it is replaced by test_stats_mock.cc

Change-Id: Ib37f1ea033f02af1cd46eb475aec99f20912cd01
enable consistently passing UTs

Change-Id: I6e12558413ccd4a7479fb95cb2958b5309d16864
Fix tenant_id filtering

This patch is the cherry pick of
https://github.com/Juniper/contrail-neutron-plugin/commit/ec0378ea0f9fd45a192dcc45008b50dce4c61ee3

Change-Id: If2634df81f93a17e1e50e99bb9c14d56d3131427
Merge "Use the new attribute 'port_type' of the vrouter thrift API"
[SVC monitor] Fix some introspect and UVE bugs

Change-Id: I45f0572d2cda5941f85b541dfa7cb9dd371c215d
Merge "1) Filter clause is set incorrectly in the query when filter option is specified by the user in contrail-logs resulting in QueryEngine crash. 2) Filter operation should be LEQ instead GEQ. Closes-Bug: #1353624"
Loadbalancer fixes and whitelist changes

Change-Id: I73aa4d3b28dce8c542becbf38be75dfd2bb1e13a
Enable netns script in agent configuration

Change-Id: I1a3c8c68f98e44267c15b7fd62f03cf44ccb04ff