Replace bottle.abort calls with _raise_contrail_exception, which will send the exceptions in the right format.

Change-Id: I9f864aa85d459ff9f51900115de38f1284cb2fda
Partial-Bug: 1363304
Fixes for contrail-status:
1. Report 'STARTING' from supervisorctl as 'initializing' in
   contrail-status
2. Try to extract node UVE only from daemons implementing it.
   If we do not get node UVE from these daemons report state as
   'initializing'. The above changes will make sure that the
   contrail-status reported state will move to 'active' only
   after the process has initialized properly.

Change-Id: I6c588d46d488b7b980fa2b3c502479ae6f21b2c0
Fix concurrency issue in DBEntryBase removal

Some bgp tests used to fail in rare cases because a BgpTable was not
empty after the test ended.  The core file showed that the BgpTable
had a route which was marked deleted and was not on the change list.
The BgpRoute had no BgpPaths and no DBState associated with it either.
The core also showed that all DBPartitions' remove queues were empty
and all DBTablePartBases' change lists were also empty.

The root cause was a concurrency issue in DBEntryBase removal.  If
DBEntryBase::ClearState and DBTablePartBase::RunNotify were working
on the same DBEntryBase, it could so happen that ClearState decided
not to enqueue the entry for removal becuase it saw that the entry
was still onlist, and RunNotify decided not to remove the entry as
it saw that the entry had non-empty DBState.

Fix is to modify RunNotify so that the OnList bit for an entry gets
cleared before checking if the entry is eligible for removal. The
dbstate_mutex ensures that only one of the two routines takes care
of removing the entry.

Change-Id: I10e9822f1a100a9739624f3e49c05ccf89018a34
Add ProtobufServer tests. Free receive buffer and protobuf message
in HandleReceive in ProtobufServer. Protect UdpServer pending
buffer array via mutex.

Change-Id: Ibcb7de7a06caa9746d32d66172091641599304bb
Reeavaluate all connected networks when policy is updated
Also added a test case for the same

Closes-Bug: 1366693
Change-Id: I881c165d289e8f1d16fa71d19bae08f954f039bd
Closes-bug : 1365539
Send cpu info now in UveVirtualMachineAgentTrace also (It is already being sent as part of VirtualMachineStatsTrace)

Change-Id: I0f4ae64d8273a65bb363118f80cec88cdf0a4b11
Add more information to BGP open message string

Change-Id: I1d17206f90c696e9ed8ca5cf7b616934d9368a60
add unittest for put on wrong type with same uuid

Change-Id: Ia335c8d898a1e33ae6943d5b103f445f50e0b206
Merge "Replace bottle.abort calls with _raise_contrail_exception, which will send the exceptions in the right format."
Merge "Fixes for contrail-status: 1. Report 'STARTING' from supervisorctl as 'initializing' in    contrail-status 2. Try to extract node UVE only from daemons implementing it.    If we do not get node UVE from these daemons report state as    'initializing'. The above changes will make sure that the    contrail-status reported state will move to 'active' only    after the process has initialized properly."
In function _raise_contrail_exception, exceptions.BadRequest is used
instead of 'BadRequest' as a string

This bug is introduced because of this https://review.opencontrail.org/#/c/2568/

Change-Id: I8900387b16630e72dcf07c4827f13d772b20175c
Closes-bug: #1368536
Merge "Fix concurrency issue in DBEntryBase removal"
fixing gdb macro file to define document after command define.

Change-Id: If4edbe45afb79920d31bd4a839546da9f8b95795
Merge "Add ProtobufServer tests. Free receive buffer and protobuf message in HandleReceive in ProtobufServer. Protect UdpServer pending buffer array via mutex."
Merge "Reeavaluate all connected networks when policy is updated Also added a test case for the same"
correcting the instance id for FlowHandler task to -1, so that separate instance
doesn't run in parallel.

adding waitfor idle in Teardown for test_pkt_fip to avoid test case crash due
to pending clean up.

Change-Id: Ie6d87dac353c2833a3128e392ab883e25c33bdaf
Merge "Add more information to BGP open message string"
Merge "Closes-bug : 1365539 Send cpu info now in UveVirtualMachineAgentTrace also (It is already being sent as part of VirtualMachineStatsTrace)"
Merge "add unittest for put on wrong type with same uuid"
Merge "fixing gdb macro file to define document after command define."