analytics_data_ttl value overflow

Bug #1455282 reported by Megh Bhatt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Critical
Megh Bhatt
R2.20
Fix Committed
Critical
Megh Bhatt

Bug Description

analytics_data_ttl value in contrail-collector is getting overflowed when it is greater than 165 since db handler code is converting it to seconds from hours two times. This leads to failure in inserting the data into cassandra due to negative ttl.

Tags: analytics
Megh Bhatt (meghb)
Changed in juniperopenstack:
importance: Undecided → Critical
assignee: nobody → Megh Bhatt (meghb)
milestone: none → r2.20-fcs
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : R2.20

Review in progress for https://review.opencontrail.org/10397
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/10397
Committed: http://github.org/Juniper/contrail-controller/commit/a5a3bee82336ca56f509e841230a274eb7d8d841
Submitter: Zuul
Branch: R2.20

commit a5a3bee82336ca56f509e841230a274eb7d8d841
Author: Megh Bhatt <email address hidden>
Date: Thu May 14 19:10:56 2015 -0700

Fix overflow of analytics_ttl in db handler, do not multiply by
3600 in constructor since db handler get ttl from map already does it.
Closes-Bug: #1455282

Change-Id: I3943fddfa478a9cff218d8f6b81f1bfbe1c590ad

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

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

Raj Reddy (rajreddy)
Changed in juniperopenstack:
milestone: r2.20-fcs → r2.30-fcs
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

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

commit 675b163d34ca533809a10daf77bc29d3156d45ff
Author: Megh Bhatt <email address hidden>
Date: Thu May 14 19:10:56 2015 -0700

Fix overflow of analytics_ttl in db handler, do not multiply by
3600 in constructor since db handler get ttl from map already does it.
Closes-Bug: #1455282

Change-Id: I3943fddfa478a9cff218d8f6b81f1bfbe1c590ad
(cherry picked from commit a5a3bee82336ca56f509e841230a274eb7d8d841)

Changed in juniperopenstack:
status: New → Fix Committed
Megh Bhatt (meghb)
information type: Proprietary → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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