Skip to content

Conversation

@m1kola
Copy link
Contributor

@m1kola m1kola commented Nov 7, 2025

Summary

  • Removed the unused getReplicaSetMultiClusterMap function to make the linter happy
  • Reverted GetMultiServiceFQDN back to it's original version as it was breaking a lot of unit and e2e tests.

Proof of Work

CI must be greener. Still need to address more issues.

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?

It was breaking a lot of unit end e2e tests.
@m1kola m1kola added the skip-changelog Use this label in Pull Request to not require new changelog entry file label Nov 7, 2025
podName := GetMultiPodName(stsName, clusterNum, podNum)
headlessService := GetMultiHeadlessServiceName(stsName, clusterNum)
return fmt.Sprintf("%s.%s.%s.svc.%s", podName, headlessService, namespace, domain)
return fmt.Sprintf("%s.%s.svc.%s", GetMultiServiceName(stsName, clusterNum, podNum), namespace, domain)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverting back to this (original, as seen in master) code fixes most of the tests, but breaks MongoDB-based multi-cluster.

Controller for MongoDBMultiCluster generates hostnames like this:

multi-replica-set-0-0-svc.mongodb-test.svc.cluster.local
multi-replica-set-1-0-svc.mongodb-test.svc.cluster.local
multi-replica-set-2-0-svc.mongodb-test.svc.cluster.local

But the controller for MongoDB multi-cluster replica sets creates hostnames like this even with the revert:

multi-replica-set-0-0.multi-replica-set-0-svc.mongodb-test.svc.cluster.local
multi-replica-set-1-0.multi-replica-set-1-svc.mongodb-test.svc.cluster.local
multi-replica-set-2-0.multi-replica-set-2-svc.mongodb-test.svc.cluster.local

Still trying to understand why.

@m1kola m1kola changed the title CLOUDP-235689: CI fixes for unify multi-cluster replica sets feature branch CLOUDP-235689: Fixing agent hostnames Nov 11, 2025
@m1kola m1kola changed the title CLOUDP-235689: Fixing agent hostnames CLOUDP-235689: Fix agent hostnames Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Use this label in Pull Request to not require new changelog entry file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant