-
-
Notifications
You must be signed in to change notification settings - Fork 451
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
Fix replset and sharding integration tests #743
Fix replset and sharding integration tests #743
Conversation
f2f3d31
to
0d7c5d4
Compare
Finally got this working locally! Still don't know if it's possible to run these tests in the gha test matrix ... |
821b18e
to
11c6bfe
Compare
@stevenpost Could you have a look at this? |
61deabd
to
b6bb845
Compare
33f2132
to
fd05f15
Compare
Finally got all integration tests to run. |
I noticed the CentOS 8 tests failing a lot due to timeouts, nothing to do with the mongodb puppet module, but with the servers. I had a colleague trigger those again to make the pipeline pass. |
We pull the centos 8 image from quay.io and that seems to trigger random timeouts :( |
@stevenpost, I'm not talking about the quay.io issues. I'm aware of that :) |
I see what you mean, and it isn't limited to MongoDB 7.0.
Followed by
Even though at this point, both nodes are standalone.
else branch, which won't work with authentication enabled.
|
fd05f15
to
f9957b3
Compare
My last commit changed the outcome of the integration tests quite a bit. The problem here seems to be that when rs.initiate() is invoked with more than one member its up to mongodb election to decide which server should be the primary(master). When the second host is elected primary, the idempotency check on host 1 now fails auth to host 2 ... |
Personally I'm not sure I like the overall design of the module when it comes to setting up replication. If I was to reimplement this I think I would somehow use exported resources for replicaset members and let puppet on the currently elected primary realize the exported the hosts trough the localhost connection. |
I think most modules should strive to be independent of PuppetDB, not everyone has that luxury. That being said, I agree that the current approach is suboptimal.
Then the check is wrong? I haven't looked at this PR it in detail yet, but some things come to mind:
|
f8b2735
to
7f36dac
Compare
Finally I got this stabilized :) I still see lots of issues with how these replset parts are implemented in the module. |
Regarding f9957b3, I really want to wait for voxpupuli/puppet_metadata#124 and voxpupuli/gha-puppet#53 so that I can remove it before this is merged. |
7f36dac
to
89365d9
Compare
89365d9
to
9636c73
Compare
Fixing integration test that haven't been run for a very long time.
To be able to run integration test that require two hosts with gha I have created a custom ci workflow and set it to unmanaged in modulesync.