Contrail-Analytics-API returns some stale UVEs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Fix Committed
|
High
|
Anish Mehta | ||
R1.1 |
Fix Committed
|
High
|
Anish Mehta | ||
R2.0 |
Fix Committed
|
Undecided
|
Anish Mehta | ||
OpenContrail |
Fix Committed
|
High
|
Anish Mehta |
Bug Description
We saw an instance on a scale setup where a stale UVE was being shown.
It seemed that the generator was earlier connected to b5s33, and then moved to b5s32
But part of the UVE was still being reported out of b5s33, and that part was stale.
From: Anish Mehta <email address hidden>
Date: Monday, October 20, 2014 at 4:52 PM
To: Harshad Nakil <email address hidden>, Megh Bhatt <email address hidden>
Cc: Raj Reddy <email address hidden>, Sundaresan Rajangam <email address hidden>
Subject: Re: Mismatch in UVE data in introspect and analytics
Looks like a bug in the UVE aggregation logic.
This generator is connected to b5s32. The UVE value in redis in b5s32 is correct.
But it was previously connected to b5s33. The incorrect UVE is being reported out of there.
We should not be getting values for this UVE from b5s33. The generator is not on the NGENERATORS set on b5s33.
I’ll look into it some more.
From: Harshad Nakil <email address hidden>
Date: Monday, October 20, 2014 at 4:08 PM
To: Anish Mehta <email address hidden>, Megh Bhatt <email address hidden>
Cc: Raj Reddy <email address hidden>
Subject: Mismatch in UVE data in introspect and analytics
Down interface count is wrong
http://
http://
Regards
-Harshad
Changed in juniperopenstack: | |
importance: | Undecided → High |
assignee: | nobody → Anish Mehta (amehta00) |
tags: | added: analytics |
Reviewed: https:/ /review. opencontrail. org/3968 github. org/Juniper/ contrail- controller/ commit/ 5331148bd3f6a8d ea5faf433d72115 3d372c004f
Committed: http://
Submitter: Zuul
Branch: master
commit 5331148bd3f6a8d ea5faf433d72115 3d372c004f
Author: Anish Mehta <email address hidden>
Date: Tue Oct 21 14:00:17 2014 -0700
contrail-collector does UVE Updates based on messages from generators. analytics- api to return stale values for some UVE attributes.
It also deletes UVE values from redis when generators disconnect.
We saw an instance where updates seems to happen just after a disconnect.
This causes contrail-
Before the UVEUpdate script writes updates to redis, it should check that the generator
for which the update is being done is still connected (via the NGENERATORS set in redis)
Change-Id: If376bca64f5a8b a5be9eaa72a71d4 7a275b6eb20
Closes-Bug: #1383896