Skip to content

Conversation

@smanpathak
Copy link

This change adds logic to mark host up on notification.

self.rc_util.syslogout(jsonData, syslog.LOG_INFO)

# Node is up
elif jsonData.get("type") == "rscGroup" and \

Choose a reason for hiding this comment

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

Sachin, do we need a _check_repeated_notify here similar to the host-down case? or is this on purpose to retry enabling service on failure?

Copy link
Author

Choose a reason for hiding this comment

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

I started with that approach. Unfortunately, Masakari design expects to have 1 notification per host. Their duplicate checks for notification query based on host id. What it should be doing instead is query based on host id and event type.
So I opted for this approach instead.
I think we will need to change that logic anyway to handle multiple failures on same host.

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.

3 participants