pymongo tries to login at arbiter and fails

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.0, 3.0.1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Setup: 3x MongoDB Node, on of them is arbiter, the others are primary/secondary.

      Client (running on primary/secondary host)
      > connection = MongoClient(replicaset='myreplicatset')
      > db = connection['admindb']
      > db.authenticate('admindb',pw)

      This fails sometimes, as MongoClient chooses to connect to the arbiter host which refuses to let the client in.

      Versions:
      > pymongo: 3.0.1
      > mongodb: 3.0.2

              Assignee:
              Bernie Hackett
              Reporter:
              AZ [X]
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: