-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Make promotable resources configurable with cs_clone #532
Conversation
84072d3
to
4b1c05a
Compare
4b1c05a
to
b25731e
Compare
Gemfile
Outdated
@@ -17,6 +17,7 @@ end | |||
|
|||
group :system_tests do | |||
gem 'voxpupuli-acceptance', '~> 1.0', :require => false | |||
gem 'pry', :require => false |
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.
please remove this, the Gemfile is autogenerated and we want to keep it identical across our modules.
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've added this as now the acceptance tests are failing with the following error:
An error occurred while loading ./spec/acceptance/cs_primitive_spec.rb. - Did you mean?
rspec ./spec/acceptance/cs_commit_spec.rb
rspec ./spec/acceptance/cs_order_spec.rb
rspec ./spec/acceptance/cs_group_spec.rb
Failure/Error: require 'pry'
LoadError:
cannot load such file -- pry
Did you mean? pty
So this looks like something that's broken on the generator part?
b25731e
to
3d7d156
Compare
The other checks failing are with the installation of pacemaker on debian 10/11, which is not something that I touched in this PR |
Is there any plan to merge this PR? |
@agriffit79 we cannot merge it because the whole pipeline is red, this needs to be fixed first. |
The fault isn't with this PR though? The test failures seem to have been introduced in #529 ? |
Yes, this is the reason why the tests are failing, and I have no clue how to fix this. |
I submitted #540 which fixes most of the tests, but it's not been merged. Not really clear if this module is still actively maintained by anyone. |
@bastelfreak I've rebased, fixed the tests, and regenerated the references. Debian 11 is still failing, but this also seems to be the case in other PRs. |
@Vincevrp can you rebase this again please? We just merged other PRs and they had working Debian 11 tests. |
Add the attributes promotable, promoted_max and promoted_node_max to the cs_clone resource. Write unit and acceptance tests for new cs_clone resource parameters Write documentation about promotable clones
@bastelfreak there we go |
thanks for all the work! |
Add the attributes promotable, promoted_max and promoted_node_max to the cs_clone resource.
The cs_clone resource now contains all options present in the pacemaker documentation: the https://www.clusterlabs.org/pacemaker/doc/2.1/Pacemaker_Explained/singlehtml/index.html#clone-options
Pull Request (PR) description
This pr add the parameters for managing promotable resources again, but now with the cs_clone resource instead of the cs_primary resource after that those were removed in PR #499.
This Pull Request (PR) fixes the following issues
Fixes #523
The required code changes in puppet to apply these changes are the following for managing a Redis Leader Follower cluster
Old setup before #499:
Puppet code after this PR:
This will create a very simular setup, but master/slave has been renamed to promoted/unpromoted in the pacemaker documentation.