Collector back pressure not working

Bug #1528380 reported by Megh Bhatt
34
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
High
Megh Bhatt
R2.21.x
Fix Committed
High
Megh Bhatt
R2.22.x
Fix Committed
High
Megh Bhatt
Trunk
Fix Committed
High
Megh Bhatt

Bug Description

contrail-collector back pressure mechanism to handle generators overwhelming collector is not working. Issue is that the watermark levels are marked as INVALID and the locally cached drop levels are initialized also at INVALID. So the drop levels don't change and hence the defer callbacks for both the queue's are not called.

Tags: analytics
Megh Bhatt (meghb)
Changed in juniperopenstack:
assignee: nobody → Megh Bhatt (meghb)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/15957
Submitter: Megh Bhatt (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/15958
Submitter: Megh Bhatt (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/15957
Committed: http://github.org/Juniper/contrail-controller/commit/7e4ad733093a599a00a087c02edb434150387bd8
Submitter: Zuul
Branch: R2.20

commit 7e4ad733093a599a00a087c02edb434150387bd8
Author: Megh Bhatt <email address hidden>
Date: Mon Dec 21 15:19:00 2015 -0800

Fix contrail-collector back pressure mechanism

contrail-collector DB queue back presssure mechanism was not
working since the DB drop level is initialized to INVALID and
even the water marks levels are INVALID and hence the defer/undefer
callbacks are not called.

Change-Id: Ib28141a69aeed3c4ad6f50abbaed2a285e3e7db2
Partial-Bug: #1528380

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/16087
Submitter: Raj Reddy (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/15958
Committed: http://github.org/Juniper/contrail-sandesh/commit/68c2ef7d6b8e6adc36f6003e0bcb97bab310750d
Submitter: Zuul
Branch: R2.20

commit 68c2ef7d6b8e6adc36f6003e0bcb97bab310750d
Author: Megh Bhatt <email address hidden>
Date: Mon Dec 21 15:25:53 2015 -0800

Fix contrail-collector back pressure mechanism

contrail-collector SM queue back presssure mechanism was not
working since the SM drop level is initialized to INVALID and
even the water marks levels are INVALID and hence the defer/undefer
callbacks are not called.

Change-Id: Ieaf65d3d77356b9ac471e9479a1fb743c16fe6a1
Closes-Bug: #1528380

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/16122
Submitter: Raj Reddy (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/16087
Committed: http://github.org/Juniper/contrail-controller/commit/b425cf67345d1f40954a8b2aa56076c9fc2329fe
Submitter: Zuul
Branch: master

commit b425cf67345d1f40954a8b2aa56076c9fc2329fe
Author: Megh Bhatt <email address hidden>
Date: Mon Dec 21 15:19:00 2015 -0800

Fix contrail-collector back pressure mechanism

contrail-collector DB queue back presssure mechanism was not
working since the DB drop level is initialized to INVALID and
even the water marks levels are INVALID and hence the defer/undefer
callbacks are not called.

Change-Id: Ib28141a69aeed3c4ad6f50abbaed2a285e3e7db2
Partial-Bug: #1528380
(cherry picked from commit 7e4ad733093a599a00a087c02edb434150387bd8)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/16122
Committed: http://github.org/Juniper/contrail-sandesh/commit/16f4690ce6e57ff7681905c8915fee85991cd5b0
Submitter: Zuul
Branch: master

commit 16f4690ce6e57ff7681905c8915fee85991cd5b0
Author: Megh Bhatt <email address hidden>
Date: Mon Dec 21 15:25:53 2015 -0800

Fix contrail-collector back pressure mechanism

contrail-collector SM queue back presssure mechanism was not
working since the SM drop level is initialized to INVALID and
even the water marks levels are INVALID and hence the defer/undefer
callbacks are not called.

Change-Id: Ieaf65d3d77356b9ac471e9479a1fb743c16fe6a1
Closes-Bug: #1528380
(cherry picked from commit 68c2ef7d6b8e6adc36f6003e0bcb97bab310750d)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.21.x

Review in progress for https://review.opencontrail.org/16277
Submitter: Raj Reddy (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/16278
Submitter: Raj Reddy (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/16277
Committed: http://github.org/Juniper/contrail-controller/commit/a3ac576d26778e6c8358f22255def693166c8434
Submitter: Zuul
Branch: R2.21.x

commit a3ac576d26778e6c8358f22255def693166c8434
Author: Megh Bhatt <email address hidden>
Date: Mon Dec 21 15:19:00 2015 -0800

Fix contrail-collector back pressure mechanism

contrail-collector DB queue back presssure mechanism was not
working since the DB drop level is initialized to INVALID and
even the water marks levels are INVALID and hence the defer/undefer
callbacks are not called.

Change-Id: Ib28141a69aeed3c4ad6f50abbaed2a285e3e7db2
Partial-Bug: #1528380
(cherry picked from commit 7e4ad733093a599a00a087c02edb434150387bd8)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/16278
Committed: http://github.org/Juniper/contrail-sandesh/commit/75b2d88ca00c85889f51114c124747207ddaf459
Submitter: Zuul
Branch: R2.21.x

commit 75b2d88ca00c85889f51114c124747207ddaf459
Author: Megh Bhatt <email address hidden>
Date: Mon Dec 21 15:25:53 2015 -0800

Fix contrail-collector back pressure mechanism

contrail-collector SM queue back presssure mechanism was not
working since the SM drop level is initialized to INVALID and
even the water marks levels are INVALID and hence the defer/undefer
callbacks are not called.

Change-Id: Ieaf65d3d77356b9ac471e9479a1fb743c16fe6a1
Closes-Bug: #1528380
(cherry picked from commit 68c2ef7d6b8e6adc36f6003e0bcb97bab310750d)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22.x

Review in progress for https://review.opencontrail.org/16680
Submitter: Vinay Vithal Mahuli (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/16686
Submitter: Vinay Vithal Mahuli (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged
Download full text (8.5 KiB)

Reviewed: https://review.opencontrail.org/16686
Committed: http://github.org/Juniper/contrail-controller/commit/156ad0b760f9b532572116d813d7afa695555bea
Submitter: Zuul
Branch: R2.22.x

commit 156ad0b760f9b532572116d813d7afa695555bea
Author: Atul Moghe <email address hidden>
Date: Mon Dec 21 14:29:14 2015 -0800

Cherry pick controller commits from R2.20 to R2.22.x
updating version.info from 2.22 to 2.23 in 2.20 branch
Closes-Bug:#1528370

Change-Id: Ic649422979a926cc5f5b8457c01610b848dc206b

Storage stats daemon fix

Partial-Bug: #1528327
Fixed latency monitor code based on the Ceph 0.94.3 version.
Fixed issues in OSD throughput/IOPs calculation.
Updated code based on the latest Sandesh apis.

Change-Id: I12caf951f84c8b213b1b5ec01371bb68b4c48cb3

Fix contrail-collector back pressure mechanism

contrail-collector DB queue back presssure mechanism was not
working since the DB drop level is initialized to INVALID and
even the water marks levels are INVALID and hence the defer/undefer
callbacks are not called.

Change-Id: Ib28141a69aeed3c4ad6f50abbaed2a285e3e7db2
Partial-Bug: #1528380

Fix Agent crash for flow index tree management

Issue:
------
During a flow index change vrouter-agent triggers a delete
on index tree using new flow handle instead of currently
held flow_handle resulting in flow entry getting associated
to two slots in the flow index tree, which further on flow
entry delete due to aging or eviction never releases the
slot for old flow handle, causing failures for further
insertions in the flow index tree

Fix:
----
Avoid taking flow handle as argument to DeleteByIndex and
use the currently associated flow_handle to remove from tree
Adding assert in DeleteByIndex to catch delete failure
Avoid doing delete from index tree in code paths other than
flow entry index update of flow entry delete.

Add logic for KSync Sock User to Mock vrouter behavior
returning index for an entry if it is already allocated
instead of allocating a new one.

Closes-Bug: 1527425
Change-Id: I10e77fb59650acfdd924a5f1d35d6b8dea03a3f0

Fix discovery dependency issue. Originally made in master branch
via https://review.opencontrail.org/#/c/15749

Change-Id: I5d874de3714074c66fa73bfd7c9119772dc681fd
Partial-Bug: #1530186

Avoid calling get_routing_instances on VN object

Calling get_routing_instances could trigger another read of the VN
if the VN has no routing instance. This is not only inefficient, but
could also cause exception if the VN has disappeared. We can avoid
this by calling getattr.

Change-Id: Ie5500585b9e6c578576276c2c04ec03f32c75112
Partial-Bug: 1528950

Fix Centos 65 agent compilation issues.
Closes-Bug: #1532159

Change-Id: Ia8b77619c80737000d5bd949534c9e0a16967359

Closes-Bug: #1524063, contrail-status is showing contrail-web-ui, even it is not configured, in case of SMLite

Change-Id: I55afc19140b1ce52b3b529a644124705de5ce6a8

Fix a corner case with routing instance delete

Sequence of event that causes the crash
1. Static route config deleted
2. Static Route maanger triggers resolve_trigger_ to re-evaluate static
route config
3. Before the resolve trigger is invoked routing instance is deleted

Resolve trigger calls ProcessStaticRouteConfi...

Read more...

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/16680
Committed: http://github.org/Juniper/contrail-sandesh/commit/b5352bad7a35f4c3d9629c1f94c249979ff52458
Submitter: Zuul
Branch: R2.22.x

commit b5352bad7a35f4c3d9629c1f94c249979ff52458
Author: Megh Bhatt <email address hidden>
Date: Mon Dec 21 15:25:53 2015 -0800

Fix contrail-collector back pressure mechanism

contrail-collector SM queue back presssure mechanism was not
working since the SM drop level is initialized to INVALID and
even the water marks levels are INVALID and hence the defer/undefer
callbacks are not called.

Change-Id: Ieaf65d3d77356b9ac471e9479a1fb743c16fe6a1
Closes-Bug: #1528380

information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/17937
Submitter: Megh Bhatt (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/17937
Committed: http://github.org/Juniper/contrail-sandesh/commit/08d4ff374cb61f3758ff77af22a022a238722edd
Submitter: Zuul
Branch: master

commit 08d4ff374cb61f3758ff77af22a022a238722edd
Author: Megh Bhatt <email address hidden>
Date: Fri Feb 26 16:34:25 2016 -0800

Unit test to cover the issue reported in Bug #1528380

Add unit test that checks that even if the sandesh state machine queue
watermark level is initialized to INVALID the sandesh session defer
reader callback is called.

Change-Id: Iaaf0b72f6a5145fa6f3f02bfd425fc9a331f42e7
Closes-Bug: #1550562

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.