Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4399

[Build Failure] OIDC - The DNS query name does not exist

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.8
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Name of Failure:

      The DNS query name does not exist

      Link to task:

      https://spruce.mongodb.com/task/mongo_python_driver_oidc_auth_test__platform~windows_64_vsMulti_small_oidc_auth_test_latest_e8900ad9f48d7effe733b30c7aca176dad89fe66_24_04_24_11_27_06/logs?execution=0

      Context of when and why the failure occurred:

      Seems related to https://github.com/mongodb-labs/drivers-evergreen-tools/pull/433.

      Stack trace:

      [2024/04/24 06:47:21.800] test\__init__.py:1162: in setup
      [2024/04/24 06:47:21.800]     client_context.init()
      [2024/04/24 06:47:21.800] test\__init__.py:488: in init
      [2024/04/24 06:47:21.800]     self._init_client()
      [2024/04/24 06:47:21.800] test\__init__.py:351: in _init_client
      [2024/04/24 06:47:21.800]     self.client = self._connect(host, port)
      [2024/04/24 06:47:21.800] test\__init__.py:330: in _connect
      [2024/04/24 06:47:21.800]     host, port, serverSelectionTimeoutMS=5000, **kwargs
      [2024/04/24 06:47:21.800] pymongo\mongo_client.py:782: in __init__
      [2024/04/24 06:47:21.800]     srv_max_hosts=srv_max_hosts,
      [2024/04/24 06:47:21.800] pymongo\uri_parser.py:547: in parse_uri
      [2024/04/24 06:47:21.800]     nodes = dns_resolver.get_hosts()
      [2024/04/24 06:47:21.800] pymongo\srv_resolver.py:137: in get_hosts
      [2024/04/24 06:47:21.800]     _, nodes = self._get_srv_response_and_hosts(True)
      [2024/04/24 06:47:21.800] pymongo\srv_resolver.py:117: in _get_srv_response_and_hosts
      [2024/04/24 06:47:21.800]     results = self._resolve_uri(encapsulate_errors)
      [2024/04/24 06:47:21.800] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
      [2024/04/24 06:47:21.800] self = <pymongo.srv_resolver._SrvResolver object at 0x000001D302F3B408>
      [2024/04/24 06:47:21.800] encapsulate_errors = True
      [2024/04/24 06:47:21.800]     def _resolve_uri(self, encapsulate_errors: bool) -> resolver.Answer:
      [2024/04/24 06:47:21.800]         try:
      [2024/04/24 06:47:21.800]             results = _resolve(
      [2024/04/24 06:47:21.800]                 "_" + self.__srv + "._tcp." + self.__fqdn, "SRV", lifetime=self.__connect_timeout
      [2024/04/24 06:47:21.800]             )
      [2024/04/24 06:47:21.801]         except Exception as exc:
      [2024/04/24 06:47:21.801]             if not encapsulate_errors:
      [2024/04/24 06:47:21.801]                 # Raise the original error.
      [2024/04/24 06:47:21.801]                 raise
      [2024/04/24 06:47:21.801]             # Else, raise all errors as ConfigurationError.
      [2024/04/24 06:47:21.801] >           raise ConfigurationError(str(exc)) from None
      [2024/04/24 06:47:21.801] E           pymongo.errors.ConfigurationError: The DNS query name does not exist: _mongodb._tcp.3851-drivertest.tfsco.mongodb-dev.net\013.
      [2024/04/24 06:47:21.801] pymongo\srv_resolver.py:111: ConfigurationError
      

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: