Sample counts getting updated for other elements in struct when calculating derived stats.
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_
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_
I also verified this issue while having different sample counts.
This issue is seen in both R4.1 and R4.0
information type: | Proprietary → Public |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Review in progress for https:/ /review. opencontrail. org/43150
Submitter: Parth Sarupria (<email address hidden>)