This bug adds the ModuleId from the Messages into the field
 names stats table, so that it can be queried to get a list
 of ModuleId's occuring in any time range.

Closes-Bug:#1360414

Change-Id: I8256ff794850bd321ad8fe543fa83b8356c5f21b
Enable build for device-manager from config directory

Change-Id: I3f6bec0550641ed38eaf56096b1daa380ee2623b
missing Import SandeshLevel

related bug: #1382569

Change-Id: I9f8ca5896a4de20c243ca9c4fc7374497fcb2843
Handle query error in get_query_result()

Problem:
get_query_result() in opserver_util.py doesn't handle error properly and keeps
retrying/looping till the 'progress' is 100. contrail-logs script uses get_query_result()
to read the query result and hence gets stuck in case of error.

Fix:
If contrail-query-engine returns negative value in 'progress', print error message and return

Side-effect:
This change caused test_00_nocassandra test case failure. verify_collector_obj_count() should
not be called for test_00_nocassandra test as cassandra would not be started and therefore query-engine
would return error. This test case was passing because the get_query_result() was returning [{}] on
time out and assert(len(res) > 0) passed. With the error handling code in place, get_query_result()
returns [] and hence this test case failed. Fixing this test by not calling verify_collector_obj_count().

Change-Id: I2313dd8185b3bfc0dae1363378711508752b00c5
Closes-Bug: #1383602
Remove flushing of UVE cache from contrail-analytics.rules

Problem:
  When contrail-collector service is restarted, supervisor stops and then starts the contrail-collector service.
  contrail-analytics-nodemgr receives event "PROCESS_STATE_STOPPED" for process "contrail-collector" when
  supervisor stops the contrail-collector service. The following rule in contrial-analytics.rules causes
  contrail-analytics-nodemgr to flush the UVE cache in redis on receiving the event "PROCESS_STATE_STOPPED".

  {"processname": "contrail-collector", "process_state": "PROCESS_STATE_STOPPED",
   "action": "redis-cli -n 1 eval \"redis.call('flushdb'); redis.log(redis.LOG_NOTICE,'EV_STOP - Nodemgr Flushing Redis UVE')\" 0"}

  There is a race condition between contrail-analytics-nodemgr flushing the UVE cache in redis upon processing
  "PROCESS_STATE_STOPPED" event and contrail-collector updating UVE in redis after restart. i.e.,
  contrail-analytics-nodemgr may flush the UVE cache after contrail-collector writes UVE in redis
  resulting in loss of UVE data.

Fix:
  contrail-collector flushes the UVE cache during initialization. Therefore, remove the rules in contrail-analytics.rules
  whose action triggers flushing of UVE cache in redis.

Impact:
  If contrail-collector service is stopped/entered FATAL state, UVE query would return stale data till contrail-discovery
  removes the collector from publisher list on ttl expiry.

Change-Id: I0fe2cf7e297313e2e061222e78bc3221c6bc5196
Closes-Bug: #1383705
Use correct variable name while deleting routing instance. This could cause failure to delete routing instance from internal memory of schema transformer.

Change-Id: I78377ab4c7a9a11c3c110e77db6acd0cf463a8a1
Closes-Bug: 1383520
(cherry picked from commit f2df269546f01d81b81107711952601ca6aa6866)
Limits fields that can be updated

This patch limits the fields that can
be updated during update operations.
currenlty limits to enable and description
field.

Change-Id: I39883d9010397f0a82d99bbe3e09b4d8a1dc1d31
Partial-Bugs: #1378376
Merge "Enable build for device-manager from config directory"
Merge "missing Import SandeshLevel"
Merge "Handle query error in get_query_result()"
Merge "Limits fields that can be updated"
Test to check the default gateway ip allocated

Change-Id: Iebbcaef1f819f51e4c4b26bee50982d87777ee19
Fix libtbb_debug issue
- Leverage new UseSystemTBB() method to use system libtbb instead of
  libtbb_debug on certain systems.

Change-Id: Ic8cb4dda601999fe3bf75cdd7b48e4d6f3d1e1d2
Add config knob for cgitb traceback logs

Adds "trace_file" a configuration knob to python daemons
that defaults to previouly hardcoded value

Exceptions while accessing this log file are now cathed
in vnc_openstack, in order to avoid side effects that are
described in attached bug.

Api_server extension loading is also changed to provide
sandesh logger to vnc_openstack. vnc_openstack exceptions
messages will be logged with api-server logs (for now,
they were only printed to local trace_file and/or stdout).

Partial-Bug: #1335062

Change-Id: Id2d28e5e2ef65c93c87b080b53e838ce65c0416d
Merge "Use correct variable name while deleting routing instance. This could cause failure to delete routing instance from internal memory of schema transformer."
Merge "This bug adds the ModuleId from the Messages into the field  names stats table, so that it can be queried to get a list  of ModuleId's occuring in any time range."
Merge "Remove flushing of UVE cache from contrail-analytics.rules"
Merge "Fix libtbb_debug issue - Leverage new UseSystemTBB() method to use system libtbb instead of   libtbb_debug on certain systems."
Merge "Add config knob for cgitb traceback logs"
Fix StringIO import issue in svc-monitor

Commit 5930f33bc32743250d5a61c3b1f58ce239e053ad introduced
import of cStringIO.StringIO in svc-monitor, but stringIO
is redefined in another import.

Additionnaly, another couple of nits are fixed.

neutron_plugin_interface is also changed to set api_server_ip to
localhost if api-server.listen_ip_addr is 0.0.0.0 (the default)

Change-Id: I0608ace6953c77130beac26b7d48de72674fc6ba
Partial-Bug: #1335062