-
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
[UNTESTED] ensure mongodb is installed/configured before clustering (bsc#944417) #19
Conversation
Actually, it's not perfect as, as discussed on Friday, this will not work if the cluster has 4 nodes (since the mongodb bit will only run on 3 nodes, and the sync mark will block forever). I don't have a good idea on how to fix this :/ |
@vuntz Simple - we should add Crowbar validation to prevent clusters with even numbers of nodes > 2. |
@vuntz How about something like this? crowbar/crowbar-ha#18 |
# will have all the required packages installed and configured before | ||
# we create the pacemaker resources | ||
crowbar_pacemaker_sync_mark "sync-mongodb_before_ha" | ||
|
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.
Can you move it inside the if ha_enabled
block?
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.
Technically that's not necessary since the sync_mark
primitives are a nop if there is no cluster, but yeah, I agree that's nicer - done.
Just like with all other HA OpenStack resources, we need to prevent the resources being configured in Pacemaker before we know that all nodes have the necessary packages installed and correctly configured. This was one of the lessons learnt during analysis of: https://bugzilla.suse.com/show_bug.cgi?id=944417
797e2de
to
3fce365
Compare
@vuntz Thoughts on what we should do with this one? |
@aspiers we should get it in. |
@vuntz Agreed. |
What's the story with this PR? It's quite old, and no activity on it for a long time? If it's no longer valid, please close it. Thanks. |
travis: Use rake < 12.0.0
Enforce skip_enable option for monasca_setup 'skip_enable' option controls the creation of systemd service file for Monasca Agent. The service file is created in RPM package, so the option has to be enabled here.
Enforce skip_enable option for monasca_setup 'skip_enable' option controls the creation of systemd service file for Monasca Agent. The service file is created in RPM package, so the option has to be enabled here.
Enforce skip_enable option for monasca_setup 'skip_enable' option controls the creation of systemd service file for Monasca Agent. The service file is created in RPM package, so the option has to be enabled here.
Enforce skip_enable option for monasca_setup 'skip_enable' option controls the creation of systemd service file for Monasca Agent. The service file is created in RPM package, so the option has to be enabled here.
Enforce skip_enable option for monasca_setup 'skip_enable' option controls the creation of systemd service file for Monasca Agent. The service file is created in RPM package, so the option has to be enabled here.
MongoDB got removed in C8 |
Just like with all other HA OpenStack resources, we need to prevent the resources being configured in Pacemaker before we know that all nodes have the necessary packages installed and correctly configured.
This was one of the lessons learnt during analysis of:
https://bugzilla.suse.com/show_bug.cgi?id=944417