-
Notifications
You must be signed in to change notification settings - Fork 343
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
Fix: libpacemaker: crm_mon --one-shot can fail during pacemaker shutdown #2902
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
160538e
API: libpacemaker: pcmk_pacemakerd_status() ipc_name arg is now const
nrwahl2 7758635
Feature: pacemakerd: New pcmk__pcmkd_state_enum2friendly() function
nrwahl2 7156177
Low: libcrmcommon: Check invalid time value in pacemakerd API reply
nrwahl2 da2e667
Low: libpacemaker: Correct default for pinged_buf in pacemakerd_event_cb
nrwahl2 62affe3
Refactor: libpacemaker: Improve return codes in pcmk__pacemakerd_status
nrwahl2 2221545
Feature: libpacemaker: pacemakerd-health message accepts state
nrwahl2 e7f2a33
Feature: libpacemaker: pcmk__pacemakerd_status() can return pcmkd state
nrwahl2 0e35bf2
Fix: libpacemaker: Memory leak in pcmk_cluster_queries.c:ipc_connect()
nrwahl2 bdc98fa
Doc: libpe_status: Replace old funcname in pe__build_rsc_list() comment
nrwahl2 d5f57ec
Refactor: libpacemaker: Clarify pointer arguments in pcmk_status.c
nrwahl2 a8697cb
Feature: libpacemaker: HTML formatter for pacemakerd-health message
nrwahl2 494e64c
Low: schemas: Copy API schemas in preparation for changes
nrwahl2 a640da0
Low: schemas: Add pacemakerd-health schema in preparation for fix
nrwahl2 92e4bc2
Low: libpacemaker: Fix pacemakerd-health XML output
nrwahl2 a6ec43e
Refactor: libpacemaker: Default to sync dispatch in pcmk_cluster_queries
nrwahl2 2d4a36c
Fix: tools: crm_mon --one-shot fails while pacemaker is shutting down
nrwahl2 a165cdf
Low: libpacemaker: Correct sys_from default in pacemakerd_health()
nrwahl2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if it would be better to replace the mainloop stuff in
pcmk_cluster_queries.c
withpcmk_ipc_dispatch_poll
when we need a timeout. That way we never have to worry about mainloop conflicts.If so, it'll go in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, as long as anything
crm_mon
needs still worksThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack.
crm_mon
already uses polling (timeout == reconnect_ms / 2) instead of sync or mainloop, for its console and daemonized modes. one-shot can continue using sync.