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

Api to ignore hosts #110

Closed
wants to merge 1 commit into from
Closed

Conversation

otherpirate
Copy link

This PR adds 3 news API routes:

  • /skip-host/<hostname> Adds host to MySQL ignore host list
  • /recover-host/<hostname> Remove host from MySQL ignore host list
  • /skipped-hosts List all hosts in MySQL ignore host list

Working on tests...

Closes: #28

Copy link

@shlomi-noach shlomi-noach left a comment

Choose a reason for hiding this comment

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

Thank you for looking into this!
I'm afraid the solution offered here suggests hard coding configuration files with hostnames -- I'd like to avoid that; state should be either be communicated through the raft setup (when using raft) or written to the MySQL backend (when using MySQL). Reasons:

  • Only the active freno node receives this API call; what happens to all the other nodes?
  • Our next puppet run would overwrite any changes to the config file

I'm curious if you are using freno and need to solve the problem? If so, I advise using http-checks.

@meiji163
Copy link
Contributor

Closing this as it is implemented in #149

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.

Be able to ignore a specific host
3 participants