Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-2008

writeresult-getserver-002 fails to drop collection in local db on replicaset-auth

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.13.0
    • Affects Version/s: None
    • Component/s: None
    • None

      See: https://evergreen.mongodb.com/task/mongo_php_driver_test_php_versions__edge_versions~latest_stable_php_versions~8.1_os~debian92_test_replicaset_auth_9d8776717691ffd7345ef1ede0022fe46561413b_21_11_29_20_08_43

      Fatal error: Uncaught MongoDB\Driver\Exception\CommandException: not authorized on local to execute command { drop: "replicaset_writeresult_getserver_002", $db: "local", lsid: { id: UUID("9f92bf32-9c5c-40b0-bb76-3f3ee00de5a7") }, $clusterTime: { clusterTime: Timestamp(1638217511, 17), signature: { hash: BinData(0, DD08BB698C69A82D1DDED7034489293E9347ADCE), keyId: 7036090191097888770 } } } in /data/mci/fb404c2148929db9300f58d6189ebf05/src/tests/replicaset/writeresult-getserver-002.php:43
      

      This may be related to mongo-orchestration not granting the user the "restore" role (see: mongo_orchestration/common.py), which may be necessary to drop non-system collections in the "local" database. The easiest solution may be to just have mongo-orchestration assign the "root" role, unless there is a specific reason to avoid doing so.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: