PR:2209&2922 - Database Purge changes

Change-Id: Iadee42bb930f4d0d3d5c7e0948e8b30e90348b30
Merge "Fix for #1343824 - fix log.py to send correct where clause in json for object-log query when where-clause options such as message-type, source is specified - throw error when where clause is specified for object-values query - fix query-engine to not complain when object-id is not specified for object-log query with where-clause"
Merge "Use boost::uuids::uuid stream operators instead of boost::uuid:: string_generator to convert received xml string to uuid to avoid handling invalid uuid string exception. Use stringstream fail to determine if invalid uuid string was passed and log an error."
Fix for bug #1346596 : UVEs do not sync correctly in some HA cases

Change-Id: I9326f81a949d13ab805a2e0da169b5cee4681748
On network creation raise Network Already exists error if network is
already created.

Change-Id: Iffcf5ad50d3fc2f2183b2559d8319d866759dfee
* Delete service vlan nh, mpls label upon interface deactivation
* Test case for same

Change-Id: I72c79592b580558b801050c7dc1947c585b55af2
Merge "* Enable policy on service interface"
option to add floating ip dns entry in dashed ip notation

Change-Id: I20deb9110837ed3484cb48ae2dbc2097a7ca05b5
Remove print of tenant_name when not available

This patch removes the prin of the tenant_name
when it is not available which causes a
traceback.

Change-Id: I7f8923a1dbe986216be1cee43ade5e353efe6876
Closes-bug: #1346817
* Apply vrf translate rule on egress traffic also, so that RPF
  information is setup properly
* Test case for same

Change-Id: I0a0facff15f978c2499453c36dc758237fe8c35a
http: HttpClient: add ClearCallback()

Added to prevent HttpClient from calling a registered callback method. Useful
ie. when you'd like to abandon the request.

Change-Id: If5a8147f155b704515ea6b052100da2e54e331d8
Signed-off-by: Bartlomiej Wolowiec <bartlomiej.wolowiec@codilime.com>
Signed-off-by: Mateusz Zalega <mateusz.zalega@codilime.com>
Make xmmp tests more robust.

Following changes are implemented:

- Fix race condition in updating XmppServer connection count
- Add xmpp peer configured/negotiated hold times to introspect
- Lay groundwork for xmpp hold time negotiation
- Use consistent APIs to clear one or all compute node connections
- Remove unused method XmppChannelCleanup from XmppChannel
- Simplify connection management code in XmppServer and XmppClient
- Move xmpp_session_test from flaky to normal

Also make a number of cosmetic changes to modified files.

Change-Id: If8720c4ed9c0755ec30e1b096ae5b8a9536c3381
- The inconsistency in UVE is due to failure in UVE deletion upon generator disconnect.
  In delrequest.lua, db # is not set before querying the UVE info from redis for deletion
  and this causes the UVEs originated by the generator to remain in redis even after disconnection.
- Added a nil check for ‘href’ attribute in decoded json message
Closes-Bug: #1346176

Change-Id: I9416f7f6c8f68629e21bf5c3b4e978d183dd046d
Fix query engine crash due to corruption caused by calling GetUint() instead of GetUint64()

Change-Id: Icf8ed9763028d009ea37cb3fb0585300fa96bdc6
When the collector service is restarted, contrail-analytics.rules takes care of flushing the UVE db in redis.
However, when supervisor-analytics service is restarted, then old UVEs remain in the redis.
This is because redis is no longer part of the supervisor-analytics.
Therefore, flush the UVE db from redis when collector connects to redis for the first time.
Closes-Bug: #1347133

Change-Id: If6a455f074b34499827201793fa20d7c7f3c91ea
Demote bgp_config_manager_test to flaky list.

Change-Id: I08f5f861d8ff6a21ecf780a7b92d6cff5a426229
Report traceback with details only in the case where unexpected exception occurs in api-server
(i.e ignore reporting tracebacks details for bottle.abort). Add unit test for same.

Fixes bug: 1346459

Change-Id: I5dbb2387d4046210958191845f2a66675284ad55
Use cluster-id if provided as db_prefix for api-server/schema-t/svc-mon

Change-Id: Ibaa6f30dccb212a831290a3b9c7dbd312c6872f0
Fix couple of issues related to bgp_server_test.

Following changes are implemented:

- Shutdown the TcpServer right away instead of doing it from Config task
- Tweak CloseDeferred test to work around a race condition in the test

Change-Id: I55f54c415f399a5cc7b1d0bd6743d24bd44cc06f
Merge "On network creation raise Network Already exists error if network is already created."