-
Notifications
You must be signed in to change notification settings - Fork 81
Description
SUMMARY
x509 auth tests fail on MongoDB 7.0 with-...
TASK [mongodb_user : Adding superuser] *****************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: pymongo.errors.OperationFailure: Cannot create an x.509 user with a subjectname that would be recognized as an internal cluster member, full error: {'ok': 0.0, 'errmsg': 'Cannot create an x.509 user with a subjectname that would be recognized as an internal cluster member', 'code': 2, 'codeName': 'BadValue'}
fatal: [testhost]: FAILED! => {"changed": false, "msg": "Unable to add or update user: Cannot create an x.509 user with a subjectname that would be recognized as an internal cluster member, full error: {'ok': 0.0, 'errmsg': 'Cannot create an x.509 user with a subjectname that would be recognized as an internal cluster member', 'code': 2, 'codeName': 'BadValue'}"}
Relevant file: tests/integration/targets/mongodb_user/tasks/421.yml
https://github.com/ansible-collections/community.mongodb/actions/runs/7775404578/job/21201357371?pr=624
https://www.mongodb.com/community/forums/t/cannot-create-an-x-509-user-with-a-subjectname-that-would-be-recognized-as-an-internal-cluster-member/15465/3
For now I will skip these for MongoDB 7
ISSUE TYPE
- Bug Report
COMPONENT NAME
mongodb_user tests - see file 421.yml