-
Notifications
You must be signed in to change notification settings - Fork 87
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
ha: Fix postgresql and rabbitmq crm services #1029
Merged
s-t-e-v-e-n-k
merged 2 commits into
crowbar:master
from
cmurphy:fix_pacemaker_resource_restart
Jul 10, 2017
Merged
ha: Fix postgresql and rabbitmq crm services #1029
s-t-e-v-e-n-k
merged 2 commits into
crowbar:master
from
cmurphy:fix_pacemaker_resource_restart
Jul 10, 2017
Conversation
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
cmurphy
changed the title
ha: Fix pacemaker resource restart
ha: Fix postgresql and rabbitmq crm services
Jul 5, 2017
Without this patch, the rabbitmq OCF resource agent cannot be restarted by crowbar. When running in HA mode, if the service is notified to restart, both controller nodes will claim that the service is not running. Since it is managed as a special OCF resource agent instead of as a systemd resource, it is necessary to use crm to check whether it is running and to restart it. Moreover, the rabbitmq OCF is named 'rabbitmq' even though the systemd service is named 'rabbitmq-server'. This patch adds the necessary fields to the 'supports' parameter for the rabbitmq service so that it can be properly restarted if necessary. This was not noticed previously because the configuration options for rabbitmq are rarely changed and so rabbitmq rarely requires a restart. However, the resource limits management feature added in pr#974 requires potentially multiple service restarts after initial deployment as parameters are tuned over time, so we need to make sure crowbar is capable of it.
Without this patch, the postgresql OCF resource agent cannot be restarted by crowbar. When running in HA mode, if the service is notified to restart, both controller nodes will claim that the service is not running. Since it is managed as a special OCF resource agent instead of as a systemd resource, it is necessary to use crm to check whether it is running and to restart it. This patch sets the restart_crm_resource field in the 'supports' parameter for the postgresql service so that it can be properly restarted if necessary. This was not noticed previously because the configuration options for postgresql are rarely changed and so postgresql rarely requires a restart. However, the resource limits management feature added in pr#974 requires potentially multiple service restarts after initial deployment as parameters are tuned over time, so we need to make sure crowbar is capable of it.
dirkmueller
force-pushed
the
fix_pacemaker_resource_restart
branch
from
July 5, 2017 14:36
a0d13b0
to
b492d7d
Compare
(rebased to retrigger gating) |
dirkmueller
approved these changes
Jul 5, 2017
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.
LGTM
s-t-e-v-e-n-k
approved these changes
Jul 10, 2017
This was referenced Jul 18, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Needed for #974