Invoke a Connect thrift call to Agent whenever the connection to Agent is re-established. This is required to ensure that Agent audit of previous port configuration happens.

Change-Id: Id46a49525e2db53282409b599a535eb0edb0274a
This commit makes following change:
Set default cassandra connection timeout in TSocket thrift class to 3 seconds.

Reason for this change:
Currently when a pool of cassandra servers is used for Contrail Analytics service and one or more cassandra servers are down, sometimes query through UI or other clients might fail.
We see 403 http error returned by the analytics rest api. Basically issue is that
1) Query engine upon receiving query connects to cassandra servers through a socket pool.
2) Socket pool code tries connecting to one cassandra server and then moves to next if the connection attempt fails.
3) Connection failure if a server is down takes a long time. By default timeout is way more than 10s of seconds.
4) While query engine threads are stuck trying to connect to a dead cassandra server, for new queries query engine does not even acknowledge back to opserver (contrail-analytics-api).
5) Opserver (contrail-analytics-api) hence times out (it has a timeout of 10 seconds) and returns 403 error to REST api invokers.

With the change in this commit, query engine will not be stuck waiting for timeout connecting to the cassandra server.

Closes-PR: 1398239
Closes-Bug: 1398239

Change-Id: I8ff3047468a294123839cc40854171c0de0f0650
Delete the lb configuration files during cleanup

The issue is seen because boost::filesystem::remove
is used to delete the lb pool configuration directory.
Since the directory is not empty, it is failing.

This patch fixes the issue by calling
boost::filesystem::remove_all instead of delete
the files if the directory is not empty.

Change-Id: I48ced8fc1ef86063127ff50d42a40592082d27cb
Closes-bug: #1399241
When collector is configured in agent config file, InitGenerator is invoked before ConnectionStateManager::GetInstance(). This resuls in agent crash because of the restriction enforced by commit https://github.com/Juniper/contrail-controller/commit/03133839a5e6e11000bd339e6ec6dd0e2812334f which requires ConnectionStateManager::GetInstance() to be invoked before InitGenerator.

Fix agent initialization so that ConnectionStateManager::GetInstance() is invoked before InitGenerator.
Closes-Bug: #1399521

Change-Id: I069a485dd060cc3892c16b7fe822a2eebdb8c992
Trigger subscription from discovery client for faster convergence

o Trigger subscribe from discovery client instead of relying on the discovery client library to resend
  subscribe on ttl expiry. This is added for faster convergence.
o Discovery Server takes atleast 15secs to mark the services down, during with the discovery client(vrouter)
  can attempt connecting to older control-node's advertised by discovery server.
o Xmpp StateMachine support to trigger the connection attempt failure information to the Xmpp Clients
  to take action i.e trigger subscribe to Discovery Server.
o Add a jitter while attempting reconnects.
o Cleanup stale Xmpp and DNS servers after getting updates from discovery, this will avoid indefinite
  reconnects to Servers that are down.

Change-Id: I6f204c8ee269c2c8a31757dc10aa90bcdf3723eb
Closes-Bug: 1395099
Merge "This commit makes following change: Set default cassandra connection timeout in TSocket thrift class to 3 seconds."
Merge "Delete the lb configuration files during cleanup"
Merge "Invoke a Connect thrift call to Agent whenever the connection to Agent is re-established. This is required to ensure that Agent audit of previous port configuration happens."
Pass contrail_extensions_enabled for DBInterface.__init__

In the vnc interface, while initializing the DBInterface for a non-auth
user, contrail_extenstions_enabled was missed out.

Change-Id: I3a40248345c29e6fa6d264c7e67ac5a44b45e89a
Fix the compiler warnings in the contrail agent test cases

Change-Id: I0808192a0082d74b5800f8d4d9810197bb0730e0
Closes-bug: #1400267
Merge "When collector is configured in agent config file, InitGenerator is invoked before ConnectionStateManager::GetInstance(). This resuls in agent crash because of the restriction enforced by commit https://github.com/Juniper/contrail-controller/commit/03133839a5e6e11000bd339e6ec6dd0e2812334f which requires ConnectionStateManager::GetInstance() to be invoked before InitGenerator."
* In case of inline service instance, VRF translate action would specify
  the vrf in which route lookup happens, this translated VRF might not
  have the local vm peer path, since control node would have leaked the
  routes.
  In this case with ecmp, where one SI resides locally and other SI
  instance is on remote compute node, both forward flow and reverse flow
  should have the key set to policy enabled nexthop of the interface.
  For picking the reverse flow key, we were looking inside the composite
  NH and getting interface NH, but this interface NH would be policy
  disabled, hence reverse flow key calculated was wrong.
  Correcting the same
Closes-bug:#1394089

Change-Id: Ia07edf6997c7abffe817049b7bf536c9d47d8e13
Merge "Trigger subscription from discovery client for faster convergence"
Merge "Pass contrail_extensions_enabled for DBInterface.__init__"
Make scons build thread-safe (i.e., support -jNN)
- Avoid use of chdir=1 in Action() and/or Command()
- Prepend "cd $dir && " to relevant commands

Change-Id: I504cbaf61056cf05fa630b3aaab316a949d7797b
Merge "Fix the compiler warnings in the contrail agent test cases"
Fix for topology failure on reboot

Change-Id: Iec621a6cfcf88db2660a851edb69e7703d6ccbac
Pass logger to nova client

Pass logger to nova client class to log exceptions.

Change-Id: I02d842bd8c27909f8588ef6e030c23b3b5d951bd
put docker-py dependency in opencontrail-vrouter-netns
Closes-Bug: #1400458

Change-Id: I2a61fd0785fc903fcb80a66f88c34170d41c4135
Merge "Fix for topology failure on reboot"