Skip to content

Conversation

@filipcirtog
Copy link

Summary

While working on this PR, it was discovered that the test multi_cluster_reconcile_races.py incorrectly asserted that get_all_rs (replica sets) runs for all MongoDB resource types, including MongoDBMulti, Sharded, and Standalone. This behavior is a bug.

This PR resolves the issue by ensuring that get_all_rs is only used to test replica set creation. Additionally, get_all_mdbmc, get_all_sharded, and get_all_standalone are now used to verify the creation and behavior of MongoDBMulti, Sharded, and Standalone resources.

However, during testing, it was observed that MongoDBMulti resources are not transitioning to the running stage due to the following error:

{"logType":"agent-launcher-script","contents":"Using Kubernetes CA file"}
{"logType":"agent-launcher-script","contents":"Created symlink: /data/journal -> /journal"}
{"logType":"agent-launcher-script","contents":"Downloading Agent version: latest"}
{"logType":"agent-launcher-script","contents":"Downloading a Mongodb Agent from http://om-svc.a-1763562698-v0w3j4jtccz.svc.cluster.local:8080/"}
{"logType":"agent-launcher-script","contents":"Error while downloading the Mongodb agent"}

Proof of Work

Checklist

  • Have you linked a jira ticket and/or is the ticket in the title?
  • Have you checked whether your jira ticket required DOCSP changes?
  • Have you added changelog file?

@github-actions
Copy link

⚠️ (this preview might not be accurate if the PR is not rebased on current master branch)

MCK 1.6.1 Release Notes

@filipcirtog filipcirtog changed the title Reconcile races test fix Misuse of get_all_rs in E2E Test Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants