Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple peer connected events when new peer probe is done in managed cluster #649

Merged
merged 1 commit into from May 28, 2018

Conversation

GowthamShanmugam
Copy link
Contributor

When new peer probe is done then all nodes raises peer connected info
event, so multiple events are displayed in UI. As per logic in
Tendrl/node-agent#817 first non-info alert
raised then it will start comparing with an old alert to avoid duplicate
events but here actually info alert is raised first, so node-agent handler
does not have any old alert to avoid duplicate. And also we have a check to
avoid first info alert but it is wrong None == "" won't match.
I have corrected the logic here.

bugzilla: 1579937
tendrl-bug-id: #648

Signed-off-by: GowthamShanmugasundaram gshanmug@redhat.com

… cluster

When new peer probe is done then all nodes raises peer connected info
event, so multiple events are displayed in UI. As per logic in
Tendrl/node-agent#817 first non-info alert
raised then it will start compare with old alert to avoid duplicate
events but here actaully info alert is raised first, so node-agent handlert
does not have any old alert to avoid duplicate. And also we have a check to
avoid first info alert but it is wrong None == "" won't match.
I have corrected the logic here.

bugzilla: 1579937
tendrl-bug-id: Tendrl#648

Signed-off-by: GowthamShanmugasundaram <gshanmug@redhat.com>
@GowthamShanmugam GowthamShanmugam requested review from shtripat and a team as code owners May 25, 2018 13:45
@@ -157,7 +157,7 @@ def run(self):
current_status = peers[
'peer%s.connected' % index
]
if stored_peer_status != "" and \
if stored_peer_status and \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None == "" won't match

@GowthamShanmugam
Copy link
Contributor Author

@shtripat @r0h4n @nthomas-redhat please review

@r0h4n r0h4n merged commit 3bbfea6 into Tendrl:master May 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants