-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
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.
- depends on
-
DRIVERS-1996 Grant "backup" and "restore" roles to users created by Mongo Orchestration
- Closed
- related to
-
PHPC-1878 Unexpected primary step down when testing on MongoDB latest
- Closed