Skip to content

x509 tests issue - Cannot create an x.509 user with a subjectname that would be recognized as an internal cluster member,Β #626

@rhysmeister

Description

@rhysmeister
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue/PR relates to a bug.help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions