Mongo Atlas, the future Mongo database hosted service for Tahoe has a big difference with other providers like Compose.io (current provider) and self hosted mongo. The difference is that database users (edxapp and cs_comment_service must be live inside the admin database and not inside their own databases.
In order to avoid an authentication failure, we need to tell pymongo, against with database to authenticate in the connection parameters with the authSource parameter: Mongo doc
All this must still work work for enteprise deployments, since if not auth_source is specified the ansible default will fallback to the database name, which is where mongo will try to authenticate anyway.
Mongo Atlas, the future Mongo database hosted service for Tahoe has a big difference with other providers like Compose.io (current provider) and self hosted mongo. The difference is that database users (
edxapp
andcs_comment_service
must be live inside the admin database and not inside their own databases.In order to avoid an authentication failure, we need to tell pymongo, against with database to authenticate in the connection parameters with the
authSource
parameter: Mongo docAll this must still work work for enteprise deployments, since if not
auth_source
is specified the ansible default will fallback to the database name, which is where mongo will try to authenticate anyway.