Sample counts getting updated for other elements in struct when calculating derived stats.

Bug #1771807 reported by Parth Sarupria
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
New
Undecided
Unassigned
R4.1
Fix Committed
Undecided
Unassigned

Bug Description

While calculating the AVG derived stats for dial metrics for few attributes in the struct, the sample count value of the remaining attributes of the struct is also getting updated which gives the wrong derived average values when AVG derived stats in calculated for the remaining attributes.
For Example,
struct SDWANMetrics_dial {
      1: optional u64 txbps
      2: optional u64 rxbps
      3: optional u64 rtt
      4: optional u64 pkt_loss
      5: optional u64 rtt_jitter
      6: optional u64 egress_jitter
      7: optional u64 ingress_jitter
      8: optional u64 sampling_percentage
      9: optional u64 score
}
in First attempt, we update the values for “sampling_percentage” (8: optional u64 sampling_percentage) 10 times. (10 samples)
in Second attempt we update the values for rtt to 100, 10 times each (10 samples). The averaged derived stats output in the UVE query output for the rtt in the defined period should be 100. ((10 samples * 100)/ 10 samples)= 100.
But the output is shown as 50, which is possible only when samples are set to 20 (10 more samples for "rtt" are accounted because of the 10 samples of "sampling_percentage" )
I also verified this issue while having different sample counts.
This issue is seen in both R4.1 and R4.0

Tags: analytics
information type: Proprietary → Public
description: updated
description: updated
description: updated
description: updated
description: updated
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/43150
Submitter: Parth Sarupria (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/43158
Submitter: Parth Sarupria (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/43158
Committed: http://github.com/Juniper/contrail-controller/commit/e780eb4d3c5dad32856fb4173188d926a3f55b05
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit e780eb4d3c5dad32856fb4173188d926a3f55b05
Author: Parth Sarupria <email address hidden>
Date: Fri May 18 01:12:07 2018 -0700

Sample counts getting updated for other elements in struct when calculating AVG derived stats

While calculating the AVG derived stats for dial metrics
for few attributes in the struct, the sample count value
of the remaining attributes of the struct is also
getting updated which gives the wrong derived
average values when AVG derived stats in
calculated for the remaining attributes
This fix is to avoid this issue.

Change-Id: I33563050e8551f580a8f952652e1caa3d183c7b9
Closes-Bug: #1771807

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.