Mongodb connection details are displayed for the secondary node
Description
Environment
None
Attachments
1
image-20240109-061938.png
09 Jan, 2024
relates to
Activity
peter.szczepaniak
April 29, 2024 at 10:46 AM
will be fixed with connection string/url
Ivan Groenewold
April 18, 2024 at 2:36 PM
(edited)
actually what you should display is the replica set connection URI. Example:
mongodb-56u-rs0-0.mongodb-56u-rs0.<namespace name>.svc.cluster.local,mongodb-56u-rs0-1.mongodb-56u-rs0.<namespace name>.svc.cluster.local,mongodb-56u-rs0-2.mongodb-56u-rs0.<namespace name>.svc.cluster.local
or in the case of a sharded cluster, the exposed service:
my-cluster-name-mongos.<namespace name>.svc.cluster.local
The idea is that you should be able to easily copy-paste connection string from the UI to the app.
Manish Chawla
March 13, 2024 at 6:32 AM
The connection details for the primary should be chosen from all the nodes like
mongodb-gg1-rs0-0.mongodb-gg1-rs0.n1.svc.cluster.local
mongodb-gg1-rs0-1.mongodb-gg1-rs0.n1.svc.cluster.local
mongodb-gg1-rs0-2.mongodb-gg1-rs0.n1.svc.cluster.local
mongodb-gg1-rs0-3.mongodb-gg1-rs0.n1.svc.cluster.local
mongodb-gg1-rs0-4.mongodb-gg1-rs0.n1.svc.cluster.local
Currently it is displayed as mongodb-gg1-rs0.n1.svc.cluster.local
, which may or may not connect to the primary node.
Manish Chawla
January 9, 2024 at 8:20 AM
With external access enabled, the Connection Details display all the hosts but do not specify the primary and secondary. It should mention the primary and secondary nodes.
Details
Details
Assignee
Unassigned
UnassignedReporter
Manish Chawla
Manish ChawlaSprint
Add sprint
Affects versions
Priority
Created January 9, 2024 at 6:40 AM
Updated September 23, 2024 at 3:37 PM
Tested with Everest v0.5.0-49-gf4c8ffa release build version.
Install all operators. Create a 3 node mongodb cluster without external access enabled as below
The connection details are displayed as
mongodb-kxo-rs0.percona-everest.svc.cluster.local
. If we connect using this host then it connects to the secondary. The connection details should be displayed for the primary.