Comment 4 for bug 1969817

Revision history for this message
Olivier Gayot (ogayot) wrote :

Tested on a lxd container configured with 8.8.8.8 as the nameserver and 200ms of network latency added with tc.

-----------------------------------------
Before upgrading to version in -proposed:
-----------------------------------------
$ dpkg-query --show python3-aiohttp
python3-aiohttp 3.6.2-1build1

$ python3 file.py
Task exception was never retrieved
future: <Task finished name='Task-3' coro=<TCPConnector._resolve_host() done, defined at /usr/lib/python3/dist-packages/aiohttp/connector.py:774> exception=gaierror(-2, 'Name or service not known')>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 829, in _resolve_host
    addrs = await \
  File "/usr/lib/python3/dist-packages/aiohttp/resolver.py", line 29, in resolve
    infos = await self._loop.getaddrinfo(
  File "/usr/lib/python3.8/asyncio/base_events.py", line 825, in getaddrinfo
    return await self.run_in_executor(
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

----------------------------------------
After upgrading to version in -proposed:
-----------------------------------------
$ dpkg-query --show python3-aiohttp
python3-aiohttp 3.6.2-1ubuntu1

$ python3 file.py
$

Also tested using a subiquity ISO based on the 22.04.1 snap version.
No crash when using the python3-aiohttp from proposed.