0s autopkgtest [14:42:34]: starting date and time: 2025-06-19 14:42:34+0000 0s autopkgtest [14:42:34]: git checkout: 9986aa8c Merge branch 'skia/fix_network_interface' into 'ubuntu/production' 0s autopkgtest [14:42:34]: host juju-7f2275-prod-proposed-migration-environment-21; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.y34exlv3/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:requests --apt-upgrade graypy --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=requests/2.32.3+dfsg-5ubuntu2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-21@sto01-ppc64el-21.secgroup --name adt-questing-ppc64el-graypy-20250619-144234-juju-7f2275-prod-proposed-migration-environment-21-4d4e404b-58b3-42c1-b366-d449ae83bf7c --image adt/ubuntu-questing-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-21 --net-id=net_prod-autopkgtest-workers-ppc64el -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 141s autopkgtest [14:44:55]: testbed dpkg architecture: ppc64el 142s autopkgtest [14:44:56]: testbed apt version: 3.1.2 142s autopkgtest [14:44:56]: @@@@@@@@@@@@@@@@@@@@ test bed setup 142s autopkgtest [14:44:56]: testbed release detected to be: None 143s autopkgtest [14:44:57]: updating testbed package index (apt update) 143s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [249 kB] 143s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 143s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 143s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 143s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [17.4 kB] 143s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [426 kB] 143s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/restricted Sources [4716 B] 143s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [38.3 kB] 143s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el Packages [66.7 kB] 143s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/restricted ppc64el Packages [724 B] 143s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el Packages [340 kB] 143s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/multiverse ppc64el Packages [6448 B] 143s Fetched 1149 kB in 0s (2561 kB/s) 144s Reading package lists... 145s autopkgtest [14:44:59]: upgrading testbed (apt dist-upgrade and autopurge) 145s Reading package lists... 145s Building dependency tree... 145s Reading state information... 145s Calculating upgrade... 145s The following packages will be upgraded: 145s python3-requests 145s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 145s Need to get 53.1 kB of archives. 145s After this operation, 0 B of additional disk space will be used. 145s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3-requests all 2.32.3+dfsg-5ubuntu2 [53.1 kB] 145s Fetched 53.1 kB in 0s (5043 kB/s) 146s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 79652 files and directories currently installed.) 146s Preparing to unpack .../python3-requests_2.32.3+dfsg-5ubuntu2_all.deb ... 147s Unpacking python3-requests (2.32.3+dfsg-5ubuntu2) over (2.32.3+dfsg-5ubuntu1) ... 147s Setting up python3-requests (2.32.3+dfsg-5ubuntu2) ... 147s Reading package lists... 147s Building dependency tree... 147s Reading state information... 147s Solving dependencies... 147s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 149s autopkgtest [14:45:03]: testbed running kernel: Linux 6.14.0-15-generic #15-Ubuntu SMP Sun Apr 6 14:52:42 UTC 2025 150s autopkgtest [14:45:04]: @@@@@@@@@@@@@@@@@@@@ apt-source graypy 151s Get:1 http://ftpmaster.internal/ubuntu questing/universe graypy 2.1.0-1 (dsc) [2090 B] 151s Get:2 http://ftpmaster.internal/ubuntu questing/universe graypy 2.1.0-1 (tar) [24.2 kB] 151s Get:3 http://ftpmaster.internal/ubuntu questing/universe graypy 2.1.0-1 (diff) [2964 B] 151s gpgv: Signature made Wed Jan 6 14:09:05 2021 UTC 151s gpgv: using RSA key E7FAB70B3950275E6DA30975DD8CD5A5DE8C7E7A 151s gpgv: Can't check signature: No public key 151s dpkg-source: warning: cannot verify inline signature for ./graypy_2.1.0-1.dsc: no acceptable signature found 151s autopkgtest [14:45:05]: testing package graypy version 2.1.0-1 152s autopkgtest [14:45:06]: build not needed 152s autopkgtest [14:45:06]: test python3-pytest: preparing testbed 152s Reading package lists... 152s Building dependency tree... 152s Reading state information... 152s Solving dependencies... 152s The following NEW packages will be installed: 152s python3-amqplib python3-graypy python3-iniconfig python3-mock python3-pluggy 152s python3-pytest 152s 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. 152s Need to get 393 kB of archives. 152s After this operation, 2076 kB of additional disk space will be used. 152s Get:1 http://ftpmaster.internal/ubuntu questing/universe ppc64el python3-amqplib all 1.0.2-4 [31.2 kB] 152s Get:2 http://ftpmaster.internal/ubuntu questing/universe ppc64el python3-graypy all 2.1.0-1 [15.9 kB] 152s Get:3 http://ftpmaster.internal/ubuntu questing/universe ppc64el python3-iniconfig all 1.1.1-2 [6024 B] 152s Get:4 http://ftpmaster.internal/ubuntu questing/universe ppc64el python3-pluggy all 1.5.0-1 [21.0 kB] 152s Get:5 http://ftpmaster.internal/ubuntu questing/universe ppc64el python3-pytest all 8.3.5-2 [252 kB] 152s Get:6 http://ftpmaster.internal/ubuntu questing/universe ppc64el python3-mock all 5.2.0-1 [66.3 kB] 153s Fetched 393 kB in 0s (4563 kB/s) 153s Selecting previously unselected package python3-amqplib. 153s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 79652 files and directories currently installed.) 153s Preparing to unpack .../0-python3-amqplib_1.0.2-4_all.deb ... 153s Unpacking python3-amqplib (1.0.2-4) ... 153s Selecting previously unselected package python3-graypy. 153s Preparing to unpack .../1-python3-graypy_2.1.0-1_all.deb ... 153s Unpacking python3-graypy (2.1.0-1) ... 153s Selecting previously unselected package python3-iniconfig. 153s Preparing to unpack .../2-python3-iniconfig_1.1.1-2_all.deb ... 153s Unpacking python3-iniconfig (1.1.1-2) ... 153s Selecting previously unselected package python3-pluggy. 153s Preparing to unpack .../3-python3-pluggy_1.5.0-1_all.deb ... 153s Unpacking python3-pluggy (1.5.0-1) ... 153s Selecting previously unselected package python3-pytest. 153s Preparing to unpack .../4-python3-pytest_8.3.5-2_all.deb ... 153s Unpacking python3-pytest (8.3.5-2) ... 153s Selecting previously unselected package python3-mock. 153s Preparing to unpack .../5-python3-mock_5.2.0-1_all.deb ... 153s Unpacking python3-mock (5.2.0-1) ... 153s Setting up python3-iniconfig (1.1.1-2) ... 153s Setting up python3-amqplib (1.0.2-4) ... 153s Setting up python3-mock (5.2.0-1) ... 153s Setting up python3-pluggy (1.5.0-1) ... 153s Setting up python3-graypy (2.1.0-1) ... 153s Setting up python3-pytest (8.3.5-2) ... 154s Processing triggers for man-db (2.13.1-1) ... 155s autopkgtest [14:45:09]: test python3-pytest: cp -r setup.py tests "$AUTOPKGTEST_TMP"; cd "$AUTOPKGTEST_TMP"; python3 -m pytest tests 155s autopkgtest [14:45:09]: test python3-pytest: [----------------------- 155s ************************************************************************** 155s # A new feature in cloud-init identified possible datasources for # 155s # this system as: # 155s # [] # 155s # However, the datasource used was: OpenStack # 155s # # 155s # In the future, cloud-init will only attempt to use datasources that # 155s # are identified or specifically configured. # 155s # For more information see # 155s # https://bugs.launchpad.net/bugs/1669675 # 155s # # 155s # If you are seeing this message, please file a bug against # 155s # cloud-init at # 155s # https://github.com/canonical/cloud-init/issues # 155s # Make sure to include the cloud provider your instance is # 155s # running on. # 155s # # 155s # After you have filed a bug, you can disable this warning by launching # 155s # your instance with the cloud-config below, or putting that content # 155s # into /etc/cloud/cloud.cfg.d/99-warnings.cfg # 155s # # 155s # #cloud-config # 155s # warnings: # 155s # dsid_missing_source: off # 155s ************************************************************************** 155s 155s Disable the warnings above by: 155s touch /home/ubuntu/.cloud-warnings.skip 155s or 155s touch /var/lib/cloud/instance/warnings/.skip 156s ============================= test session starts ============================== 156s platform linux -- Python 3.13.5, pytest-8.3.5, pluggy-1.5.0 156s rootdir: /tmp/autopkgtest.XfW4ZK/autopkgtest_tmp 156s plugins: typeguard-4.4.2 156s collected 246 items 156s 156s tests/integration/test_chunked_logging.py FFF [ 1%] 156s tests/integration/test_common_logging.py FFFFFFFFFFFFF [ 6%] 157s tests/integration/test_debugging_fields.py FFFFFFF [ 9%] 157s tests/integration/test_extra_fields.py FFFFFFF [ 12%] 158s tests/integration/test_status_issue.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 25%] 158s FFFFFF [ 28%] 158s tests/unit/test_ExcludeFilter.py ....... [ 30%] 158s tests/unit/test_GELFRabbitHandler.py ..x. [ 32%] 158s tests/unit/test_chunking.py ............. [ 37%] 158s tests/unit/test_handler.py ...........................................ss [ 56%] 158s sssssssssss............................................................. [ 85%] 159s ...........................ss....... [100%] 159s 159s =================================== FAILURES =================================== 159s ____________________ test_chunked_logging[BaseGELFChunker] _____________________ 159s 159s gelf_chunker = 159s 159s @pytest.mark.parametrize( 159s "gelf_chunker", [BaseGELFChunker, GELFWarningChunker, GELFTruncatingChunker] 159s ) 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_chunked_logging(gelf_chunker): 159s """Test sending a log that requires chunking to be fully sent""" 159s logger = logging.getLogger("test_chunked_logger") 159s handler = GELFUDPHandler( 159s "127.0.0.1", TEST_UDP_PORT, gelf_chunker=gelf_chunker(chunk_size=10) 159s ) 159s logger.addHandler(handler) 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message) 159s 159s tests/integration/test_chunked_logging.py:36: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'aaf8639e-3c44-45d7-b483-bb12f1f783b4' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_chunked_logger:test_chunked_logging.py:35 aaf8639e-3c44-45d7-b483-bb12f1f783b4 159s ___________________ test_chunked_logging[GELFWarningChunker] ___________________ 159s 159s gelf_chunker = 159s 159s @pytest.mark.parametrize( 159s "gelf_chunker", [BaseGELFChunker, GELFWarningChunker, GELFTruncatingChunker] 159s ) 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_chunked_logging(gelf_chunker): 159s """Test sending a log that requires chunking to be fully sent""" 159s logger = logging.getLogger("test_chunked_logger") 159s handler = GELFUDPHandler( 159s "127.0.0.1", TEST_UDP_PORT, gelf_chunker=gelf_chunker(chunk_size=10) 159s ) 159s logger.addHandler(handler) 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message) 159s 159s tests/integration/test_chunked_logging.py:36: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'c6c0f86c-7ed2-4c59-9179-f0cbfbdd8451' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_chunked_logger:test_chunked_logging.py:35 c6c0f86c-7ed2-4c59-9179-f0cbfbdd8451 159s _________________ test_chunked_logging[GELFTruncatingChunker] __________________ 159s 159s gelf_chunker = 159s 159s @pytest.mark.parametrize( 159s "gelf_chunker", [BaseGELFChunker, GELFWarningChunker, GELFTruncatingChunker] 159s ) 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_chunked_logging(gelf_chunker): 159s """Test sending a log that requires chunking to be fully sent""" 159s logger = logging.getLogger("test_chunked_logger") 159s handler = GELFUDPHandler( 159s "127.0.0.1", TEST_UDP_PORT, gelf_chunker=gelf_chunker(chunk_size=10) 159s ) 159s logger.addHandler(handler) 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message) 159s 159s tests/integration/test_chunked_logging.py:36: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '7c78d78c-2039-49c7-936a-5a50e21dc0e0' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_chunked_logger:test_chunked_logging.py:35 7c78d78c-2039-49c7-936a-5a50e21dc0e0 159s ________________________ test_common_logging[handler0] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_common_logging(logger): 159s """Test sending a common usage log""" 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message) 159s 159s tests/integration/test_common_logging.py:22: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '37acd1a9-a255-4e27-9e8c-8cbe3383e80e' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_common_logging.py:21 37acd1a9-a255-4e27-9e8c-8cbe3383e80e 159s ________________________ test_common_logging[handler1] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_common_logging(logger): 159s """Test sending a common usage log""" 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message) 159s 159s tests/integration/test_common_logging.py:22: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '301cf100-96fb-4dbf-b3b4-44b17dd0b694' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_common_logging.py:21 301cf100-96fb-4dbf-b3b4-44b17dd0b694 159s ________________________ test_common_logging[handler2] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_common_logging(logger): 159s """Test sending a common usage log""" 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message) 159s 159s tests/integration/test_common_logging.py:22: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '53cd4db1-ba75-47c0-9c49-79b9f153e029' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_common_logging.py:21 53cd4db1-ba75-47c0-9c49-79b9f153e029 159s ________________________ test_common_logging[handler3] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_common_logging(logger): 159s """Test sending a common usage log""" 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message) 159s 159s tests/integration/test_common_logging.py:22: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'd8c64ff3-54ce-4bd6-a6d7-d750285ab656' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_common_logging.py", line 21, in test_common_logging 159s logger.error(message) 159s Message: 'd8c64ff3-54ce-4bd6-a6d7-d750285ab656' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_common_logging.py:21 d8c64ff3-54ce-4bd6-a6d7-d750285ab656 159s ________________________ test_common_logging[handler4] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_common_logging(logger): 159s """Test sending a common usage log""" 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message) 159s 159s tests/integration/test_common_logging.py:22: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'aa4d4c31-9862-4aee-81b3-b3f2830eda35' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_common_logging.py", line 21, in test_common_logging 159s logger.error(message) 159s Message: 'aa4d4c31-9862-4aee-81b3-b3f2830eda35' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_common_logging.py:21 aa4d4c31-9862-4aee-81b3-b3f2830eda35 159s ________________________ test_common_logging[handler5] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_common_logging(logger): 159s """Test sending a common usage log""" 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message) 159s 159s tests/integration/test_common_logging.py:22: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '3c746b9d-315b-45a5-9a4f-226fbd434faa' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_common_logging.py", line 21, in test_common_logging 159s logger.error(message) 159s Message: '3c746b9d-315b-45a5-9a4f-226fbd434faa' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_common_logging.py:21 3c746b9d-315b-45a5-9a4f-226fbd434faa 159s ________________________ test_common_logging[handler6] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_common_logging(logger): 159s """Test sending a common usage log""" 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message) 159s 159s tests/integration/test_common_logging.py:22: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'c146dc5f-9eb2-4939-8a9d-cc74e3b1c2c9' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_common_logging.py", line 21, in test_common_logging 159s logger.error(message) 159s Message: 'c146dc5f-9eb2-4939-8a9d-cc74e3b1c2c9' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_common_logging.py:21 c146dc5f-9eb2-4939-8a9d-cc74e3b1c2c9 159s ________________________ test_common_logging[handler7] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_common_logging(logger): 159s """Test sending a common usage log""" 159s message = get_unique_message() 159s > logger.error(message) 159s 159s tests/integration/test_common_logging.py:21: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s /usr/lib/python3.13/logging/__init__.py:1551: in error 159s self._log(ERROR, msg, args, **kwargs) 159s /usr/lib/python3.13/logging/__init__.py:1667: in _log 159s self.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1686: in handle 159s self.callHandlers(record) 159s /usr/lib/python3.13/logging/__init__.py:1744: in callHandlers 159s hdlr.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1027: in handle 159s self.emit(record) 159s /usr/lib/python3/dist-packages/graypy/handler.py:771: in emit 159s connection.request("POST", self.path, pickle, self.headers) 159s /usr/lib/python3.13/http/client.py:1338: in request 159s self._send_request(method, url, body, headers, encode_chunked) 159s /usr/lib/python3.13/http/client.py:1384: in _send_request 159s self.endheaders(body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1333: in endheaders 159s self._send_output(message_body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1093: in _send_output 159s self.send(msg) 159s /usr/lib/python3.13/http/client.py:1037: in send 159s self.connect() 159s /usr/lib/python3.13/http/client.py:1003: in connect 159s self.sock = self._create_connection( 159s /usr/lib/python3.13/socket.py:864: in create_connection 159s raise exceptions[0] 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s address = ('127.0.0.1', 12203), timeout = 5, source_address = None 159s 159s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 159s source_address=None, *, all_errors=False): 159s """Connect to *address* and return the socket object. 159s 159s Convenience function. Connect to *address* (a 2-tuple ``(host, 159s port)``) and return the socket object. Passing the optional 159s *timeout* parameter will set the timeout on the socket instance 159s before attempting to connect. If no *timeout* is supplied, the 159s global default timeout setting returned by :func:`getdefaulttimeout` 159s is used. If *source_address* is set it must be a tuple of (host, port) 159s for the socket to bind as a source address before making the connection. 159s A host of '' or port 0 tells the OS to use the default. When a connection 159s cannot be created, raises the last error if *all_errors* is False, 159s and an ExceptionGroup of all errors if *all_errors* is True. 159s """ 159s 159s host, port = address 159s exceptions = [] 159s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 159s af, socktype, proto, canonname, sa = res 159s sock = None 159s try: 159s sock = socket(af, socktype, proto) 159s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 159s sock.settimeout(timeout) 159s if source_address: 159s sock.bind(source_address) 159s > sock.connect(sa) 159s E ConnectionRefusedError: [Errno 111] Connection refused 159s 159s /usr/lib/python3.13/socket.py:849: ConnectionRefusedError 159s ________________________ test_common_logging[handler8] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_common_logging(logger): 159s """Test sending a common usage log""" 159s message = get_unique_message() 159s > logger.error(message) 159s 159s tests/integration/test_common_logging.py:21: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s /usr/lib/python3.13/logging/__init__.py:1551: in error 159s self._log(ERROR, msg, args, **kwargs) 159s /usr/lib/python3.13/logging/__init__.py:1667: in _log 159s self.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1686: in handle 159s self.callHandlers(record) 159s /usr/lib/python3.13/logging/__init__.py:1744: in callHandlers 159s hdlr.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1027: in handle 159s self.emit(record) 159s /usr/lib/python3/dist-packages/graypy/handler.py:771: in emit 159s connection.request("POST", self.path, pickle, self.headers) 159s /usr/lib/python3.13/http/client.py:1338: in request 159s self._send_request(method, url, body, headers, encode_chunked) 159s /usr/lib/python3.13/http/client.py:1384: in _send_request 159s self.endheaders(body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1333: in endheaders 159s self._send_output(message_body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1093: in _send_output 159s self.send(msg) 159s /usr/lib/python3.13/http/client.py:1037: in send 159s self.connect() 159s /usr/lib/python3.13/http/client.py:1003: in connect 159s self.sock = self._create_connection( 159s /usr/lib/python3.13/socket.py:864: in create_connection 159s raise exceptions[0] 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s address = ('127.0.0.1', 12203), timeout = 5, source_address = None 159s 159s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 159s source_address=None, *, all_errors=False): 159s """Connect to *address* and return the socket object. 159s 159s Convenience function. Connect to *address* (a 2-tuple ``(host, 159s port)``) and return the socket object. Passing the optional 159s *timeout* parameter will set the timeout on the socket instance 159s before attempting to connect. If no *timeout* is supplied, the 159s global default timeout setting returned by :func:`getdefaulttimeout` 159s is used. If *source_address* is set it must be a tuple of (host, port) 159s for the socket to bind as a source address before making the connection. 159s A host of '' or port 0 tells the OS to use the default. When a connection 159s cannot be created, raises the last error if *all_errors* is False, 159s and an ExceptionGroup of all errors if *all_errors* is True. 159s """ 159s 159s host, port = address 159s exceptions = [] 159s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 159s af, socktype, proto, canonname, sa = res 159s sock = None 159s try: 159s sock = socket(af, socktype, proto) 159s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 159s sock.settimeout(timeout) 159s if source_address: 159s sock.bind(source_address) 159s > sock.connect(sa) 159s E ConnectionRefusedError: [Errno 111] Connection refused 159s 159s /usr/lib/python3.13/socket.py:849: ConnectionRefusedError 159s ________________________ test_common_logging[handler9] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_common_logging(logger): 159s """Test sending a common usage log""" 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message) 159s 159s tests/integration/test_common_logging.py:22: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '0147c0c8-1d01-47a8-bd64-ad25521c4fc9' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_common_logging.py:21 0147c0c8-1d01-47a8-bd64-ad25521c4fc9 159s ________________________ test_common_logging[handler10] ________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_common_logging(logger): 159s """Test sending a common usage log""" 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message) 159s 159s tests/integration/test_common_logging.py:22: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '44728f25-9c0c-4fe5-a20d-4e5e8af854f5' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_common_logging.py:21 44728f25-9c0c-4fe5-a20d-4e5e8af854f5 159s ________________________ test_common_logging[handler11] ________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_common_logging(logger): 159s """Test sending a common usage log""" 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message) 159s 159s tests/integration/test_common_logging.py:22: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '2dc2d880-2db6-49e1-944b-62d42046cf1d' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_common_logging.py:21 2dc2d880-2db6-49e1-944b-62d42046cf1d 159s ________________________ test_common_logging[handler12] ________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_common_logging(logger): 159s """Test sending a common usage log""" 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message) 159s 159s tests/integration/test_common_logging.py:22: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '52af8b95-4a91-4416-ac4f-a4fecf1772a8' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_common_logging.py:21 52af8b95-4a91-4416-ac4f-a4fecf1772a8 159s __________________________ test_debug_mode[handler0] ___________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_debug_mode(logger): 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response( 159s message, fields=["function", "pid", "thread_name"] 159s ) 159s 159s tests/integration/test_debugging_fields.py:52: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'cccd0334-623d-4db4-924b-a055e9659435' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_debugging_fields.py:51 cccd0334-623d-4db4-924b-a055e9659435 159s __________________________ test_debug_mode[handler1] ___________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_debug_mode(logger): 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response( 159s message, fields=["function", "pid", "thread_name"] 159s ) 159s 159s tests/integration/test_debugging_fields.py:52: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'cbba9238-eed7-4bd2-ab26-626eef0d9b7b' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_debugging_fields.py:51 cbba9238-eed7-4bd2-ab26-626eef0d9b7b 159s __________________________ test_debug_mode[handler2] ___________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_debug_mode(logger): 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response( 159s message, fields=["function", "pid", "thread_name"] 159s ) 159s 159s tests/integration/test_debugging_fields.py:52: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '82eb1ff8-e613-4808-b84c-7eaede130943' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_debugging_fields.py:51 82eb1ff8-e613-4808-b84c-7eaede130943 159s __________________________ test_debug_mode[handler3] ___________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_debug_mode(logger): 159s message = get_unique_message() 159s > logger.error(message) 159s 159s tests/integration/test_debugging_fields.py:51: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s /usr/lib/python3.13/logging/__init__.py:1551: in error 159s self._log(ERROR, msg, args, **kwargs) 159s /usr/lib/python3.13/logging/__init__.py:1667: in _log 159s self.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1686: in handle 159s self.callHandlers(record) 159s /usr/lib/python3.13/logging/__init__.py:1744: in callHandlers 159s hdlr.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1027: in handle 159s self.emit(record) 159s /usr/lib/python3/dist-packages/graypy/handler.py:771: in emit 159s connection.request("POST", self.path, pickle, self.headers) 159s /usr/lib/python3.13/http/client.py:1338: in request 159s self._send_request(method, url, body, headers, encode_chunked) 159s /usr/lib/python3.13/http/client.py:1384: in _send_request 159s self.endheaders(body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1333: in endheaders 159s self._send_output(message_body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1093: in _send_output 159s self.send(msg) 159s /usr/lib/python3.13/http/client.py:1037: in send 159s self.connect() 159s /usr/lib/python3.13/http/client.py:1003: in connect 159s self.sock = self._create_connection( 159s /usr/lib/python3.13/socket.py:864: in create_connection 159s raise exceptions[0] 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s address = ('127.0.0.1', 12203), timeout = 5, source_address = None 159s 159s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 159s source_address=None, *, all_errors=False): 159s """Connect to *address* and return the socket object. 159s 159s Convenience function. Connect to *address* (a 2-tuple ``(host, 159s port)``) and return the socket object. Passing the optional 159s *timeout* parameter will set the timeout on the socket instance 159s before attempting to connect. If no *timeout* is supplied, the 159s global default timeout setting returned by :func:`getdefaulttimeout` 159s is used. If *source_address* is set it must be a tuple of (host, port) 159s for the socket to bind as a source address before making the connection. 159s A host of '' or port 0 tells the OS to use the default. When a connection 159s cannot be created, raises the last error if *all_errors* is False, 159s and an ExceptionGroup of all errors if *all_errors* is True. 159s """ 159s 159s host, port = address 159s exceptions = [] 159s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 159s af, socktype, proto, canonname, sa = res 159s sock = None 159s try: 159s sock = socket(af, socktype, proto) 159s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 159s sock.settimeout(timeout) 159s if source_address: 159s sock.bind(source_address) 159s > sock.connect(sa) 159s E ConnectionRefusedError: [Errno 111] Connection refused 159s 159s /usr/lib/python3.13/socket.py:849: ConnectionRefusedError 159s __________________________ test_debug_mode[handler4] ___________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_debug_mode(logger): 159s message = get_unique_message() 159s > logger.error(message) 159s 159s tests/integration/test_debugging_fields.py:51: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s /usr/lib/python3.13/logging/__init__.py:1551: in error 159s self._log(ERROR, msg, args, **kwargs) 159s /usr/lib/python3.13/logging/__init__.py:1667: in _log 159s self.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1686: in handle 159s self.callHandlers(record) 159s /usr/lib/python3.13/logging/__init__.py:1744: in callHandlers 159s hdlr.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1027: in handle 159s self.emit(record) 159s /usr/lib/python3/dist-packages/graypy/handler.py:771: in emit 159s connection.request("POST", self.path, pickle, self.headers) 159s /usr/lib/python3.13/http/client.py:1338: in request 159s self._send_request(method, url, body, headers, encode_chunked) 159s /usr/lib/python3.13/http/client.py:1384: in _send_request 159s self.endheaders(body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1333: in endheaders 159s self._send_output(message_body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1093: in _send_output 159s self.send(msg) 159s /usr/lib/python3.13/http/client.py:1037: in send 159s self.connect() 159s /usr/lib/python3.13/http/client.py:1003: in connect 159s self.sock = self._create_connection( 159s /usr/lib/python3.13/socket.py:864: in create_connection 159s raise exceptions[0] 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s address = ('127.0.0.1', 12203), timeout = 5, source_address = None 159s 159s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 159s source_address=None, *, all_errors=False): 159s """Connect to *address* and return the socket object. 159s 159s Convenience function. Connect to *address* (a 2-tuple ``(host, 159s port)``) and return the socket object. Passing the optional 159s *timeout* parameter will set the timeout on the socket instance 159s before attempting to connect. If no *timeout* is supplied, the 159s global default timeout setting returned by :func:`getdefaulttimeout` 159s is used. If *source_address* is set it must be a tuple of (host, port) 159s for the socket to bind as a source address before making the connection. 159s A host of '' or port 0 tells the OS to use the default. When a connection 159s cannot be created, raises the last error if *all_errors* is False, 159s and an ExceptionGroup of all errors if *all_errors* is True. 159s """ 159s 159s host, port = address 159s exceptions = [] 159s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 159s af, socktype, proto, canonname, sa = res 159s sock = None 159s try: 159s sock = socket(af, socktype, proto) 159s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 159s sock.settimeout(timeout) 159s if source_address: 159s sock.bind(source_address) 159s > sock.connect(sa) 159s E ConnectionRefusedError: [Errno 111] Connection refused 159s 159s /usr/lib/python3.13/socket.py:849: ConnectionRefusedError 159s __________________________ test_debug_mode[handler5] ___________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_debug_mode(logger): 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response( 159s message, fields=["function", "pid", "thread_name"] 159s ) 159s 159s tests/integration/test_debugging_fields.py:52: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'a119b0bd-10a1-4d79-bebb-11231f0bbcf2' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_debugging_fields.py", line 51, in test_debug_mode 159s logger.error(message) 159s Message: 'a119b0bd-10a1-4d79-bebb-11231f0bbcf2' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_debugging_fields.py:51 a119b0bd-10a1-4d79-bebb-11231f0bbcf2 159s __________________________ test_debug_mode[handler6] ___________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_debug_mode(logger): 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response( 159s message, fields=["function", "pid", "thread_name"] 159s ) 159s 159s tests/integration/test_debugging_fields.py:52: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '5df4406f-44fb-499a-810b-842f00ab6589' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_debugging_fields.py", line 51, in test_debug_mode 159s logger.error(message) 159s Message: '5df4406f-44fb-499a-810b-842f00ab6589' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_debugging_fields.py:51 5df4406f-44fb-499a-810b-842f00ab6589 159s ________________________ test_dynamic_fields[handler0] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_dynamic_fields(logger): 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message, fields=["ozzy", "van_halen"]) 159s 159s tests/integration/test_extra_fields.py:65: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'f1d67505-481c-420d-aa02-875fe40b62c2' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test:test_extra_fields.py:64 f1d67505-481c-420d-aa02-875fe40b62c2 159s ________________________ test_dynamic_fields[handler1] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_dynamic_fields(logger): 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message, fields=["ozzy", "van_halen"]) 159s 159s tests/integration/test_extra_fields.py:65: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '4172b2b8-8366-45a3-aeec-cec38acbac9d' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test:test_extra_fields.py:64 4172b2b8-8366-45a3-aeec-cec38acbac9d 159s ________________________ test_dynamic_fields[handler2] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_dynamic_fields(logger): 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message, fields=["ozzy", "van_halen"]) 159s 159s tests/integration/test_extra_fields.py:65: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '60096be7-4c93-47d0-9bae-7e0ee325cddf' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test:test_extra_fields.py:64 60096be7-4c93-47d0-9bae-7e0ee325cddf 159s ________________________ test_dynamic_fields[handler3] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_dynamic_fields(logger): 159s message = get_unique_message() 159s > logger.error(message) 159s 159s tests/integration/test_extra_fields.py:64: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s /usr/lib/python3.13/logging/__init__.py:1551: in error 159s self._log(ERROR, msg, args, **kwargs) 159s /usr/lib/python3.13/logging/__init__.py:1667: in _log 159s self.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1686: in handle 159s self.callHandlers(record) 159s /usr/lib/python3.13/logging/__init__.py:1744: in callHandlers 159s hdlr.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1027: in handle 159s self.emit(record) 159s /usr/lib/python3/dist-packages/graypy/handler.py:771: in emit 159s connection.request("POST", self.path, pickle, self.headers) 159s /usr/lib/python3.13/http/client.py:1338: in request 159s self._send_request(method, url, body, headers, encode_chunked) 159s /usr/lib/python3.13/http/client.py:1384: in _send_request 159s self.endheaders(body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1333: in endheaders 159s self._send_output(message_body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1093: in _send_output 159s self.send(msg) 159s /usr/lib/python3.13/http/client.py:1037: in send 159s self.connect() 159s /usr/lib/python3.13/http/client.py:1003: in connect 159s self.sock = self._create_connection( 159s /usr/lib/python3.13/socket.py:864: in create_connection 159s raise exceptions[0] 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s address = ('127.0.0.1', 12203), timeout = 5, source_address = None 159s 159s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 159s source_address=None, *, all_errors=False): 159s """Connect to *address* and return the socket object. 159s 159s Convenience function. Connect to *address* (a 2-tuple ``(host, 159s port)``) and return the socket object. Passing the optional 159s *timeout* parameter will set the timeout on the socket instance 159s before attempting to connect. If no *timeout* is supplied, the 159s global default timeout setting returned by :func:`getdefaulttimeout` 159s is used. If *source_address* is set it must be a tuple of (host, port) 159s for the socket to bind as a source address before making the connection. 159s A host of '' or port 0 tells the OS to use the default. When a connection 159s cannot be created, raises the last error if *all_errors* is False, 159s and an ExceptionGroup of all errors if *all_errors* is True. 159s """ 159s 159s host, port = address 159s exceptions = [] 159s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 159s af, socktype, proto, canonname, sa = res 159s sock = None 159s try: 159s sock = socket(af, socktype, proto) 159s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 159s sock.settimeout(timeout) 159s if source_address: 159s sock.bind(source_address) 159s > sock.connect(sa) 159s E ConnectionRefusedError: [Errno 111] Connection refused 159s 159s /usr/lib/python3.13/socket.py:849: ConnectionRefusedError 159s ________________________ test_dynamic_fields[handler4] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_dynamic_fields(logger): 159s message = get_unique_message() 159s > logger.error(message) 159s 159s tests/integration/test_extra_fields.py:64: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s /usr/lib/python3.13/logging/__init__.py:1551: in error 159s self._log(ERROR, msg, args, **kwargs) 159s /usr/lib/python3.13/logging/__init__.py:1667: in _log 159s self.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1686: in handle 159s self.callHandlers(record) 159s /usr/lib/python3.13/logging/__init__.py:1744: in callHandlers 159s hdlr.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1027: in handle 159s self.emit(record) 159s /usr/lib/python3/dist-packages/graypy/handler.py:771: in emit 159s connection.request("POST", self.path, pickle, self.headers) 159s /usr/lib/python3.13/http/client.py:1338: in request 159s self._send_request(method, url, body, headers, encode_chunked) 159s /usr/lib/python3.13/http/client.py:1384: in _send_request 159s self.endheaders(body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1333: in endheaders 159s self._send_output(message_body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1093: in _send_output 159s self.send(msg) 159s /usr/lib/python3.13/http/client.py:1037: in send 159s self.connect() 159s /usr/lib/python3.13/http/client.py:1003: in connect 159s self.sock = self._create_connection( 159s /usr/lib/python3.13/socket.py:864: in create_connection 159s raise exceptions[0] 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s address = ('127.0.0.1', 12203), timeout = 5, source_address = None 159s 159s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 159s source_address=None, *, all_errors=False): 159s """Connect to *address* and return the socket object. 159s 159s Convenience function. Connect to *address* (a 2-tuple ``(host, 159s port)``) and return the socket object. Passing the optional 159s *timeout* parameter will set the timeout on the socket instance 159s before attempting to connect. If no *timeout* is supplied, the 159s global default timeout setting returned by :func:`getdefaulttimeout` 159s is used. If *source_address* is set it must be a tuple of (host, port) 159s for the socket to bind as a source address before making the connection. 159s A host of '' or port 0 tells the OS to use the default. When a connection 159s cannot be created, raises the last error if *all_errors* is False, 159s and an ExceptionGroup of all errors if *all_errors* is True. 159s """ 159s 159s host, port = address 159s exceptions = [] 159s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 159s af, socktype, proto, canonname, sa = res 159s sock = None 159s try: 159s sock = socket(af, socktype, proto) 159s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 159s sock.settimeout(timeout) 159s if source_address: 159s sock.bind(source_address) 159s > sock.connect(sa) 159s E ConnectionRefusedError: [Errno 111] Connection refused 159s 159s /usr/lib/python3.13/socket.py:849: ConnectionRefusedError 159s ________________________ test_dynamic_fields[handler5] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_dynamic_fields(logger): 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message, fields=["ozzy", "van_halen"]) 159s 159s tests/integration/test_extra_fields.py:65: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'bc853d6f-1344-4daf-9897-aaf65a536300' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_extra_fields.py", line 64, in test_dynamic_fields 159s logger.error(message) 159s Message: 'bc853d6f-1344-4daf-9897-aaf65a536300' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test:test_extra_fields.py:64 bc853d6f-1344-4daf-9897-aaf65a536300 159s ________________________ test_dynamic_fields[handler6] _________________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_dynamic_fields(logger): 159s message = get_unique_message() 159s logger.error(message) 159s > graylog_response = get_graylog_response(message, fields=["ozzy", "van_halen"]) 159s 159s tests/integration/test_extra_fields.py:65: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '4c603fde-e9ae-40fa-a513-17675ef2a11f' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_extra_fields.py", line 64, in test_dynamic_fields 159s logger.error(message) 159s Message: '4c603fde-e9ae-40fa-a513-17675ef2a11f' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test:test_extra_fields.py:64 4c603fde-e9ae-40fa-a513-17675ef2a11f 159s _____________________ test_non_status_field_log[handler0] ______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_non_status_field_log(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar"}) 159s > graylog_response = get_graylog_response(message, fields=["foo"]) 159s 159s tests/integration/test_status_issue.py:25: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '306cacc0-d1b5-4b9f-b453-a441f676339f' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:24 306cacc0-d1b5-4b9f-b453-a441f676339f 159s _____________________ test_non_status_field_log[handler1] ______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_non_status_field_log(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar"}) 159s > graylog_response = get_graylog_response(message, fields=["foo"]) 159s 159s tests/integration/test_status_issue.py:25: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '057655d8-7928-4a44-8460-80fc95813445' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:24 057655d8-7928-4a44-8460-80fc95813445 159s _____________________ test_non_status_field_log[handler2] ______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_non_status_field_log(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar"}) 159s > graylog_response = get_graylog_response(message, fields=["foo"]) 159s 159s tests/integration/test_status_issue.py:25: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '1ffdbcc6-5651-4a9a-a23a-1502a56de153' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:24 1ffdbcc6-5651-4a9a-a23a-1502a56de153 159s _____________________ test_non_status_field_log[handler3] ______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_non_status_field_log(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar"}) 159s > graylog_response = get_graylog_response(message, fields=["foo"]) 159s 159s tests/integration/test_status_issue.py:25: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '031dfe91-f106-48ab-9b25-7eb79550354e' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_status_issue.py", line 24, in test_non_status_field_log 159s logger.error(message, extra={"foo": "bar"}) 159s Message: '031dfe91-f106-48ab-9b25-7eb79550354e' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:24 031dfe91-f106-48ab-9b25-7eb79550354e 159s _____________________ test_non_status_field_log[handler4] ______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_non_status_field_log(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar"}) 159s > graylog_response = get_graylog_response(message, fields=["foo"]) 159s 159s tests/integration/test_status_issue.py:25: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'ed2df1fc-2842-4fff-94e9-909a7fcd693e' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_status_issue.py", line 24, in test_non_status_field_log 159s logger.error(message, extra={"foo": "bar"}) 159s Message: 'ed2df1fc-2842-4fff-94e9-909a7fcd693e' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:24 ed2df1fc-2842-4fff-94e9-909a7fcd693e 159s _____________________ test_non_status_field_log[handler5] ______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_non_status_field_log(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar"}) 159s > graylog_response = get_graylog_response(message, fields=["foo"]) 159s 159s tests/integration/test_status_issue.py:25: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '13c58f9a-770c-45cf-a80c-3a0e5b4c78a1' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_status_issue.py", line 24, in test_non_status_field_log 159s logger.error(message, extra={"foo": "bar"}) 159s Message: '13c58f9a-770c-45cf-a80c-3a0e5b4c78a1' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:24 13c58f9a-770c-45cf-a80c-3a0e5b4c78a1 159s _____________________ test_non_status_field_log[handler6] ______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_non_status_field_log(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar"}) 159s > graylog_response = get_graylog_response(message, fields=["foo"]) 159s 159s tests/integration/test_status_issue.py:25: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '7c65cb06-f65d-430f-8eee-db557ec953d2' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_status_issue.py", line 24, in test_non_status_field_log 159s logger.error(message, extra={"foo": "bar"}) 159s Message: '7c65cb06-f65d-430f-8eee-db557ec953d2' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:24 7c65cb06-f65d-430f-8eee-db557ec953d2 159s _____________________ test_non_status_field_log[handler7] ______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_non_status_field_log(logger): 159s message = get_unique_message() 159s > logger.error(message, extra={"foo": "bar"}) 159s 159s tests/integration/test_status_issue.py:24: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s /usr/lib/python3.13/logging/__init__.py:1551: in error 159s self._log(ERROR, msg, args, **kwargs) 159s /usr/lib/python3.13/logging/__init__.py:1667: in _log 159s self.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1686: in handle 159s self.callHandlers(record) 159s /usr/lib/python3.13/logging/__init__.py:1744: in callHandlers 159s hdlr.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1027: in handle 159s self.emit(record) 159s /usr/lib/python3/dist-packages/graypy/handler.py:771: in emit 159s connection.request("POST", self.path, pickle, self.headers) 159s /usr/lib/python3.13/http/client.py:1338: in request 159s self._send_request(method, url, body, headers, encode_chunked) 159s /usr/lib/python3.13/http/client.py:1384: in _send_request 159s self.endheaders(body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1333: in endheaders 159s self._send_output(message_body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1093: in _send_output 159s self.send(msg) 159s /usr/lib/python3.13/http/client.py:1037: in send 159s self.connect() 159s /usr/lib/python3.13/http/client.py:1003: in connect 159s self.sock = self._create_connection( 159s /usr/lib/python3.13/socket.py:864: in create_connection 159s raise exceptions[0] 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s address = ('127.0.0.1', 12203), timeout = 5, source_address = None 159s 159s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 159s source_address=None, *, all_errors=False): 159s """Connect to *address* and return the socket object. 159s 159s Convenience function. Connect to *address* (a 2-tuple ``(host, 159s port)``) and return the socket object. Passing the optional 159s *timeout* parameter will set the timeout on the socket instance 159s before attempting to connect. If no *timeout* is supplied, the 159s global default timeout setting returned by :func:`getdefaulttimeout` 159s is used. If *source_address* is set it must be a tuple of (host, port) 159s for the socket to bind as a source address before making the connection. 159s A host of '' or port 0 tells the OS to use the default. When a connection 159s cannot be created, raises the last error if *all_errors* is False, 159s and an ExceptionGroup of all errors if *all_errors* is True. 159s """ 159s 159s host, port = address 159s exceptions = [] 159s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 159s af, socktype, proto, canonname, sa = res 159s sock = None 159s try: 159s sock = socket(af, socktype, proto) 159s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 159s sock.settimeout(timeout) 159s if source_address: 159s sock.bind(source_address) 159s > sock.connect(sa) 159s E ConnectionRefusedError: [Errno 111] Connection refused 159s 159s /usr/lib/python3.13/socket.py:849: ConnectionRefusedError 159s _____________________ test_non_status_field_log[handler8] ______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_non_status_field_log(logger): 159s message = get_unique_message() 159s > logger.error(message, extra={"foo": "bar"}) 159s 159s tests/integration/test_status_issue.py:24: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s /usr/lib/python3.13/logging/__init__.py:1551: in error 159s self._log(ERROR, msg, args, **kwargs) 159s /usr/lib/python3.13/logging/__init__.py:1667: in _log 159s self.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1686: in handle 159s self.callHandlers(record) 159s /usr/lib/python3.13/logging/__init__.py:1744: in callHandlers 159s hdlr.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1027: in handle 159s self.emit(record) 159s /usr/lib/python3/dist-packages/graypy/handler.py:771: in emit 159s connection.request("POST", self.path, pickle, self.headers) 159s /usr/lib/python3.13/http/client.py:1338: in request 159s self._send_request(method, url, body, headers, encode_chunked) 159s /usr/lib/python3.13/http/client.py:1384: in _send_request 159s self.endheaders(body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1333: in endheaders 159s self._send_output(message_body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1093: in _send_output 159s self.send(msg) 159s /usr/lib/python3.13/http/client.py:1037: in send 159s self.connect() 159s /usr/lib/python3.13/http/client.py:1003: in connect 159s self.sock = self._create_connection( 159s /usr/lib/python3.13/socket.py:864: in create_connection 159s raise exceptions[0] 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s address = ('127.0.0.1', 12203), timeout = 5, source_address = None 159s 159s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 159s source_address=None, *, all_errors=False): 159s """Connect to *address* and return the socket object. 159s 159s Convenience function. Connect to *address* (a 2-tuple ``(host, 159s port)``) and return the socket object. Passing the optional 159s *timeout* parameter will set the timeout on the socket instance 159s before attempting to connect. If no *timeout* is supplied, the 159s global default timeout setting returned by :func:`getdefaulttimeout` 159s is used. If *source_address* is set it must be a tuple of (host, port) 159s for the socket to bind as a source address before making the connection. 159s A host of '' or port 0 tells the OS to use the default. When a connection 159s cannot be created, raises the last error if *all_errors* is False, 159s and an ExceptionGroup of all errors if *all_errors* is True. 159s """ 159s 159s host, port = address 159s exceptions = [] 159s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 159s af, socktype, proto, canonname, sa = res 159s sock = None 159s try: 159s sock = socket(af, socktype, proto) 159s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 159s sock.settimeout(timeout) 159s if source_address: 159s sock.bind(source_address) 159s > sock.connect(sa) 159s E ConnectionRefusedError: [Errno 111] Connection refused 159s 159s /usr/lib/python3.13/socket.py:849: ConnectionRefusedError 159s _____________________ test_non_status_field_log[handler9] ______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_non_status_field_log(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar"}) 159s > graylog_response = get_graylog_response(message, fields=["foo"]) 159s 159s tests/integration/test_status_issue.py:25: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '80f6d45c-7641-4635-b32a-796a4e7ef6fc' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:24 80f6d45c-7641-4635-b32a-796a4e7ef6fc 159s _____________________ test_non_status_field_log[handler10] _____________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_non_status_field_log(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar"}) 159s > graylog_response = get_graylog_response(message, fields=["foo"]) 159s 159s tests/integration/test_status_issue.py:25: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '7bb19c8d-2172-4f44-9f13-1358073812fb' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:24 7bb19c8d-2172-4f44-9f13-1358073812fb 159s _____________________ test_non_status_field_log[handler11] _____________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_non_status_field_log(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar"}) 159s > graylog_response = get_graylog_response(message, fields=["foo"]) 159s 159s tests/integration/test_status_issue.py:25: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '94e25492-6607-4a63-bc07-f80fd2185812' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:24 94e25492-6607-4a63-bc07-f80fd2185812 159s _____________________ test_non_status_field_log[handler12] _____________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_non_status_field_log(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar"}) 159s > graylog_response = get_graylog_response(message, fields=["foo"]) 159s 159s tests/integration/test_status_issue.py:25: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'e5c6a34e-76fc-482a-b212-ce3f33caa3ae' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:24 e5c6a34e-76fc-482a-b212-ce3f33caa3ae 159s ______________________ test_status_field_issue[handler0] _______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["status"]) 159s 159s tests/integration/test_status_issue.py:36: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '333aea6b-a636-45ea-ac1a-43073368b730' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:35 333aea6b-a636-45ea-ac1a-43073368b730 159s ______________________ test_status_field_issue[handler1] _______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["status"]) 159s 159s tests/integration/test_status_issue.py:36: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '6c90d2aa-b39c-46c7-8bbd-7f0c9592d5fa' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:35 6c90d2aa-b39c-46c7-8bbd-7f0c9592d5fa 159s ______________________ test_status_field_issue[handler2] _______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["status"]) 159s 159s tests/integration/test_status_issue.py:36: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'ee5bfbb8-3ff0-44a2-aa79-12fc3e4941ea' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:35 ee5bfbb8-3ff0-44a2-aa79-12fc3e4941ea 159s ______________________ test_status_field_issue[handler3] _______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["status"]) 159s 159s tests/integration/test_status_issue.py:36: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '32c5d77f-6b0b-4a2a-84ff-09daa187c829' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_status_issue.py", line 35, in test_status_field_issue 159s logger.error(message, extra={"status": "OK"}) 159s Message: '32c5d77f-6b0b-4a2a-84ff-09daa187c829' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:35 32c5d77f-6b0b-4a2a-84ff-09daa187c829 159s ______________________ test_status_field_issue[handler4] _______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["status"]) 159s 159s tests/integration/test_status_issue.py:36: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'e6f0f432-3055-44dd-8291-25349e94ce2f' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_status_issue.py", line 35, in test_status_field_issue 159s logger.error(message, extra={"status": "OK"}) 159s Message: 'e6f0f432-3055-44dd-8291-25349e94ce2f' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:35 e6f0f432-3055-44dd-8291-25349e94ce2f 159s ______________________ test_status_field_issue[handler5] _______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["status"]) 159s 159s tests/integration/test_status_issue.py:36: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '75a18489-0465-4168-a1e9-dc012b205941' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_status_issue.py", line 35, in test_status_field_issue 159s logger.error(message, extra={"status": "OK"}) 159s Message: '75a18489-0465-4168-a1e9-dc012b205941' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:35 75a18489-0465-4168-a1e9-dc012b205941 159s ______________________ test_status_field_issue[handler6] _______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["status"]) 159s 159s tests/integration/test_status_issue.py:36: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '955afb04-1de6-4be0-96c3-20b46d86fd54' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_status_issue.py", line 35, in test_status_field_issue 159s logger.error(message, extra={"status": "OK"}) 159s Message: '955afb04-1de6-4be0-96c3-20b46d86fd54' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:35 955afb04-1de6-4be0-96c3-20b46d86fd54 159s ______________________ test_status_field_issue[handler7] _______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue(logger): 159s message = get_unique_message() 159s > logger.error(message, extra={"status": "OK"}) 159s 159s tests/integration/test_status_issue.py:35: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s /usr/lib/python3.13/logging/__init__.py:1551: in error 159s self._log(ERROR, msg, args, **kwargs) 159s /usr/lib/python3.13/logging/__init__.py:1667: in _log 159s self.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1686: in handle 159s self.callHandlers(record) 159s /usr/lib/python3.13/logging/__init__.py:1744: in callHandlers 159s hdlr.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1027: in handle 159s self.emit(record) 159s /usr/lib/python3/dist-packages/graypy/handler.py:771: in emit 159s connection.request("POST", self.path, pickle, self.headers) 159s /usr/lib/python3.13/http/client.py:1338: in request 159s self._send_request(method, url, body, headers, encode_chunked) 159s /usr/lib/python3.13/http/client.py:1384: in _send_request 159s self.endheaders(body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1333: in endheaders 159s self._send_output(message_body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1093: in _send_output 159s self.send(msg) 159s /usr/lib/python3.13/http/client.py:1037: in send 159s self.connect() 159s /usr/lib/python3.13/http/client.py:1003: in connect 159s self.sock = self._create_connection( 159s /usr/lib/python3.13/socket.py:864: in create_connection 159s raise exceptions[0] 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s address = ('127.0.0.1', 12203), timeout = 5, source_address = None 159s 159s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 159s source_address=None, *, all_errors=False): 159s """Connect to *address* and return the socket object. 159s 159s Convenience function. Connect to *address* (a 2-tuple ``(host, 159s port)``) and return the socket object. Passing the optional 159s *timeout* parameter will set the timeout on the socket instance 159s before attempting to connect. If no *timeout* is supplied, the 159s global default timeout setting returned by :func:`getdefaulttimeout` 159s is used. If *source_address* is set it must be a tuple of (host, port) 159s for the socket to bind as a source address before making the connection. 159s A host of '' or port 0 tells the OS to use the default. When a connection 159s cannot be created, raises the last error if *all_errors* is False, 159s and an ExceptionGroup of all errors if *all_errors* is True. 159s """ 159s 159s host, port = address 159s exceptions = [] 159s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 159s af, socktype, proto, canonname, sa = res 159s sock = None 159s try: 159s sock = socket(af, socktype, proto) 159s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 159s sock.settimeout(timeout) 159s if source_address: 159s sock.bind(source_address) 159s > sock.connect(sa) 159s E ConnectionRefusedError: [Errno 111] Connection refused 159s 159s /usr/lib/python3.13/socket.py:849: ConnectionRefusedError 159s ______________________ test_status_field_issue[handler8] _______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue(logger): 159s message = get_unique_message() 159s > logger.error(message, extra={"status": "OK"}) 159s 159s tests/integration/test_status_issue.py:35: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s /usr/lib/python3.13/logging/__init__.py:1551: in error 159s self._log(ERROR, msg, args, **kwargs) 159s /usr/lib/python3.13/logging/__init__.py:1667: in _log 159s self.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1686: in handle 159s self.callHandlers(record) 159s /usr/lib/python3.13/logging/__init__.py:1744: in callHandlers 159s hdlr.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1027: in handle 159s self.emit(record) 159s /usr/lib/python3/dist-packages/graypy/handler.py:771: in emit 159s connection.request("POST", self.path, pickle, self.headers) 159s /usr/lib/python3.13/http/client.py:1338: in request 159s self._send_request(method, url, body, headers, encode_chunked) 159s /usr/lib/python3.13/http/client.py:1384: in _send_request 159s self.endheaders(body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1333: in endheaders 159s self._send_output(message_body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1093: in _send_output 159s self.send(msg) 159s /usr/lib/python3.13/http/client.py:1037: in send 159s self.connect() 159s /usr/lib/python3.13/http/client.py:1003: in connect 159s self.sock = self._create_connection( 159s /usr/lib/python3.13/socket.py:864: in create_connection 159s raise exceptions[0] 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s address = ('127.0.0.1', 12203), timeout = 5, source_address = None 159s 159s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 159s source_address=None, *, all_errors=False): 159s """Connect to *address* and return the socket object. 159s 159s Convenience function. Connect to *address* (a 2-tuple ``(host, 159s port)``) and return the socket object. Passing the optional 159s *timeout* parameter will set the timeout on the socket instance 159s before attempting to connect. If no *timeout* is supplied, the 159s global default timeout setting returned by :func:`getdefaulttimeout` 159s is used. If *source_address* is set it must be a tuple of (host, port) 159s for the socket to bind as a source address before making the connection. 159s A host of '' or port 0 tells the OS to use the default. When a connection 159s cannot be created, raises the last error if *all_errors* is False, 159s and an ExceptionGroup of all errors if *all_errors* is True. 159s """ 159s 159s host, port = address 159s exceptions = [] 159s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 159s af, socktype, proto, canonname, sa = res 159s sock = None 159s try: 159s sock = socket(af, socktype, proto) 159s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 159s sock.settimeout(timeout) 159s if source_address: 159s sock.bind(source_address) 159s > sock.connect(sa) 159s E ConnectionRefusedError: [Errno 111] Connection refused 159s 159s /usr/lib/python3.13/socket.py:849: ConnectionRefusedError 159s ______________________ test_status_field_issue[handler9] _______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["status"]) 159s 159s tests/integration/test_status_issue.py:36: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'e0c5385b-a9cf-4011-9fd0-8445fa7d7de7' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:35 e0c5385b-a9cf-4011-9fd0-8445fa7d7de7 159s ______________________ test_status_field_issue[handler10] ______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["status"]) 159s 159s tests/integration/test_status_issue.py:36: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'e456f7cc-e98a-46d4-8c2c-d30ca39b9cc1' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:35 e456f7cc-e98a-46d4-8c2c-d30ca39b9cc1 159s ______________________ test_status_field_issue[handler11] ______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["status"]) 159s 159s tests/integration/test_status_issue.py:36: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '76b35afa-5989-4abf-a9d6-0aca6ce1bb6c' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:35 76b35afa-5989-4abf-a9d6-0aca6ce1bb6c 159s ______________________ test_status_field_issue[handler12] ______________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["status"]) 159s 159s tests/integration/test_status_issue.py:36: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '9e660768-3564-4b99-9b38-b81fa885ecc5' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:35 9e660768-3564-4b99-9b38-b81fa885ecc5 159s ___________________ test_status_field_issue_multi[handler0] ____________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue_multi(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["foo", "status"]) 159s 159s tests/integration/test_status_issue.py:47: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '3138bdbc-4787-475e-97f9-96f808a32521' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:46 3138bdbc-4787-475e-97f9-96f808a32521 159s ___________________ test_status_field_issue_multi[handler1] ____________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue_multi(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["foo", "status"]) 159s 159s tests/integration/test_status_issue.py:47: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'd9b42970-35b3-4405-aa23-45bb8af5f6a6' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:46 d9b42970-35b3-4405-aa23-45bb8af5f6a6 159s ___________________ test_status_field_issue_multi[handler2] ____________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue_multi(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["foo", "status"]) 159s 159s tests/integration/test_status_issue.py:47: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '068368c7-d513-4475-8f39-76dd62897812' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:46 068368c7-d513-4475-8f39-76dd62897812 159s ___________________ test_status_field_issue_multi[handler3] ____________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue_multi(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["foo", "status"]) 159s 159s tests/integration/test_status_issue.py:47: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = 'adf006ee-c059-493e-9604-1be7c01268d2' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_status_issue.py", line 46, in test_status_field_issue_multi 159s logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s Message: 'adf006ee-c059-493e-9604-1be7c01268d2' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:46 adf006ee-c059-493e-9604-1be7c01268d2 159s ___________________ test_status_field_issue_multi[handler4] ____________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue_multi(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["foo", "status"]) 159s 159s tests/integration/test_status_issue.py:47: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '37d86e11-f64b-462b-9c5b-5b6af6e6f00c' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_status_issue.py", line 46, in test_status_field_issue_multi 159s logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s Message: '37d86e11-f64b-462b-9c5b-5b6af6e6f00c' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:46 37d86e11-f64b-462b-9c5b-5b6af6e6f00c 159s ___________________ test_status_field_issue_multi[handler5] ____________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue_multi(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["foo", "status"]) 159s 159s tests/integration/test_status_issue.py:47: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '6c064603-2e89-4246-a29f-ef1268b8f5f2' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_status_issue.py", line 46, in test_status_field_issue_multi 159s logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s Message: '6c064603-2e89-4246-a29f-ef1268b8f5f2' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:46 6c064603-2e89-4246-a29f-ef1268b8f5f2 159s ___________________ test_status_field_issue_multi[handler6] ____________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue_multi(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["foo", "status"]) 159s 159s tests/integration/test_status_issue.py:47: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '22958ac9-a8b9-4ebd-93a2-d233f88efc80' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ----------------------------- Captured stderr call ----------------------------- 159s --- Logging error --- 159s Traceback (most recent call last): 159s File "/usr/lib/python3.13/logging/handlers.py", line 692, in emit 159s self.send(s) 159s ~~~~~~~~~^^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 634, in send 159s self.createSocket() 159s ~~~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3.13/logging/handlers.py", line 614, in createSocket 159s self.sock = self.makeSocket() 159s ~~~~~~~~~~~~~~~^^ 159s File "/usr/lib/python3/dist-packages/graypy/handler.py", line 709, in makeSocket 159s wrapped_socket = ssl.wrap_socket( 159s ^^^^^^^^^^^^^^^ 159s AttributeError: module 'ssl' has no attribute 'wrap_socket' 159s Call stack: 159s File "", line 198, in _run_module_as_main 159s File "", line 88, in _run_code 159s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9, in 159s raise SystemExit(pytest.console_main()) 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201, in console_main 159s code = main() 159s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 175, in main 159s ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330, in pytest_cmdline_main 159s return wrap_session(config, _main) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283, in wrap_session 159s session.exitstatus = doit(config, session) or 0 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 337, in _main 159s config.hook.pytest_runtestloop(session=session) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 362, in pytest_runtestloop 159s item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol 159s runtestprotocol(item, nextitem=nextitem) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 132, in runtestprotocol 159s reports.append(call_and_report(item, "call", log)) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241, in call_and_report 159s call = CallInfo.from_call( 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call 159s result: TResult | None = func() 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in 159s lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call 159s item.runtest() 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest 159s self.ihook.pytest_pyfunc_call(pyfuncitem=self) 159s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__ 159s return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec 159s return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 159s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall 159s res = hook_impl.function(*args) 159s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call 159s result = testfunction(**testargs) 159s File "/tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_status_issue.py", line 46, in test_status_field_issue_multi 159s logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s Message: '22958ac9-a8b9-4ebd-93a2-d233f88efc80' 159s Arguments: () 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:46 22958ac9-a8b9-4ebd-93a2-d233f88efc80 159s ___________________ test_status_field_issue_multi[handler7] ____________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue_multi(logger): 159s message = get_unique_message() 159s > logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s 159s tests/integration/test_status_issue.py:46: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s /usr/lib/python3.13/logging/__init__.py:1551: in error 159s self._log(ERROR, msg, args, **kwargs) 159s /usr/lib/python3.13/logging/__init__.py:1667: in _log 159s self.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1686: in handle 159s self.callHandlers(record) 159s /usr/lib/python3.13/logging/__init__.py:1744: in callHandlers 159s hdlr.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1027: in handle 159s self.emit(record) 159s /usr/lib/python3/dist-packages/graypy/handler.py:771: in emit 159s connection.request("POST", self.path, pickle, self.headers) 159s /usr/lib/python3.13/http/client.py:1338: in request 159s self._send_request(method, url, body, headers, encode_chunked) 159s /usr/lib/python3.13/http/client.py:1384: in _send_request 159s self.endheaders(body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1333: in endheaders 159s self._send_output(message_body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1093: in _send_output 159s self.send(msg) 159s /usr/lib/python3.13/http/client.py:1037: in send 159s self.connect() 159s /usr/lib/python3.13/http/client.py:1003: in connect 159s self.sock = self._create_connection( 159s /usr/lib/python3.13/socket.py:864: in create_connection 159s raise exceptions[0] 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s address = ('127.0.0.1', 12203), timeout = 5, source_address = None 159s 159s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 159s source_address=None, *, all_errors=False): 159s """Connect to *address* and return the socket object. 159s 159s Convenience function. Connect to *address* (a 2-tuple ``(host, 159s port)``) and return the socket object. Passing the optional 159s *timeout* parameter will set the timeout on the socket instance 159s before attempting to connect. If no *timeout* is supplied, the 159s global default timeout setting returned by :func:`getdefaulttimeout` 159s is used. If *source_address* is set it must be a tuple of (host, port) 159s for the socket to bind as a source address before making the connection. 159s A host of '' or port 0 tells the OS to use the default. When a connection 159s cannot be created, raises the last error if *all_errors* is False, 159s and an ExceptionGroup of all errors if *all_errors* is True. 159s """ 159s 159s host, port = address 159s exceptions = [] 159s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 159s af, socktype, proto, canonname, sa = res 159s sock = None 159s try: 159s sock = socket(af, socktype, proto) 159s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 159s sock.settimeout(timeout) 159s if source_address: 159s sock.bind(source_address) 159s > sock.connect(sa) 159s E ConnectionRefusedError: [Errno 111] Connection refused 159s 159s /usr/lib/python3.13/socket.py:849: ConnectionRefusedError 159s ___________________ test_status_field_issue_multi[handler8] ____________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue_multi(logger): 159s message = get_unique_message() 159s > logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s 159s tests/integration/test_status_issue.py:46: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s /usr/lib/python3.13/logging/__init__.py:1551: in error 159s self._log(ERROR, msg, args, **kwargs) 159s /usr/lib/python3.13/logging/__init__.py:1667: in _log 159s self.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1686: in handle 159s self.callHandlers(record) 159s /usr/lib/python3.13/logging/__init__.py:1744: in callHandlers 159s hdlr.handle(record) 159s /usr/lib/python3.13/logging/__init__.py:1027: in handle 159s self.emit(record) 159s /usr/lib/python3/dist-packages/graypy/handler.py:771: in emit 159s connection.request("POST", self.path, pickle, self.headers) 159s /usr/lib/python3.13/http/client.py:1338: in request 159s self._send_request(method, url, body, headers, encode_chunked) 159s /usr/lib/python3.13/http/client.py:1384: in _send_request 159s self.endheaders(body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1333: in endheaders 159s self._send_output(message_body, encode_chunked=encode_chunked) 159s /usr/lib/python3.13/http/client.py:1093: in _send_output 159s self.send(msg) 159s /usr/lib/python3.13/http/client.py:1037: in send 159s self.connect() 159s /usr/lib/python3.13/http/client.py:1003: in connect 159s self.sock = self._create_connection( 159s /usr/lib/python3.13/socket.py:864: in create_connection 159s raise exceptions[0] 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s address = ('127.0.0.1', 12203), timeout = 5, source_address = None 159s 159s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 159s source_address=None, *, all_errors=False): 159s """Connect to *address* and return the socket object. 159s 159s Convenience function. Connect to *address* (a 2-tuple ``(host, 159s port)``) and return the socket object. Passing the optional 159s *timeout* parameter will set the timeout on the socket instance 159s before attempting to connect. If no *timeout* is supplied, the 159s global default timeout setting returned by :func:`getdefaulttimeout` 159s is used. If *source_address* is set it must be a tuple of (host, port) 159s for the socket to bind as a source address before making the connection. 159s A host of '' or port 0 tells the OS to use the default. When a connection 159s cannot be created, raises the last error if *all_errors* is False, 159s and an ExceptionGroup of all errors if *all_errors* is True. 159s """ 159s 159s host, port = address 159s exceptions = [] 159s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 159s af, socktype, proto, canonname, sa = res 159s sock = None 159s try: 159s sock = socket(af, socktype, proto) 159s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 159s sock.settimeout(timeout) 159s if source_address: 159s sock.bind(source_address) 159s > sock.connect(sa) 159s E ConnectionRefusedError: [Errno 111] Connection refused 159s 159s /usr/lib/python3.13/socket.py:849: ConnectionRefusedError 159s ___________________ test_status_field_issue_multi[handler9] ____________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue_multi(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["foo", "status"]) 159s 159s tests/integration/test_status_issue.py:47: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '279a2a93-16fd-4fde-ac42-26fc27ece717' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:46 279a2a93-16fd-4fde-ac42-26fc27ece717 159s ___________________ test_status_field_issue_multi[handler10] ___________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue_multi(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["foo", "status"]) 159s 159s tests/integration/test_status_issue.py:47: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '1966fca7-1499-49be-b2e9-3a0c8be2069f' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:46 1966fca7-1499-49be-b2e9-3a0c8be2069f 159s ___________________ test_status_field_issue_multi[handler11] ___________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue_multi(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["foo", "status"]) 159s 159s tests/integration/test_status_issue.py:47: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '70622222-ff37-4df8-9fe4-93d8f11f8d71' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:46 70622222-ff37-4df8-9fe4-93d8f11f8d71 159s ___________________ test_status_field_issue_multi[handler12] ___________________ 159s 159s logger = 159s 159s @pytest.mark.skipif(not LOCAL_GRAYLOG_UP, reason="local Graylog instance not up") 159s def test_status_field_issue_multi(logger): 159s message = get_unique_message() 159s logger.error(message, extra={"foo": "bar", "status": "OK"}) 159s > graylog_response = get_graylog_response(message, fields=["foo", "status"]) 159s 159s tests/integration/test_status_issue.py:47: 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s tests/integration/helper.py:39: in get_graylog_response 159s return _parse_api_response( 159s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 159s 159s api_response = 159s wanted_message = '478b6d7a-77af-4487-8272-251da5264b3c' 159s 159s def _parse_api_response(api_response, wanted_message): 159s > assert api_response.status_code == 200 159s E AssertionError 159s 159s tests/integration/helper.py:62: AssertionError 159s ------------------------------ Captured log call ------------------------------- 159s ERROR test_logger:test_status_issue.py:46 478b6d7a-77af-4487-8272-251da5264b3c 159s =============================== warnings summary =============================== 159s tests/helper.py:66 159s /tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/helper.py:66: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. 159s Use @pytest.fixture instead; they are the same. 159s @pytest.yield_fixture 159s 159s tests/helper.py:74 159s /tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/helper.py:74: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. 159s Use @pytest.fixture instead; they are the same. 159s @pytest.yield_fixture 159s 159s tests/integration/test_extra_fields.py:50 159s /tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/integration/test_extra_fields.py:50: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. 159s Use @pytest.fixture instead; they are the same. 159s @pytest.yield_fixture 159s 159s tests/unit/test_handler.py:36 159s /tmp/autopkgtest.XfW4ZK/autopkgtest_tmp/tests/unit/test_handler.py:36: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. 159s Use @pytest.fixture instead; they are the same. 159s @pytest.yield_fixture 159s 159s tests/unit/test_chunking.py::test_gelf_chunkers_overflow[GELFWarningChunker] 159s /usr/lib/python3/dist-packages/graypy/handler.py:467: GELFChunkOverflowWarning: chunk overflowing GELF message: b'x\x9c\xed\x94M\n\xc20\x10\x85\xef2\xebR\xfa/\xf4\x0e\x8a\x0b\xf7!\xc4\xa4\x1d\x9a&\xa5\x99*"\xde\xddI\x95\xe2\x19\xa4o5\xf3\xe6e\xc8f\xbe\'\xdc\xf4\x1c\xd0;h!O3H\xa0\xf7\x81\xb8\x91\x0b\xf9i\xe8Hs\x97@\xe8\xfdLb\xd4!\xc8N\xc7\xe8\xae]\xbb\xfe^|\xfa\x84|\xf6$\xc7\t\xda\xfcPgeU\x95y\x916E]\x94M\x99\x80\xd57m\xa1m\x120R\xa1Ez0\x1e"5D\xa7\xad\x11\xaa_\xdc\xc0\x84\x11\x9e9c\xac\xbf\xf3F\x83\x96\x19\xe2\x16k\xf99\xba\xad\x16fq\x8aV\x16}\x8d\t\xaf\xd0\x16Y\x9dqM\xfd\xac\xe5U89F\x00\x1d%\xba\xcb\xea@\xcc\xcd^1\x9b~\x87\xe7\x8f\x15\xa7\xfc{5\x08t\xc6o\x8bI\x86\xe1\xb4\x86\xa3\xf1z\x03\xdd\xea\x1f\xaa' 159s warnings.warn( 159s 159s tests/unit/test_chunking.py::test_gelf_chunkers_overflow[GELFTruncatingChunker] 159s /usr/lib/python3/dist-packages/graypy/handler.py:570: GELFChunkOverflowWarning: truncating GELF chunk overflowing message: b'x\x9c\xed\x94\xc1\x0e\x820\x0c\x86\xdf\xa5gb\x06\x02&\xbc\x83\xc6\x83\xf7e\x99\x1b4\x8c\x8d\xb0\x821\xc6w\xb7Cc|\x06\xc3\x7fj\xff\xfekv\xe9\xf7\x80\xc5L\x11\x83\x87\x06\xf2\x9d\x80\x0c\xba\x10\x89\x1b5S\x18\xfb\x96\x0cw\x19\xc4.L$\x07\x13\xa3jM\x8an\xda\xb4\xe9\xef\xc5\xa7O\xc8gOj\x18\xa1\xc9\x0f\x95\xd8\x97\xe5>/vuQ\xe7\xa28d\xe0\xccb\x1c4u\x06VitHw\xc6C\xa2\x86l\x8d\xb3Rw\xb3\xef\x99020g\xac\x0b7\xdeh\xd11C\xfc\xec\x1c?G\xff\xad\xa5\x9d\xbd\xa6\x95E\x1fc\xc4+4\x85\xa8\x04\xd7\xd4MF]\xa5WC\x02\xd0Q\xa1\xbf\xac\x0e\xa4\xdc\x144\xb3\xe9wx~[i\xca\xbf\xd7\xbdDo\xc3w1\xa9\xd8\x9f\xd6p2\x9e/\xdb\x89\x1f\xa7' 159s warnings.warn( 159s 159s tests/unit/test_chunking.py::test_gelf_chunkers_overflow[GELFTruncatingChunker] 159s /usr/lib/python3/dist-packages/graypy/handler.py:577: GELFTruncationFailureWarning: truncation failed preventing chunk overflowing for GELF message: b'x\x9c\xed\x94\xc1\x0e\x820\x0c\x86\xdf\xa5gb\x06\x02&\xbc\x83\xc6\x83\xf7e\x99\x1b4\x8c\x8d\xb0\x821\xc6w\xb7Cc|\x06\xc3\x7fj\xff\xfekv\xe9\xf7\x80\xc5L\x11\x83\x87\x06\xf2\x9d\x80\x0c\xba\x10\x89\x1b5S\x18\xfb\x96\x0cw\x19\xc4.L$\x07\x13\xa3jM\x8an\xda\xb4\xe9\xef\xc5\xa7O\xc8gOj\x18\xa1\xc9\x0f\x95\xd8\x97\xe5>/vuQ\xe7\xa28d\xe0\xccb\x1c4u\x06VitHw\xc6C\xa2\x86l\x8d\xb3Rw\xb3\xef\x99020g\xac\x0b7\xdeh\xd11C\xfc\xec\x1c?G\xff\xad\xa5\x9d\xbd\xa6\x95E\x1fc\xc4+4\x85\xa8\x04\xd7\xd4MF]\xa5WC\x02\xd0Q\xa1\xbf\xac\x0e\xa4\xdc\x144\xb3\xe9wx~[i\xca\xbf\xd7\xbdDo\xc3w1\xa9\xd8\x9f\xd6p2\x9e/\xdb\x89\x1f\xa7' 159s warnings.warn(w) 159s 159s tests/unit/test_chunking.py::test_chunk_overflow_truncate_fail 159s /usr/lib/python3/dist-packages/graypy/handler.py:570: GELFChunkOverflowWarning: truncating GELF chunk overflowing message: b'x\x9c\xed\x94A\x8a\xc30\x0cE\xef\xa2u(I\xda&L\xee0\xc3,fo\x84c7"\x8e\x1dl\xa5\xa5\x94\xde\xbdrZJ\xcf0\xe4\xaf\xa4\xaf\x8f@\x0b\xbd\x1b\x9cML\x14\xad<\x95\x0b\xf4\xa8\xc8\xdb\xf0^\xcc\x98\xc6\x9f5\x9c\x8d\xfb\x03\xe6t!\xc6' 159s warnings.warn( 159s 159s tests/unit/test_chunking.py::test_chunk_overflow_truncate_fail_large_inherited_field 159s /usr/lib/python3/dist-packages/graypy/handler.py:570: GELFChunkOverflowWarning: truncating GELF chunk overflowing message: b'x\x9c\xed\xcdAn\xdb0\x10\x05\xd0\xab\x18\\\x0b\x81\x1d\xc7)\xaa;\xb4\xe8\xa2{\x81u([0#\x1a\x12\xed"(z\xf7\xca)b\xf4\x00]>\x80\x8b\x99\xff\x863\xbf\xc25M\xf3P\xc6\xd0\x86\xcd\xc3:4\xe1X\xe6\xba4\xf1R\xcb\xf9t\xa8i\xe9\x9a0\x1f\xcbT\xbb\xd74\xcf\xf1\x90\x16\x9dR\x9c\xcb\x18\x7f\xe4\xb4\xfa\x08\x9bP\x87\xa5\xae\xf1\xf5\x1c\xda\xcd\xa7\xddz\xfb\xf4\xb4\xdd<>