-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
Implement retries for MongoDB shell commands #217
Conversation
Retries for MongoDB shell commands could be useful in some cases: * unstable connectivity * when replica or sharding initialization is in process and you should wait some time till its end
If authentication and replica set are enabled we can't create users before replica initialization and we also can't configure replica from any host except localhost.
Key moments: * Adds Support for Keyfile Key: upstream commit 7bbcff8024152b4ec9ce53dbba00024523707162 * Remove useless openstack::mongo class * Add upstream changes for 217 pull request (voxpupuli/puppet-mongodb#217): - Implement retries for MongoDB shell commands - Initiate replica set creation from localhost if auth is enabled * Improve support for MongoDB authentication voxpupuli/puppet-mongodb#194 * Fix lint errors (actually fixed in upstream) * Add noop tests for MongoDB parameters Implements: blueprint upgrade-openstack-puppet-modules Closes-bug: #1383639 Related-bug: #1308990 Change-Id: I3b9cbd35bf46483782d7b7eb7ef030fd31fdd544
Implement retries for MongoDB shell commands
I know this is too late, but it would have been great to have unit & functional testing. |
Emilien, I think I can provide solution for this but it can look a little bit
what do you think? P.S. this solution is used in Fuel deployments and I can prepare (and I 2015-08-26 17:08 GMT+03:00 Emilien Macchi notifications@github.com:
Thanks, Ivan Berezovskiy slack: iberezovskiy |
@iberezovskiy hi, the new proposal sounds interesting. What we are dealing with here is an interface breakage however and I'm inclined to say reverting the (breaking) code is the best option today. Then perhaps we can post a new patch with the more "revolutionary" changes that you are proposing? |
Dan Prince, If it broke something I am agree to revert this change, but please, do not 2015-08-26 17:55 GMT+03:00 Dan Prince notifications@github.com:
Thanks, Ivan Berezovskiy slack: iberezovskiy |
According to http://ci.puppet.community/modules/puppetlabs/puppetlabs-mongodb, we haven't had passing beaker tests on this module, ever. @EmilienM pcci runs beaker tests per pull request and can be configured to vote here. However, no one has made the effort to make the tests pass. |
Hi, Guys! Thanks! |
Key moments: * Adds Support for Keyfile Key: upstream commit 7bbcff8 * Remove useless openstack::mongo class * Add upstream changes for 217 pull request (voxpupuli/puppet-mongodb#217): - Implement retries for MongoDB shell commands - Initiate replica set creation from localhost if auth is enabled * Improve support for MongoDB authentication voxpupuli/puppet-mongodb#194 * Fix lint errors (actually fixed in upstream) * Add noop tests for MongoDB parameters Implements: blueprint upgrade-openstack-puppet-modules Closes-bug: #1383639 Related-bug: #1308990 Change-Id: I3b9cbd35bf46483782d7b7eb7ef030fd31fdd544
Implement retries for MongoDB shell commands
Retries for MongoDB shell commands could be useful
in some cases:
it needs to wait some time till its end