You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
issue 3 is because the config_replset should be done immediately, and both internal notifications should be done before user notifications (in case they are also immediate).
issues 1 and 2 could be fixed by not imposing :run.
However I don't know how multiple identical parameters are handled in definitions, so I don't know how to fix this exactly.
Issue 3 is easily fixed by using :immediately notification for the ruby_block[config_replicaset]: I tested this for one week now.
Is a release for Issue 3 planned soon? Or at least a commit in master? (Otherwise I'll have to create a local fork)
The
mongodb_instance
definition accepts the usualnotifies
parameter, which is great to start services that depend on mongodb for example.However the current implementation has several issues.
Issue 1:
This seemingly standard and correct usage doesn't work:
Error:
This non standard way works though:
Issue 2:
There is no way to specify a different action than
:run
, and no timer different than the default (:delayed
).Issue 3:
When those notifications are executed, the replicaSet is not ready yet. This is related to #244 and #326.
Code analysis:
All of this is because of these lines: https://github.com/edelight/chef-mongodb/blob/0.16.1/definitions/mongodb.rb#L194-L196
issue 3 is because the config_replset should be done immediately, and both internal notifications should be done before user notifications (in case they are also immediate).
issues 1 and 2 could be fixed by not imposing
:run
.However I don't know how multiple identical parameters are handled in definitions, so I don't know how to fix this exactly.
Expected behavior:
All of these should work:
And any combination of them.
The text was updated successfully, but these errors were encountered: