0s autopkgtest [11:49:31]: starting date and time: 2024-06-29 11:49:31+0000 0s autopkgtest [11:49:31]: git checkout: 85adf9a1 setup-testbed: prevent /tmp from getting a tmpfs mount 0s autopkgtest [11:49:31]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.wt5dppqr/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com\n" >> /etc/environment' --apt-pocket=proposed=src:requests --apt-upgrade python-requests-unixsocket --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=requests/2.32.3+dfsg-1ubuntu1 -- lxd -r lxd-armhf-10.145.243.242 lxd-armhf-10.145.243.242:autopkgtest/ubuntu/oracular/armhf 25s autopkgtest [11:49:56]: testbed dpkg architecture: armhf 27s autopkgtest [11:49:58]: testbed apt version: 2.9.5 27s autopkgtest [11:49:58]: @@@@@@@@@@@@@@@@@@@@ test bed setup 35s Get:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease [110 kB] 36s Get:2 http://ftpmaster.internal/ubuntu oracular-proposed/main Sources [53.6 kB] 36s Get:3 http://ftpmaster.internal/ubuntu oracular-proposed/restricted Sources [7052 B] 36s Get:4 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse Sources [2576 B] 36s Get:5 http://ftpmaster.internal/ubuntu oracular-proposed/universe Sources [370 kB] 36s Get:6 http://ftpmaster.internal/ubuntu oracular-proposed/main armhf Packages [77.5 kB] 36s Get:7 http://ftpmaster.internal/ubuntu oracular-proposed/restricted armhf Packages [1368 B] 36s Get:8 http://ftpmaster.internal/ubuntu oracular-proposed/universe armhf Packages [312 kB] 36s Get:9 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse armhf Packages [1768 B] 36s Fetched 936 kB in 1s (1162 kB/s) 36s Reading package lists... 54s tee: /proc/self/fd/2: Permission denied 75s Hit:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease 75s Hit:2 http://ftpmaster.internal/ubuntu oracular InRelease 76s Hit:3 http://ftpmaster.internal/ubuntu oracular-updates InRelease 76s Hit:4 http://ftpmaster.internal/ubuntu oracular-security InRelease 77s Reading package lists... 77s Reading package lists... 77s Building dependency tree... 77s Reading state information... 78s Calculating upgrade... 78s The following packages will be upgraded: 78s dracut-install python3-requests 78s 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 78s Need to get 87.9 kB of archives. 78s After this operation, 9216 B of additional disk space will be used. 78s Get:1 http://ftpmaster.internal/ubuntu oracular/main armhf dracut-install armhf 102-3ubuntu3 [35.3 kB] 78s Get:2 http://ftpmaster.internal/ubuntu oracular-proposed/main armhf python3-requests all 2.32.3+dfsg-1ubuntu1 [52.6 kB] 79s Fetched 87.9 kB in 0s (254 kB/s) 79s (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 ... 58374 files and directories currently installed.) 79s Preparing to unpack .../dracut-install_102-3ubuntu3_armhf.deb ... 79s Unpacking dracut-install (102-3ubuntu3) over (102-3ubuntu2) ... 79s Preparing to unpack .../python3-requests_2.32.3+dfsg-1ubuntu1_all.deb ... 79s Unpacking python3-requests (2.32.3+dfsg-1ubuntu1) over (2.31.0+dfsg-1ubuntu3) ... 79s Setting up python3-requests (2.32.3+dfsg-1ubuntu1) ... 79s Setting up dracut-install (102-3ubuntu3) ... 80s Reading package lists... 80s Building dependency tree... 80s Reading state information... 81s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 83s autopkgtest [11:50:54]: rebooting testbed after setup commands that affected boot 124s autopkgtest [11:51:35]: testbed running kernel: Linux 6.5.0-41-generic #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 3 16:28:24 UTC 2 151s autopkgtest [11:52:02]: @@@@@@@@@@@@@@@@@@@@ apt-source python-requests-unixsocket 161s Get:1 http://ftpmaster.internal/ubuntu oracular/universe python-requests-unixsocket 0.3.0-4 (dsc) [2359 B] 161s Get:2 http://ftpmaster.internal/ubuntu oracular/universe python-requests-unixsocket 0.3.0-4 (tar) [10.3 kB] 161s Get:3 http://ftpmaster.internal/ubuntu oracular/universe python-requests-unixsocket 0.3.0-4 (diff) [4136 B] 162s gpgv: Signature made Mon Apr 29 13:16:38 2024 UTC 162s gpgv: using RSA key A0B1A9F3508956130E7A425CD416AD15AC6B43FE 162s gpgv: Can't check signature: No public key 162s dpkg-source: warning: cannot verify inline signature for ./python-requests-unixsocket_0.3.0-4.dsc: no acceptable signature found 162s autopkgtest [11:52:13]: testing package python-requests-unixsocket version 0.3.0-4 164s autopkgtest [11:52:15]: build not needed 166s autopkgtest [11:52:17]: test python3-requests-unixsocket: preparing testbed 176s Reading package lists... 176s Building dependency tree... 176s Reading state information... 177s Starting pkgProblemResolver with broken count: 0 177s Starting 2 pkgProblemResolver with broken count: 0 177s Done 178s The following additional packages will be installed: 178s autoconf automake autopoint autotools-dev build-essential cpp cpp-13 178s cpp-13-arm-linux-gnueabihf cpp-arm-linux-gnueabihf debhelper debugedit 178s dh-autoreconf dh-python dh-strip-nondeterminism dwz g++ g++-13 178s g++-13-arm-linux-gnueabihf g++-arm-linux-gnueabihf gcc gcc-13 178s gcc-13-arm-linux-gnueabihf gcc-13-base gcc-arm-linux-gnueabihf gettext 178s intltool-debian libarchive-zip-perl libasan8 libatomic1 libc-dev-bin 178s libc6-dev libcc1-0 libcrypt-dev libdebhelper-perl libdw1t64 178s libfile-stripnondeterminism-perl libgcc-13-dev libgomp1 libisl23 libmpc3 178s libstdc++-13-dev libtool libubsan1 linux-libc-dev m4 openstack-pkg-tools 178s po-debconf python3-all python3-iniconfig python3-packaging python3-pbr 178s python3-pip python3-pluggy python3-pytest python3-requests-unixsocket 178s python3-waitress python3-wheel rpcsvc-proto 178s Suggested packages: 178s autoconf-archive gnu-standards autoconf-doc cpp-doc gcc-13-locales 178s cpp-13-doc dh-make flit python3-build python3-installer gcc-13-doc 178s gcc-multilib manpages-dev flex bison gdb gcc-doc gdb-arm-linux-gnueabihf 178s gettext-doc libasprintf-dev libgettextpo-dev glibc-doc libstdc++-13-doc 178s libtool-doc gfortran | fortran95-compiler gcj-jdk m4-doc libmail-box-perl 178s python-waitress-doc 178s Recommended packages: 178s manpages manpages-dev libc-devtools libarchive-cpio-perl libltdl-dev 178s autopkgtest madison-lite pristine-tar libmail-sendmail-perl python3-dev 178s libjs-sphinxdoc 178s The following NEW packages will be installed: 178s autoconf automake autopkgtest-satdep autopoint autotools-dev build-essential 178s cpp cpp-13 cpp-13-arm-linux-gnueabihf cpp-arm-linux-gnueabihf debhelper 178s debugedit dh-autoreconf dh-python dh-strip-nondeterminism dwz g++ g++-13 178s g++-13-arm-linux-gnueabihf g++-arm-linux-gnueabihf gcc gcc-13 178s gcc-13-arm-linux-gnueabihf gcc-13-base gcc-arm-linux-gnueabihf gettext 178s intltool-debian libarchive-zip-perl libasan8 libatomic1 libc-dev-bin 178s libc6-dev libcc1-0 libcrypt-dev libdebhelper-perl libdw1t64 178s libfile-stripnondeterminism-perl libgcc-13-dev libgomp1 libisl23 libmpc3 178s libstdc++-13-dev libtool libubsan1 linux-libc-dev m4 openstack-pkg-tools 178s po-debconf python3-all python3-iniconfig python3-packaging python3-pbr 178s python3-pip python3-pluggy python3-pytest python3-requests-unixsocket 178s python3-waitress python3-wheel rpcsvc-proto 178s 0 upgraded, 59 newly installed, 0 to remove and 0 not upgraded. 178s Need to get 53.9 MB/53.9 MB of archives. 178s After this operation, 165 MB of additional disk space will be used. 178s Get:1 /tmp/autopkgtest.ifZAip/1-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [824 B] 178s Get:2 http://ftpmaster.internal/ubuntu oracular/main armhf m4 armhf 1.4.19-4build1 [235 kB] 178s Get:3 http://ftpmaster.internal/ubuntu oracular/main armhf autoconf all 2.71-3 [339 kB] 178s Get:4 http://ftpmaster.internal/ubuntu oracular/main armhf autotools-dev all 20220109.1 [44.9 kB] 178s Get:5 http://ftpmaster.internal/ubuntu oracular/main armhf automake all 1:1.16.5-1.3ubuntu1 [558 kB] 178s Get:6 http://ftpmaster.internal/ubuntu oracular/main armhf autopoint all 0.21-14ubuntu2 [422 kB] 178s Get:7 http://ftpmaster.internal/ubuntu oracular/main armhf libc-dev-bin armhf 2.39-0ubuntu9 [19.1 kB] 178s Get:8 http://ftpmaster.internal/ubuntu oracular/main armhf linux-libc-dev armhf 6.8.0-31.31 [1557 kB] 178s Get:9 http://ftpmaster.internal/ubuntu oracular/main armhf libcrypt-dev armhf 1:4.4.36-4build1 [120 kB] 178s Get:10 http://ftpmaster.internal/ubuntu oracular/main armhf rpcsvc-proto armhf 1.4.2-0ubuntu7 [62.2 kB] 178s Get:11 http://ftpmaster.internal/ubuntu oracular/main armhf libc6-dev armhf 2.39-0ubuntu9 [1351 kB] 178s Get:12 http://ftpmaster.internal/ubuntu oracular/main armhf gcc-13-base armhf 13.2.0-23ubuntu4 [48.9 kB] 178s Get:13 http://ftpmaster.internal/ubuntu oracular/main armhf libisl23 armhf 0.26-3build1 [544 kB] 178s Get:14 http://ftpmaster.internal/ubuntu oracular/main armhf libmpc3 armhf 1.3.1-1build1 [46.7 kB] 178s Get:15 http://ftpmaster.internal/ubuntu oracular/main armhf cpp-13-arm-linux-gnueabihf armhf 13.2.0-23ubuntu4 [8759 kB] 179s Get:16 http://ftpmaster.internal/ubuntu oracular/main armhf cpp-13 armhf 13.2.0-23ubuntu4 [1034 B] 179s Get:17 http://ftpmaster.internal/ubuntu oracular/main armhf cpp-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [5320 B] 179s Get:18 http://ftpmaster.internal/ubuntu oracular/main armhf cpp armhf 4:13.2.0-7ubuntu1 [22.4 kB] 179s Get:19 http://ftpmaster.internal/ubuntu oracular/main armhf libcc1-0 armhf 14.1.0-1ubuntu1 [43.3 kB] 179s Get:20 http://ftpmaster.internal/ubuntu oracular/main armhf libgomp1 armhf 14.1.0-1ubuntu1 [125 kB] 179s Get:21 http://ftpmaster.internal/ubuntu oracular/main armhf libatomic1 armhf 14.1.0-1ubuntu1 [7816 B] 179s Get:22 http://ftpmaster.internal/ubuntu oracular/main armhf libasan8 armhf 14.1.0-1ubuntu1 [2913 kB] 179s Get:23 http://ftpmaster.internal/ubuntu oracular/main armhf libubsan1 armhf 14.1.0-1ubuntu1 [1154 kB] 179s Get:24 http://ftpmaster.internal/ubuntu oracular/main armhf libgcc-13-dev armhf 13.2.0-23ubuntu4 [899 kB] 179s Get:25 http://ftpmaster.internal/ubuntu oracular/main armhf gcc-13-arm-linux-gnueabihf armhf 13.2.0-23ubuntu4 [16.9 MB] 179s Get:26 http://ftpmaster.internal/ubuntu oracular/main armhf gcc-13 armhf 13.2.0-23ubuntu4 [453 kB] 179s Get:27 http://ftpmaster.internal/ubuntu oracular/main armhf gcc-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [1220 B] 179s Get:28 http://ftpmaster.internal/ubuntu oracular/main armhf gcc armhf 4:13.2.0-7ubuntu1 [5022 B] 179s Get:29 http://ftpmaster.internal/ubuntu oracular/main armhf libstdc++-13-dev armhf 13.2.0-23ubuntu4 [2456 kB] 179s Get:30 http://ftpmaster.internal/ubuntu oracular/main armhf g++-13-arm-linux-gnueabihf armhf 13.2.0-23ubuntu4 [9941 kB] 179s Get:31 http://ftpmaster.internal/ubuntu oracular/main armhf g++-13 armhf 13.2.0-23ubuntu4 [14.5 kB] 179s Get:32 http://ftpmaster.internal/ubuntu oracular/main armhf g++-arm-linux-gnueabihf armhf 4:13.2.0-7ubuntu1 [966 B] 179s Get:33 http://ftpmaster.internal/ubuntu oracular/main armhf g++ armhf 4:13.2.0-7ubuntu1 [1090 B] 179s Get:34 http://ftpmaster.internal/ubuntu oracular/main armhf build-essential armhf 12.10ubuntu1 [4928 B] 179s Get:35 http://ftpmaster.internal/ubuntu oracular/main armhf libdebhelper-perl all 13.16ubuntu2 [92.9 kB] 179s Get:36 http://ftpmaster.internal/ubuntu oracular/main armhf libtool all 2.4.7-7build1 [166 kB] 179s Get:37 http://ftpmaster.internal/ubuntu oracular/main armhf dh-autoreconf all 20 [16.1 kB] 179s Get:38 http://ftpmaster.internal/ubuntu oracular/main armhf libarchive-zip-perl all 1.68-1 [90.2 kB] 179s Get:39 http://ftpmaster.internal/ubuntu oracular/main armhf libfile-stripnondeterminism-perl all 1.14.0-1 [20.1 kB] 180s Get:40 http://ftpmaster.internal/ubuntu oracular/main armhf dh-strip-nondeterminism all 1.14.0-1 [5058 B] 180s Get:41 http://ftpmaster.internal/ubuntu oracular/main armhf libdw1t64 armhf 0.191-1 [238 kB] 180s Get:42 http://ftpmaster.internal/ubuntu oracular/main armhf debugedit armhf 1:5.0-5build2 [42.3 kB] 180s Get:43 http://ftpmaster.internal/ubuntu oracular/main armhf dwz armhf 0.15-1build6 [116 kB] 180s Get:44 http://ftpmaster.internal/ubuntu oracular/main armhf gettext armhf 0.21-14ubuntu2 [800 kB] 180s Get:45 http://ftpmaster.internal/ubuntu oracular/main armhf intltool-debian all 0.35.0+20060710.6 [23.2 kB] 180s Get:46 http://ftpmaster.internal/ubuntu oracular/main armhf po-debconf all 1.0.21+nmu1 [233 kB] 180s Get:47 http://ftpmaster.internal/ubuntu oracular/main armhf debhelper all 13.16ubuntu2 [869 kB] 180s Get:48 http://ftpmaster.internal/ubuntu oracular/universe armhf dh-python all 6.20240422 [110 kB] 180s Get:49 http://ftpmaster.internal/ubuntu oracular/main armhf python3-all armhf 3.12.3-0ubuntu1 [886 B] 180s Get:50 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-iniconfig all 1.1.1-2 [6024 B] 180s Get:51 http://ftpmaster.internal/ubuntu oracular/main armhf python3-packaging all 24.0-1 [41.1 kB] 180s Get:52 http://ftpmaster.internal/ubuntu oracular/main armhf python3-pbr all 5.11.1-0ubuntu1 [66.5 kB] 180s Get:53 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-wheel all 0.43.0-1 [53.5 kB] 180s Get:54 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pip all 24.1+dfsg-1 [1399 kB] 180s Get:55 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pluggy all 1.5.0-1 [21.0 kB] 180s Get:56 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pytest all 7.4.4-1 [305 kB] 180s Get:57 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-requests-unixsocket all 0.3.0-4 [7274 B] 180s Get:58 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-waitress all 3.0.0-1 [46.4 kB] 180s Get:59 http://ftpmaster.internal/ubuntu oracular/universe armhf openstack-pkg-tools all 123ubuntu2 [94.5 kB] 180s Fetched 53.9 MB in 2s (26.1 MB/s) 180s Selecting previously unselected package m4. 180s (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 ... 58373 files and directories currently installed.) 180s Preparing to unpack .../00-m4_1.4.19-4build1_armhf.deb ... 180s Unpacking m4 (1.4.19-4build1) ... 180s Selecting previously unselected package autoconf. 180s Preparing to unpack .../01-autoconf_2.71-3_all.deb ... 180s Unpacking autoconf (2.71-3) ... 180s Selecting previously unselected package autotools-dev. 180s Preparing to unpack .../02-autotools-dev_20220109.1_all.deb ... 180s Unpacking autotools-dev (20220109.1) ... 180s Selecting previously unselected package automake. 180s Preparing to unpack .../03-automake_1%3a1.16.5-1.3ubuntu1_all.deb ... 180s Unpacking automake (1:1.16.5-1.3ubuntu1) ... 180s Selecting previously unselected package autopoint. 180s Preparing to unpack .../04-autopoint_0.21-14ubuntu2_all.deb ... 180s Unpacking autopoint (0.21-14ubuntu2) ... 180s Selecting previously unselected package libc-dev-bin. 180s Preparing to unpack .../05-libc-dev-bin_2.39-0ubuntu9_armhf.deb ... 180s Unpacking libc-dev-bin (2.39-0ubuntu9) ... 180s Selecting previously unselected package linux-libc-dev:armhf. 180s Preparing to unpack .../06-linux-libc-dev_6.8.0-31.31_armhf.deb ... 180s Unpacking linux-libc-dev:armhf (6.8.0-31.31) ... 181s Selecting previously unselected package libcrypt-dev:armhf. 181s Preparing to unpack .../07-libcrypt-dev_1%3a4.4.36-4build1_armhf.deb ... 181s Unpacking libcrypt-dev:armhf (1:4.4.36-4build1) ... 181s Selecting previously unselected package rpcsvc-proto. 181s Preparing to unpack .../08-rpcsvc-proto_1.4.2-0ubuntu7_armhf.deb ... 181s Unpacking rpcsvc-proto (1.4.2-0ubuntu7) ... 181s Selecting previously unselected package libc6-dev:armhf. 181s Preparing to unpack .../09-libc6-dev_2.39-0ubuntu9_armhf.deb ... 181s Unpacking libc6-dev:armhf (2.39-0ubuntu9) ... 181s Selecting previously unselected package gcc-13-base:armhf. 181s Preparing to unpack .../10-gcc-13-base_13.2.0-23ubuntu4_armhf.deb ... 181s Unpacking gcc-13-base:armhf (13.2.0-23ubuntu4) ... 181s Selecting previously unselected package libisl23:armhf. 181s Preparing to unpack .../11-libisl23_0.26-3build1_armhf.deb ... 181s Unpacking libisl23:armhf (0.26-3build1) ... 181s Selecting previously unselected package libmpc3:armhf. 181s Preparing to unpack .../12-libmpc3_1.3.1-1build1_armhf.deb ... 181s Unpacking libmpc3:armhf (1.3.1-1build1) ... 181s Selecting previously unselected package cpp-13-arm-linux-gnueabihf. 181s Preparing to unpack .../13-cpp-13-arm-linux-gnueabihf_13.2.0-23ubuntu4_armhf.deb ... 181s Unpacking cpp-13-arm-linux-gnueabihf (13.2.0-23ubuntu4) ... 181s Selecting previously unselected package cpp-13. 181s Preparing to unpack .../14-cpp-13_13.2.0-23ubuntu4_armhf.deb ... 181s Unpacking cpp-13 (13.2.0-23ubuntu4) ... 181s Selecting previously unselected package cpp-arm-linux-gnueabihf. 181s Preparing to unpack .../15-cpp-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 181s Unpacking cpp-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 181s Selecting previously unselected package cpp. 181s Preparing to unpack .../16-cpp_4%3a13.2.0-7ubuntu1_armhf.deb ... 181s Unpacking cpp (4:13.2.0-7ubuntu1) ... 181s Selecting previously unselected package libcc1-0:armhf. 181s Preparing to unpack .../17-libcc1-0_14.1.0-1ubuntu1_armhf.deb ... 181s Unpacking libcc1-0:armhf (14.1.0-1ubuntu1) ... 181s Selecting previously unselected package libgomp1:armhf. 181s Preparing to unpack .../18-libgomp1_14.1.0-1ubuntu1_armhf.deb ... 181s Unpacking libgomp1:armhf (14.1.0-1ubuntu1) ... 181s Selecting previously unselected package libatomic1:armhf. 181s Preparing to unpack .../19-libatomic1_14.1.0-1ubuntu1_armhf.deb ... 181s Unpacking libatomic1:armhf (14.1.0-1ubuntu1) ... 181s Selecting previously unselected package libasan8:armhf. 181s Preparing to unpack .../20-libasan8_14.1.0-1ubuntu1_armhf.deb ... 181s Unpacking libasan8:armhf (14.1.0-1ubuntu1) ... 181s Selecting previously unselected package libubsan1:armhf. 181s Preparing to unpack .../21-libubsan1_14.1.0-1ubuntu1_armhf.deb ... 181s Unpacking libubsan1:armhf (14.1.0-1ubuntu1) ... 181s Selecting previously unselected package libgcc-13-dev:armhf. 181s Preparing to unpack .../22-libgcc-13-dev_13.2.0-23ubuntu4_armhf.deb ... 181s Unpacking libgcc-13-dev:armhf (13.2.0-23ubuntu4) ... 182s Selecting previously unselected package gcc-13-arm-linux-gnueabihf. 182s Preparing to unpack .../23-gcc-13-arm-linux-gnueabihf_13.2.0-23ubuntu4_armhf.deb ... 182s Unpacking gcc-13-arm-linux-gnueabihf (13.2.0-23ubuntu4) ... 182s Selecting previously unselected package gcc-13. 182s Preparing to unpack .../24-gcc-13_13.2.0-23ubuntu4_armhf.deb ... 182s Unpacking gcc-13 (13.2.0-23ubuntu4) ... 182s Selecting previously unselected package gcc-arm-linux-gnueabihf. 182s Preparing to unpack .../25-gcc-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 182s Unpacking gcc-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 182s Selecting previously unselected package gcc. 182s Preparing to unpack .../26-gcc_4%3a13.2.0-7ubuntu1_armhf.deb ... 182s Unpacking gcc (4:13.2.0-7ubuntu1) ... 182s Selecting previously unselected package libstdc++-13-dev:armhf. 182s Preparing to unpack .../27-libstdc++-13-dev_13.2.0-23ubuntu4_armhf.deb ... 182s Unpacking libstdc++-13-dev:armhf (13.2.0-23ubuntu4) ... 182s Selecting previously unselected package g++-13-arm-linux-gnueabihf. 182s Preparing to unpack .../28-g++-13-arm-linux-gnueabihf_13.2.0-23ubuntu4_armhf.deb ... 182s Unpacking g++-13-arm-linux-gnueabihf (13.2.0-23ubuntu4) ... 182s Selecting previously unselected package g++-13. 182s Preparing to unpack .../29-g++-13_13.2.0-23ubuntu4_armhf.deb ... 182s Unpacking g++-13 (13.2.0-23ubuntu4) ... 182s Selecting previously unselected package g++-arm-linux-gnueabihf. 183s Preparing to unpack .../30-g++-arm-linux-gnueabihf_4%3a13.2.0-7ubuntu1_armhf.deb ... 183s Unpacking g++-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 183s Selecting previously unselected package g++. 183s Preparing to unpack .../31-g++_4%3a13.2.0-7ubuntu1_armhf.deb ... 183s Unpacking g++ (4:13.2.0-7ubuntu1) ... 183s Selecting previously unselected package build-essential. 183s Preparing to unpack .../32-build-essential_12.10ubuntu1_armhf.deb ... 183s Unpacking build-essential (12.10ubuntu1) ... 183s Selecting previously unselected package libdebhelper-perl. 183s Preparing to unpack .../33-libdebhelper-perl_13.16ubuntu2_all.deb ... 183s Unpacking libdebhelper-perl (13.16ubuntu2) ... 183s Selecting previously unselected package libtool. 183s Preparing to unpack .../34-libtool_2.4.7-7build1_all.deb ... 183s Unpacking libtool (2.4.7-7build1) ... 183s Selecting previously unselected package dh-autoreconf. 183s Preparing to unpack .../35-dh-autoreconf_20_all.deb ... 183s Unpacking dh-autoreconf (20) ... 183s Selecting previously unselected package libarchive-zip-perl. 183s Preparing to unpack .../36-libarchive-zip-perl_1.68-1_all.deb ... 183s Unpacking libarchive-zip-perl (1.68-1) ... 183s Selecting previously unselected package libfile-stripnondeterminism-perl. 183s Preparing to unpack .../37-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... 183s Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... 183s Selecting previously unselected package dh-strip-nondeterminism. 183s Preparing to unpack .../38-dh-strip-nondeterminism_1.14.0-1_all.deb ... 183s Unpacking dh-strip-nondeterminism (1.14.0-1) ... 183s Selecting previously unselected package libdw1t64:armhf. 183s Preparing to unpack .../39-libdw1t64_0.191-1_armhf.deb ... 183s Unpacking libdw1t64:armhf (0.191-1) ... 183s Selecting previously unselected package debugedit. 183s Preparing to unpack .../40-debugedit_1%3a5.0-5build2_armhf.deb ... 183s Unpacking debugedit (1:5.0-5build2) ... 183s Selecting previously unselected package dwz. 183s Preparing to unpack .../41-dwz_0.15-1build6_armhf.deb ... 183s Unpacking dwz (0.15-1build6) ... 183s Selecting previously unselected package gettext. 183s Preparing to unpack .../42-gettext_0.21-14ubuntu2_armhf.deb ... 183s Unpacking gettext (0.21-14ubuntu2) ... 183s Selecting previously unselected package intltool-debian. 183s Preparing to unpack .../43-intltool-debian_0.35.0+20060710.6_all.deb ... 183s Unpacking intltool-debian (0.35.0+20060710.6) ... 183s Selecting previously unselected package po-debconf. 183s Preparing to unpack .../44-po-debconf_1.0.21+nmu1_all.deb ... 183s Unpacking po-debconf (1.0.21+nmu1) ... 183s Selecting previously unselected package debhelper. 183s Preparing to unpack .../45-debhelper_13.16ubuntu2_all.deb ... 183s Unpacking debhelper (13.16ubuntu2) ... 183s Selecting previously unselected package dh-python. 183s Preparing to unpack .../46-dh-python_6.20240422_all.deb ... 183s Unpacking dh-python (6.20240422) ... 183s Selecting previously unselected package python3-all. 183s Preparing to unpack .../47-python3-all_3.12.3-0ubuntu1_armhf.deb ... 183s Unpacking python3-all (3.12.3-0ubuntu1) ... 183s Selecting previously unselected package python3-iniconfig. 183s Preparing to unpack .../48-python3-iniconfig_1.1.1-2_all.deb ... 183s Unpacking python3-iniconfig (1.1.1-2) ... 183s Selecting previously unselected package python3-packaging. 183s Preparing to unpack .../49-python3-packaging_24.0-1_all.deb ... 183s Unpacking python3-packaging (24.0-1) ... 183s Selecting previously unselected package python3-pbr. 183s Preparing to unpack .../50-python3-pbr_5.11.1-0ubuntu1_all.deb ... 183s Unpacking python3-pbr (5.11.1-0ubuntu1) ... 183s Selecting previously unselected package python3-wheel. 183s Preparing to unpack .../51-python3-wheel_0.43.0-1_all.deb ... 183s Unpacking python3-wheel (0.43.0-1) ... 183s Selecting previously unselected package python3-pip. 183s Preparing to unpack .../52-python3-pip_24.1+dfsg-1_all.deb ... 183s Unpacking python3-pip (24.1+dfsg-1) ... 183s Selecting previously unselected package python3-pluggy. 183s Preparing to unpack .../53-python3-pluggy_1.5.0-1_all.deb ... 183s Unpacking python3-pluggy (1.5.0-1) ... 184s Selecting previously unselected package python3-pytest. 184s Preparing to unpack .../54-python3-pytest_7.4.4-1_all.deb ... 184s Unpacking python3-pytest (7.4.4-1) ... 184s Selecting previously unselected package python3-requests-unixsocket. 184s Preparing to unpack .../55-python3-requests-unixsocket_0.3.0-4_all.deb ... 184s Unpacking python3-requests-unixsocket (0.3.0-4) ... 184s Selecting previously unselected package python3-waitress. 184s Preparing to unpack .../56-python3-waitress_3.0.0-1_all.deb ... 184s Unpacking python3-waitress (3.0.0-1) ... 184s Selecting previously unselected package openstack-pkg-tools. 184s Preparing to unpack .../57-openstack-pkg-tools_123ubuntu2_all.deb ... 184s Unpacking openstack-pkg-tools (123ubuntu2) ... 184s Selecting previously unselected package autopkgtest-satdep. 184s Preparing to unpack .../58-1-autopkgtest-satdep.deb ... 184s Unpacking autopkgtest-satdep (0) ... 184s Setting up dh-python (6.20240422) ... 184s Setting up python3-iniconfig (1.1.1-2) ... 184s Setting up python3-waitress (3.0.0-1) ... 184s Setting up python3-pbr (5.11.1-0ubuntu1) ... 184s Setting up libarchive-zip-perl (1.68-1) ... 184s Setting up libdebhelper-perl (13.16ubuntu2) ... 184s Setting up linux-libc-dev:armhf (6.8.0-31.31) ... 184s Setting up m4 (1.4.19-4build1) ... 184s Setting up python3-all (3.12.3-0ubuntu1) ... 184s Setting up libgomp1:armhf (14.1.0-1ubuntu1) ... 184s Setting up python3-wheel (0.43.0-1) ... 184s Setting up libdw1t64:armhf (0.191-1) ... 184s Setting up python3-requests-unixsocket (0.3.0-4) ... 185s Setting up autotools-dev (20220109.1) ... 185s Setting up python3-packaging (24.0-1) ... 185s Setting up rpcsvc-proto (1.4.2-0ubuntu7) ... 185s Setting up gcc-13-base:armhf (13.2.0-23ubuntu4) ... 185s Setting up libmpc3:armhf (1.3.1-1build1) ... 185s Setting up libatomic1:armhf (14.1.0-1ubuntu1) ... 185s Setting up autopoint (0.21-14ubuntu2) ... 185s Setting up python3-pip (24.1+dfsg-1) ... 186s Setting up autoconf (2.71-3) ... 186s Setting up python3-pluggy (1.5.0-1) ... 186s Setting up libubsan1:armhf (14.1.0-1ubuntu1) ... 186s Setting up dwz (0.15-1build6) ... 186s Setting up libcrypt-dev:armhf (1:4.4.36-4build1) ... 186s Setting up libasan8:armhf (14.1.0-1ubuntu1) ... 186s Setting up debugedit (1:5.0-5build2) ... 186s Setting up libisl23:armhf (0.26-3build1) ... 186s Setting up libc-dev-bin (2.39-0ubuntu9) ... 186s Setting up libcc1-0:armhf (14.1.0-1ubuntu1) ... 186s Setting up automake (1:1.16.5-1.3ubuntu1) ... 186s update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode 186s Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... 186s Setting up gettext (0.21-14ubuntu2) ... 186s Setting up cpp-13-arm-linux-gnueabihf (13.2.0-23ubuntu4) ... 186s Setting up python3-pytest (7.4.4-1) ... 186s Setting up intltool-debian (0.35.0+20060710.6) ... 186s Setting up dh-strip-nondeterminism (1.14.0-1) ... 186s Setting up libgcc-13-dev:armhf (13.2.0-23ubuntu4) ... 186s Setting up libc6-dev:armhf (2.39-0ubuntu9) ... 186s Setting up cpp-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 186s Setting up libstdc++-13-dev:armhf (13.2.0-23ubuntu4) ... 186s Setting up cpp-13 (13.2.0-23ubuntu4) ... 186s Setting up po-debconf (1.0.21+nmu1) ... 186s Setting up gcc-13-arm-linux-gnueabihf (13.2.0-23ubuntu4) ... 186s Setting up openstack-pkg-tools (123ubuntu2) ... 186s Setting up gcc-13 (13.2.0-23ubuntu4) ... 186s Setting up cpp (4:13.2.0-7ubuntu1) ... 186s Setting up gcc-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 186s Setting up g++-13-arm-linux-gnueabihf (13.2.0-23ubuntu4) ... 186s Setting up g++-arm-linux-gnueabihf (4:13.2.0-7ubuntu1) ... 186s Setting up g++-13 (13.2.0-23ubuntu4) ... 186s Setting up libtool (2.4.7-7build1) ... 186s Setting up gcc (4:13.2.0-7ubuntu1) ... 186s Setting up dh-autoreconf (20) ... 186s Setting up g++ (4:13.2.0-7ubuntu1) ... 186s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 186s Setting up build-essential (12.10ubuntu1) ... 186s Setting up debhelper (13.16ubuntu2) ... 186s Setting up autopkgtest-satdep (0) ... 186s Processing triggers for man-db (2.12.1-2) ... 188s Processing triggers for install-info (7.1-3build2) ... 188s Processing triggers for libc-bin (2.39-0ubuntu9) ... 205s (Reading database ... 63372 files and directories currently installed.) 205s Removing autopkgtest-satdep (0) ... 212s autopkgtest [11:53:03]: test python3-requests-unixsocket: [----------------------- 214s === python3.12 === 214s ============================= test session starts ============================== 214s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 -- /usr/bin/python3.12 214s cachedir: .pytest_cache 214s rootdir: /tmp/autopkgtest.ifZAip/autopkgtest_tmp 214s collecting ... collected 5 items 214s 214s tests/test_requests_unixsocket.py::test_unix_domain_adapter_ok FAILED [ 20%] 214s tests/test_requests_unixsocket.py::test_unix_domain_adapter_url_with_query_params FAILED [ 40%] 214s tests/test_requests_unixsocket.py::test_unix_domain_adapter_connection_error FAILED [ 60%] 214s tests/test_requests_unixsocket.py::test_unix_domain_adapter_connection_proxies_error FAILED [ 80%] 214s tests/test_requests_unixsocket.py::test_unix_domain_adapter_monkeypatch FAILED [100%] 214s 214s =================================== FAILURES =================================== 214s _________________________ test_unix_domain_adapter_ok __________________________ 214s 214s self = 214s request = , stream = False, timeout = None, verify = True 214s cert = None 214s proxies = OrderedDict({'no': '127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,p...,objectstorage.prodstack5.canonical.com', 'https': 'http://squid.internal:3128', 'http': 'http://squid.internal:3128'}) 214s 214s def send( 214s self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 214s ): 214s """Sends PreparedRequest object. Returns Response object. 214s 214s :param request: The :class:`PreparedRequest ` being sent. 214s :param stream: (optional) Whether to stream the request content. 214s :param timeout: (optional) How long to wait for the server to send 214s data before giving up, as a float, or a :ref:`(connect timeout, 214s read timeout) ` tuple. 214s :type timeout: float or tuple or urllib3 Timeout object 214s :param verify: (optional) Either a boolean, in which case it controls whether 214s we verify the server's TLS certificate, or a string, in which case it 214s must be a path to a CA bundle to use 214s :param cert: (optional) Any user-provided SSL certificate to be trusted. 214s :param proxies: (optional) The proxies dictionary to apply to the request. 214s :rtype: requests.Response 214s """ 214s 214s try: 214s > conn = self.get_connection_with_tls_context( 214s request, verify, proxies=proxies, cert=cert 214s ) 214s 214s /usr/lib/python3/dist-packages/requests/adapters.py:633: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/requests/adapters.py:489: in get_connection_with_tls_context 214s conn = self.poolmanager.connection_from_host( 214s /usr/lib/python3/dist-packages/urllib3/poolmanager.py:303: in connection_from_host 214s return self.connection_from_context(request_context) 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s request_context = {'block': False, 'cert_reqs': 'CERT_REQUIRED', 'host': '%2Ftmp%2Ftest_requests.73135_1651_afccaf81', 'maxsize': 10, ...} 214s 214s def connection_from_context( 214s self, request_context: dict[str, typing.Any] 214s ) -> HTTPConnectionPool: 214s """ 214s Get a :class:`urllib3.connectionpool.ConnectionPool` based on the request context. 214s 214s ``request_context`` must at least contain the ``scheme`` key and its 214s value must be a key in ``key_fn_by_scheme`` instance variable. 214s """ 214s if "strict" in request_context: 214s warnings.warn( 214s "The 'strict' parameter is no longer needed on Python 3+. " 214s "This will raise an error in urllib3 v2.1.0.", 214s DeprecationWarning, 214s ) 214s request_context.pop("strict") 214s 214s scheme = request_context["scheme"].lower() 214s pool_key_constructor = self.key_fn_by_scheme.get(scheme) 214s if not pool_key_constructor: 214s > raise URLSchemeUnknown(scheme) 214s E urllib3.exceptions.URLSchemeUnknown: Not supported URL scheme http+unix 214s 214s /usr/lib/python3/dist-packages/urllib3/poolmanager.py:325: URLSchemeUnknown 214s 214s During handling of the above exception, another exception occurred: 214s 214s def test_unix_domain_adapter_ok(): 214s with UnixSocketServerThread() as usock_thread: 214s session = requests_unixsocket.Session('http+unix://') 214s urlencoded_usock = requests.compat.quote_plus(usock_thread.usock) 214s url = 'http+unix://%s/path/to/page' % urlencoded_usock 214s 214s for method in ['get', 'post', 'head', 'patch', 'put', 'delete', 214s 'options']: 214s logger.debug('Calling session.%s(%r) ...', method, url) 214s > r = getattr(session, method)(url) 214s 214s tests/test_requests_unixsocket.py:27: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/requests/sessions.py:602: in get 214s return self.request("GET", url, **kwargs) 214s /usr/lib/python3/dist-packages/requests/sessions.py:589: in request 214s resp = self.send(prep, **send_kwargs) 214s /usr/lib/python3/dist-packages/requests/sessions.py:703: in send 214s r = adapter.send(request, **kwargs) 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s request = , stream = False, timeout = None, verify = True 214s cert = None 214s proxies = OrderedDict({'no': '127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,p...,objectstorage.prodstack5.canonical.com', 'https': 'http://squid.internal:3128', 'http': 'http://squid.internal:3128'}) 214s 214s def send( 214s self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 214s ): 214s """Sends PreparedRequest object. Returns Response object. 214s 214s :param request: The :class:`PreparedRequest ` being sent. 214s :param stream: (optional) Whether to stream the request content. 214s :param timeout: (optional) How long to wait for the server to send 214s data before giving up, as a float, or a :ref:`(connect timeout, 214s read timeout) ` tuple. 214s :type timeout: float or tuple or urllib3 Timeout object 214s :param verify: (optional) Either a boolean, in which case it controls whether 214s we verify the server's TLS certificate, or a string, in which case it 214s must be a path to a CA bundle to use 214s :param cert: (optional) Any user-provided SSL certificate to be trusted. 214s :param proxies: (optional) The proxies dictionary to apply to the request. 214s :rtype: requests.Response 214s """ 214s 214s try: 214s conn = self.get_connection_with_tls_context( 214s request, verify, proxies=proxies, cert=cert 214s ) 214s except LocationValueError as e: 214s > raise InvalidURL(e, request=request) 214s E requests.exceptions.InvalidURL: Not supported URL scheme http+unix 214s 214s /usr/lib/python3/dist-packages/requests/adapters.py:637: InvalidURL 214s ________________ test_unix_domain_adapter_url_with_query_params ________________ 214s 214s self = 214s request = , stream = False, timeout = None, verify = True 214s cert = None 214s proxies = OrderedDict({'no': '127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,p...,objectstorage.prodstack5.canonical.com', 'https': 'http://squid.internal:3128', 'http': 'http://squid.internal:3128'}) 214s 214s def send( 214s self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 214s ): 214s """Sends PreparedRequest object. Returns Response object. 214s 214s :param request: The :class:`PreparedRequest ` being sent. 214s :param stream: (optional) Whether to stream the request content. 214s :param timeout: (optional) How long to wait for the server to send 214s data before giving up, as a float, or a :ref:`(connect timeout, 214s read timeout) ` tuple. 214s :type timeout: float or tuple or urllib3 Timeout object 214s :param verify: (optional) Either a boolean, in which case it controls whether 214s we verify the server's TLS certificate, or a string, in which case it 214s must be a path to a CA bundle to use 214s :param cert: (optional) Any user-provided SSL certificate to be trusted. 214s :param proxies: (optional) The proxies dictionary to apply to the request. 214s :rtype: requests.Response 214s """ 214s 214s try: 214s > conn = self.get_connection_with_tls_context( 214s request, verify, proxies=proxies, cert=cert 214s ) 214s 214s /usr/lib/python3/dist-packages/requests/adapters.py:633: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/requests/adapters.py:489: in get_connection_with_tls_context 214s conn = self.poolmanager.connection_from_host( 214s /usr/lib/python3/dist-packages/urllib3/poolmanager.py:303: in connection_from_host 214s return self.connection_from_context(request_context) 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s request_context = {'block': False, 'cert_reqs': 'CERT_REQUIRED', 'host': '%2Ftmp%2Ftest_requests.73135_1651_5d85d94e', 'maxsize': 10, ...} 214s 214s def connection_from_context( 214s self, request_context: dict[str, typing.Any] 214s ) -> HTTPConnectionPool: 214s """ 214s Get a :class:`urllib3.connectionpool.ConnectionPool` based on the request context. 214s 214s ``request_context`` must at least contain the ``scheme`` key and its 214s value must be a key in ``key_fn_by_scheme`` instance variable. 214s """ 214s if "strict" in request_context: 214s warnings.warn( 214s "The 'strict' parameter is no longer needed on Python 3+. " 214s "This will raise an error in urllib3 v2.1.0.", 214s DeprecationWarning, 214s ) 214s request_context.pop("strict") 214s 214s scheme = request_context["scheme"].lower() 214s pool_key_constructor = self.key_fn_by_scheme.get(scheme) 214s if not pool_key_constructor: 214s > raise URLSchemeUnknown(scheme) 214s E urllib3.exceptions.URLSchemeUnknown: Not supported URL scheme http+unix 214s 214s /usr/lib/python3/dist-packages/urllib3/poolmanager.py:325: URLSchemeUnknown 214s 214s During handling of the above exception, another exception occurred: 214s 214s def test_unix_domain_adapter_url_with_query_params(): 214s with UnixSocketServerThread() as usock_thread: 214s session = requests_unixsocket.Session('http+unix://') 214s urlencoded_usock = requests.compat.quote_plus(usock_thread.usock) 214s url = ('http+unix://%s' 214s '/containers/nginx/logs?timestamp=true' % urlencoded_usock) 214s 214s for method in ['get', 'post', 'head', 'patch', 'put', 'delete', 214s 'options']: 214s logger.debug('Calling session.%s(%r) ...', method, url) 214s > r = getattr(session, method)(url) 214s 214s tests/test_requests_unixsocket.py:54: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/requests/sessions.py:602: in get 214s return self.request("GET", url, **kwargs) 214s /usr/lib/python3/dist-packages/requests/sessions.py:589: in request 214s resp = self.send(prep, **send_kwargs) 214s /usr/lib/python3/dist-packages/requests/sessions.py:703: in send 214s r = adapter.send(request, **kwargs) 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s request = , stream = False, timeout = None, verify = True 214s cert = None 214s proxies = OrderedDict({'no': '127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,p...,objectstorage.prodstack5.canonical.com', 'https': 'http://squid.internal:3128', 'http': 'http://squid.internal:3128'}) 214s 214s def send( 214s self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 214s ): 214s """Sends PreparedRequest object. Returns Response object. 214s 214s :param request: The :class:`PreparedRequest ` being sent. 214s :param stream: (optional) Whether to stream the request content. 214s :param timeout: (optional) How long to wait for the server to send 214s data before giving up, as a float, or a :ref:`(connect timeout, 214s read timeout) ` tuple. 214s :type timeout: float or tuple or urllib3 Timeout object 214s :param verify: (optional) Either a boolean, in which case it controls whether 214s we verify the server's TLS certificate, or a string, in which case it 214s must be a path to a CA bundle to use 214s :param cert: (optional) Any user-provided SSL certificate to be trusted. 214s :param proxies: (optional) The proxies dictionary to apply to the request. 214s :rtype: requests.Response 214s """ 214s 214s try: 214s conn = self.get_connection_with_tls_context( 214s request, verify, proxies=proxies, cert=cert 214s ) 214s except LocationValueError as e: 214s > raise InvalidURL(e, request=request) 214s E requests.exceptions.InvalidURL: Not supported URL scheme http+unix 214s 214s /usr/lib/python3/dist-packages/requests/adapters.py:637: InvalidURL 214s __________________ test_unix_domain_adapter_connection_error ___________________ 214s 214s self = 214s request = , stream = False, timeout = None, verify = True 214s cert = None 214s proxies = OrderedDict({'no': '127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,p...,objectstorage.prodstack5.canonical.com', 'https': 'http://squid.internal:3128', 'http': 'http://squid.internal:3128'}) 214s 214s def send( 214s self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 214s ): 214s """Sends PreparedRequest object. Returns Response object. 214s 214s :param request: The :class:`PreparedRequest ` being sent. 214s :param stream: (optional) Whether to stream the request content. 214s :param timeout: (optional) How long to wait for the server to send 214s data before giving up, as a float, or a :ref:`(connect timeout, 214s read timeout) ` tuple. 214s :type timeout: float or tuple or urllib3 Timeout object 214s :param verify: (optional) Either a boolean, in which case it controls whether 214s we verify the server's TLS certificate, or a string, in which case it 214s must be a path to a CA bundle to use 214s :param cert: (optional) Any user-provided SSL certificate to be trusted. 214s :param proxies: (optional) The proxies dictionary to apply to the request. 214s :rtype: requests.Response 214s """ 214s 214s try: 214s > conn = self.get_connection_with_tls_context( 214s request, verify, proxies=proxies, cert=cert 214s ) 214s 214s /usr/lib/python3/dist-packages/requests/adapters.py:633: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/requests/adapters.py:489: in get_connection_with_tls_context 214s conn = self.poolmanager.connection_from_host( 214s /usr/lib/python3/dist-packages/urllib3/poolmanager.py:303: in connection_from_host 214s return self.connection_from_context(request_context) 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s request_context = {'block': False, 'cert_reqs': 'CERT_REQUIRED', 'host': 'socket_does_not_exist', 'maxsize': 10, ...} 214s 214s def connection_from_context( 214s self, request_context: dict[str, typing.Any] 214s ) -> HTTPConnectionPool: 214s """ 214s Get a :class:`urllib3.connectionpool.ConnectionPool` based on the request context. 214s 214s ``request_context`` must at least contain the ``scheme`` key and its 214s value must be a key in ``key_fn_by_scheme`` instance variable. 214s """ 214s if "strict" in request_context: 214s warnings.warn( 214s "The 'strict' parameter is no longer needed on Python 3+. " 214s "This will raise an error in urllib3 v2.1.0.", 214s DeprecationWarning, 214s ) 214s request_context.pop("strict") 214s 214s scheme = request_context["scheme"].lower() 214s pool_key_constructor = self.key_fn_by_scheme.get(scheme) 214s if not pool_key_constructor: 214s > raise URLSchemeUnknown(scheme) 214s E urllib3.exceptions.URLSchemeUnknown: Not supported URL scheme http+unix 214s 214s /usr/lib/python3/dist-packages/urllib3/poolmanager.py:325: URLSchemeUnknown 214s 214s During handling of the above exception, another exception occurred: 214s 214s def test_unix_domain_adapter_connection_error(): 214s session = requests_unixsocket.Session('http+unix://') 214s 214s for method in ['get', 'post', 'head', 'patch', 'put', 'delete', 'options']: 214s with pytest.raises(requests.ConnectionError): 214s > getattr(session, method)( 214s 'http+unix://socket_does_not_exist/path/to/page') 214s 214s tests/test_requests_unixsocket.py:77: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/requests/sessions.py:602: in get 214s return self.request("GET", url, **kwargs) 214s /usr/lib/python3/dist-packages/requests/sessions.py:589: in request 214s resp = self.send(prep, **send_kwargs) 214s /usr/lib/python3/dist-packages/requests/sessions.py:703: in send 214s r = adapter.send(request, **kwargs) 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s request = , stream = False, timeout = None, verify = True 214s cert = None 214s proxies = OrderedDict({'no': '127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,p...,objectstorage.prodstack5.canonical.com', 'https': 'http://squid.internal:3128', 'http': 'http://squid.internal:3128'}) 214s 214s def send( 214s self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 214s ): 214s """Sends PreparedRequest object. Returns Response object. 214s 214s :param request: The :class:`PreparedRequest ` being sent. 214s :param stream: (optional) Whether to stream the request content. 214s :param timeout: (optional) How long to wait for the server to send 214s data before giving up, as a float, or a :ref:`(connect timeout, 214s read timeout) ` tuple. 214s :type timeout: float or tuple or urllib3 Timeout object 214s :param verify: (optional) Either a boolean, in which case it controls whether 214s we verify the server's TLS certificate, or a string, in which case it 214s must be a path to a CA bundle to use 214s :param cert: (optional) Any user-provided SSL certificate to be trusted. 214s :param proxies: (optional) The proxies dictionary to apply to the request. 214s :rtype: requests.Response 214s """ 214s 214s try: 214s conn = self.get_connection_with_tls_context( 214s request, verify, proxies=proxies, cert=cert 214s ) 214s except LocationValueError as e: 214s > raise InvalidURL(e, request=request) 214s E requests.exceptions.InvalidURL: Not supported URL scheme http+unix 214s 214s /usr/lib/python3/dist-packages/requests/adapters.py:637: InvalidURL 214s ______________ test_unix_domain_adapter_connection_proxies_error _______________ 214s 214s self = 214s 214s def _new_conn(self) -> socket.socket: 214s """Establish a socket connection and set nodelay settings on it. 214s 214s :return: New socket connection. 214s """ 214s try: 214s > sock = connection.create_connection( 214s (self._dns_host, self.port), 214s self.timeout, 214s source_address=self.source_address, 214s socket_options=self.socket_options, 214s ) 214s 214s /usr/lib/python3/dist-packages/urllib3/connection.py:203: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/urllib3/util/connection.py:85: in create_connection 214s raise err 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s address = ('10.10.1.10', 1080), timeout = None, source_address = None 214s socket_options = [] 214s 214s def create_connection( 214s address: tuple[str, int], 214s timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 214s source_address: tuple[str, int] | None = None, 214s socket_options: _TYPE_SOCKET_OPTIONS | None = None, 214s ) -> socket.socket: 214s """Connect to *address* and return the socket object. 214s 214s Convenience function. Connect to *address* (a 2-tuple ``(host, 214s port)``) and return the socket object. Passing the optional 214s *timeout* parameter will set the timeout on the socket instance 214s before attempting to connect. If no *timeout* is supplied, the 214s global default timeout setting returned by :func:`socket.getdefaulttimeout` 214s is used. If *source_address* is set it must be a tuple of (host, port) 214s for the socket to bind as a source address before making the connection. 214s An host of '' or port 0 tells the OS to use the default. 214s """ 214s 214s host, port = address 214s if host.startswith("["): 214s host = host.strip("[]") 214s err = None 214s 214s # Using the value from allowed_gai_family() in the context of getaddrinfo lets 214s # us select whether to work with IPv4 DNS records, IPv6 records, or both. 214s # The original create_connection function always returns all records. 214s family = allowed_gai_family() 214s 214s try: 214s host.encode("idna") 214s except UnicodeError: 214s raise LocationParseError(f"'{host}', label empty or too long") from None 214s 214s for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 214s af, socktype, proto, canonname, sa = res 214s sock = None 214s try: 214s sock = socket.socket(af, socktype, proto) 214s 214s # If provided, set socket level options before connecting. 214s _set_socket_options(sock, socket_options) 214s 214s if timeout is not _DEFAULT_TIMEOUT: 214s sock.settimeout(timeout) 214s if source_address: 214s sock.bind(source_address) 214s > sock.connect(sa) 214s E ConnectionRefusedError: [Errno 111] Connection refused 214s 214s /usr/lib/python3/dist-packages/urllib3/util/connection.py:73: ConnectionRefusedError 214s 214s The above exception was the direct cause of the following exception: 214s 214s self = 214s method = 'GET', url = '/path/to/page', body = None 214s headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} 214s retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 214s redirect = False, assert_same_host = False 214s timeout = Timeout(connect=None, read=None, total=None), pool_timeout = None 214s release_conn = False, chunked = False, body_pos = None, preload_content = False 214s decode_content = False, response_kw = {} 214s parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/path/to/page', query=None, fragment=None) 214s destination_scheme = None, conn = None, release_this_conn = True 214s http_tunnel_required = True, err = None, clean_exit = False 214s 214s def urlopen( # type: ignore[override] 214s self, 214s method: str, 214s url: str, 214s body: _TYPE_BODY | None = None, 214s headers: typing.Mapping[str, str] | None = None, 214s retries: Retry | bool | int | None = None, 214s redirect: bool = True, 214s assert_same_host: bool = True, 214s timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 214s pool_timeout: int | None = None, 214s release_conn: bool | None = None, 214s chunked: bool = False, 214s body_pos: _TYPE_BODY_POSITION | None = None, 214s preload_content: bool = True, 214s decode_content: bool = True, 214s **response_kw: typing.Any, 214s ) -> BaseHTTPResponse: 214s """ 214s Get a connection from the pool and perform an HTTP request. This is the 214s lowest level call for making a request, so you'll need to specify all 214s the raw details. 214s 214s .. note:: 214s 214s More commonly, it's appropriate to use a convenience method 214s such as :meth:`request`. 214s 214s .. note:: 214s 214s `release_conn` will only behave as expected if 214s `preload_content=False` because we want to make 214s `preload_content=False` the default behaviour someday soon without 214s breaking backwards compatibility. 214s 214s :param method: 214s HTTP request method (such as GET, POST, PUT, etc.) 214s 214s :param url: 214s The URL to perform the request on. 214s 214s :param body: 214s Data to send in the request body, either :class:`str`, :class:`bytes`, 214s an iterable of :class:`str`/:class:`bytes`, or a file-like object. 214s 214s :param headers: 214s Dictionary of custom headers to send, such as User-Agent, 214s If-None-Match, etc. If None, pool headers are used. If provided, 214s these headers completely replace any pool-specific headers. 214s 214s :param retries: 214s Configure the number of retries to allow before raising a 214s :class:`~urllib3.exceptions.MaxRetryError` exception. 214s 214s Pass ``None`` to retry until you receive a response. Pass a 214s :class:`~urllib3.util.retry.Retry` object for fine-grained control 214s over different types of retries. 214s Pass an integer number to retry connection errors that many times, 214s but no other types of errors. Pass zero to never retry. 214s 214s If ``False``, then retries are disabled and any exception is raised 214s immediately. Also, instead of raising a MaxRetryError on redirects, 214s the redirect response will be returned. 214s 214s :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 214s 214s :param redirect: 214s If True, automatically handle redirects (status codes 301, 302, 214s 303, 307, 308). Each redirect counts as a retry. Disabling retries 214s will disable redirect, too. 214s 214s :param assert_same_host: 214s If ``True``, will make sure that the host of the pool requests is 214s consistent else will raise HostChangedError. When ``False``, you can 214s use the pool on an HTTP proxy and request foreign hosts. 214s 214s :param timeout: 214s If specified, overrides the default timeout for this one 214s request. It may be a float (in seconds) or an instance of 214s :class:`urllib3.util.Timeout`. 214s 214s :param pool_timeout: 214s If set and the pool is set to block=True, then this method will 214s block for ``pool_timeout`` seconds and raise EmptyPoolError if no 214s connection is available within the time period. 214s 214s :param bool preload_content: 214s If True, the response's body will be preloaded into memory. 214s 214s :param bool decode_content: 214s If True, will attempt to decode the body based on the 214s 'content-encoding' header. 214s 214s :param release_conn: 214s If False, then the urlopen call will not release the connection 214s back into the pool once a response is received (but will release if 214s you read the entire contents of the response such as when 214s `preload_content=True`). This is useful if you're not preloading 214s the response's content immediately. You will need to call 214s ``r.release_conn()`` on the response ``r`` to return the connection 214s back into the pool. If None, it takes the value of ``preload_content`` 214s which defaults to ``True``. 214s 214s :param bool chunked: 214s If True, urllib3 will send the body using chunked transfer 214s encoding. Otherwise, urllib3 will send the body using the standard 214s content-length form. Defaults to False. 214s 214s :param int body_pos: 214s Position to seek to in file-like body in the event of a retry or 214s redirect. Typically this won't need to be set because urllib3 will 214s auto-populate the value when needed. 214s """ 214s parsed_url = parse_url(url) 214s destination_scheme = parsed_url.scheme 214s 214s if headers is None: 214s headers = self.headers 214s 214s if not isinstance(retries, Retry): 214s retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 214s 214s if release_conn is None: 214s release_conn = preload_content 214s 214s # Check host 214s if assert_same_host and not self.is_same_host(url): 214s raise HostChangedError(self, url, retries) 214s 214s # Ensure that the URL we're connecting to is properly encoded 214s if url.startswith("/"): 214s url = to_str(_encode_target(url)) 214s else: 214s url = to_str(parsed_url.url) 214s 214s conn = None 214s 214s # Track whether `conn` needs to be released before 214s # returning/raising/recursing. Update this variable if necessary, and 214s # leave `release_conn` constant throughout the function. That way, if 214s # the function recurses, the original value of `release_conn` will be 214s # passed down into the recursive call, and its value will be respected. 214s # 214s # See issue #651 [1] for details. 214s # 214s # [1] 214s release_this_conn = release_conn 214s 214s http_tunnel_required = connection_requires_http_tunnel( 214s self.proxy, self.proxy_config, destination_scheme 214s ) 214s 214s # Merge the proxy headers. Only done when not using HTTP CONNECT. We 214s # have to copy the headers dict so we can safely change it without those 214s # changes being reflected in anyone else's copy. 214s if not http_tunnel_required: 214s headers = headers.copy() # type: ignore[attr-defined] 214s headers.update(self.proxy_headers) # type: ignore[union-attr] 214s 214s # Must keep the exception bound to a separate variable or else Python 3 214s # complains about UnboundLocalError. 214s err = None 214s 214s # Keep track of whether we cleanly exited the except block. This 214s # ensures we do proper cleanup in finally. 214s clean_exit = False 214s 214s # Rewind body position, if needed. Record current position 214s # for future rewinds in the event of a redirect/retry. 214s body_pos = set_file_position(body, body_pos) 214s 214s try: 214s # Request a connection from the queue. 214s timeout_obj = self._get_timeout(timeout) 214s conn = self._get_conn(timeout=pool_timeout) 214s 214s conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 214s 214s # Is this a closed/new connection that requires CONNECT tunnelling? 214s if self.proxy is not None and http_tunnel_required and conn.is_closed: 214s try: 214s self._prepare_proxy(conn) 214s except (BaseSSLError, OSError, SocketTimeout) as e: 214s self._raise_timeout( 214s err=e, url=self.proxy.url, timeout_value=conn.timeout 214s ) 214s raise 214s 214s # If we're going to release the connection in ``finally:``, then 214s # the response doesn't need to know about the connection. Otherwise 214s # it will also try to release it and we'll have a double-release 214s # mess. 214s response_conn = conn if not release_conn else None 214s 214s # Make the request on the HTTPConnection object 214s > response = self._make_request( 214s conn, 214s method, 214s url, 214s timeout=timeout_obj, 214s body=body, 214s headers=headers, 214s chunked=chunked, 214s retries=retries, 214s response_conn=response_conn, 214s preload_content=preload_content, 214s decode_content=decode_content, 214s **response_kw, 214s ) 214s 214s /usr/lib/python3/dist-packages/urllib3/connectionpool.py:791: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/urllib3/connectionpool.py:497: in _make_request 214s conn.request( 214s /usr/lib/python3/dist-packages/urllib3/connection.py:395: in request 214s self.endheaders() 214s /usr/lib/python3.12/http/client.py:1331: in endheaders 214s self._send_output(message_body, encode_chunked=encode_chunked) 214s /usr/lib/python3.12/http/client.py:1091: in _send_output 214s self.send(msg) 214s /usr/lib/python3.12/http/client.py:1035: in send 214s self.connect() 214s /usr/lib/python3/dist-packages/urllib3/connection.py:243: in connect 214s self.sock = self._new_conn() 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = 214s 214s def _new_conn(self) -> socket.socket: 214s """Establish a socket connection and set nodelay settings on it. 214s 214s :return: New socket connection. 214s """ 214s try: 214s sock = connection.create_connection( 214s (self._dns_host, self.port), 214s self.timeout, 214s source_address=self.source_address, 214s socket_options=self.socket_options, 214s ) 214s except socket.gaierror as e: 214s raise NameResolutionError(self.host, self, e) from e 214s except SocketTimeout as e: 214s raise ConnectTimeoutError( 214s self, 214s f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 214s ) from e 214s 214s except OSError as e: 214s > raise NewConnectionError( 214s self, f"Failed to establish a new connection: {e}" 214s ) from e 214s E urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 214s 214s /usr/lib/python3/dist-packages/urllib3/connection.py:218: NewConnectionError 214s 214s The above exception was the direct cause of the following exception: 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 203, in _new_conn 214s sock = connection.create_connection( 214s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 85, in create_connection 214s raise err 214s File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 73, in create_connection 214s sock.connect(sa) 214s ConnectionRefusedError: [Errno 111] Connection refused 214s 214s The above exception was the direct cause of the following exception: 214s 214s Traceback (most recent call last): 214s File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 791, in urlopen 214s response = self._make_request( 214s ^^^^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 497, in _make_request 214s conn.request( 214s File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 395, in request 214s self.endheaders() 214s File "/usr/lib/python3.12/http/client.py", line 1331, in endheaders 214s self._send_output(message_body, encode_chunked=encode_chunked) 214s File "/usr/lib/python3.12/http/client.py", line 1091, in _send_output 214s self.send(msg) 214s File "/usr/lib/python3.12/http/client.py", line 1035, in send 214s self.connect() 214s File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 243, in connect 214s self.sock = self._new_conn() 214s ^^^^^^^^^^^^^^^^ 214s File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 218, in _new_conn 214s raise NewConnectionError( 214s urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused 214s 214s The above exception was the direct cause of the following exception: 214s 214s urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 214s 214s The above exception was the direct cause of the following exception: 214s 214s self = 214s request = , stream = False 214s timeout = Timeout(connect=None, read=None, total=None), verify = True 214s cert = None 214s proxies = OrderedDict({'http+unix': 'http://10.10.1.10:1080', 'no': '127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,...,objectstorage.prodstack5.canonical.com', 'https': 'http://squid.internal:3128', 'http': 'http://squid.internal:3128'}) 214s 214s def send( 214s self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 214s ): 214s """Sends PreparedRequest object. Returns Response object. 214s 214s :param request: The :class:`PreparedRequest ` being sent. 214s :param stream: (optional) Whether to stream the request content. 214s :param timeout: (optional) How long to wait for the server to send 214s data before giving up, as a float, or a :ref:`(connect timeout, 214s read timeout) ` tuple. 214s :type timeout: float or tuple or urllib3 Timeout object 214s :param verify: (optional) Either a boolean, in which case it controls whether 214s we verify the server's TLS certificate, or a string, in which case it 214s must be a path to a CA bundle to use 214s :param cert: (optional) Any user-provided SSL certificate to be trusted. 214s :param proxies: (optional) The proxies dictionary to apply to the request. 214s :rtype: requests.Response 214s """ 214s 214s try: 214s conn = self.get_connection_with_tls_context( 214s request, verify, proxies=proxies, cert=cert 214s ) 214s except LocationValueError as e: 214s raise InvalidURL(e, request=request) 214s 214s self.cert_verify(conn, request.url, verify, cert) 214s url = self.request_url(request, proxies) 214s self.add_headers( 214s request, 214s stream=stream, 214s timeout=timeout, 214s verify=verify, 214s cert=cert, 214s proxies=proxies, 214s ) 214s 214s chunked = not (request.body is None or "Content-Length" in request.headers) 214s 214s if isinstance(timeout, tuple): 214s try: 214s connect, read = timeout 214s timeout = TimeoutSauce(connect=connect, read=read) 214s except ValueError: 214s raise ValueError( 214s f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 214s f"or a single float to set both timeouts to the same value." 214s ) 214s elif isinstance(timeout, TimeoutSauce): 214s pass 214s else: 214s timeout = TimeoutSauce(connect=timeout, read=timeout) 214s 214s try: 214s > resp = conn.urlopen( 214s method=request.method, 214s url=url, 214s body=request.body, 214s headers=request.headers, 214s redirect=False, 214s assert_same_host=False, 214s preload_content=False, 214s decode_content=False, 214s retries=self.max_retries, 214s timeout=timeout, 214s chunked=chunked, 214s ) 214s 214s /usr/lib/python3/dist-packages/requests/adapters.py:667: 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s /usr/lib/python3/dist-packages/urllib3/connectionpool.py:845: in urlopen 214s retries = retries.increment( 214s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 214s 214s self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 214s method = 'GET', url = '/path/to/page', response = None 214s error = ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) 214s _pool = 214s _stacktrace = 214s 214s def increment( 214s self, 214s method: str | None = None, 214s url: str | None = None, 214s response: BaseHTTPResponse | None = None, 214s error: Exception | None = None, 214s _pool: ConnectionPool | None = None, 214s _stacktrace: TracebackType | None = None, 214s ) -> Retry: 214s """Return a new Retry object with incremented retry counters. 214s 214s :param response: A response object, or None, if the server did not 214s return a response. 214s :type response: :class:`~urllib3.response.BaseHTTPResponse` 214s :param Exception error: An error encountered during the request, or 214s None if the response was received successfully. 214s 215s :return: A new ``Retry`` object. 215s """ 215s if self.total is False and error: 215s # Disabled, indicate to re-raise the error. 215s raise reraise(type(error), error, _stacktrace) 215s 215s total = self.total 215s if total is not None: 215s total -= 1 215s 215s connect = self.connect 215s read = self.read 215s redirect = self.redirect 215s status_count = self.status 215s other = self.other 215s cause = "unknown" 215s status = None 215s redirect_location = None 215s 215s if error and self._is_connection_error(error): 215s # Connect retry? 215s if connect is False: 215s raise reraise(type(error), error, _stacktrace) 215s elif connect is not None: 215s connect -= 1 215s 215s elif error and self._is_read_error(error): 215s # Read retry? 215s if read is False or method is None or not self._is_method_retryable(method): 215s raise reraise(type(error), error, _stacktrace) 215s elif read is not None: 215s read -= 1 215s 215s elif error: 215s # Other retry? 215s if other is not None: 215s other -= 1 215s 215s elif response and response.get_redirect_location(): 215s # Redirect retry? 215s if redirect is not None: 215s redirect -= 1 215s cause = "too many redirects" 215s response_redirect_location = response.get_redirect_location() 215s if response_redirect_location: 215s redirect_location = response_redirect_location 215s status = response.status 215s 215s else: 215s # Incrementing because of a server error like a 500 in 215s # status_forcelist and the given method is in the allowed_methods 215s cause = ResponseError.GENERIC_ERROR 215s if response and response.status: 215s if status_count is not None: 215s status_count -= 1 215s cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) 215s status = response.status 215s 215s history = self.history + ( 215s RequestHistory(method, url, error, status, redirect_location), 215s ) 215s 215s new_retry = self.new( 215s total=total, 215s connect=connect, 215s read=read, 215s redirect=redirect, 215s status=status_count, 215s other=other, 215s history=history, 215s ) 215s 215s if new_retry.is_exhausted(): 215s reason = error or ResponseError(cause) 215s > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 215s E urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.10.1.10', port=1080): Max retries exceeded with url: /path/to/page (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) 215s 215s /usr/lib/python3/dist-packages/urllib3/util/retry.py:515: MaxRetryError 215s 215s During handling of the above exception, another exception occurred: 215s 215s def test_unix_domain_adapter_connection_proxies_error(): 215s session = requests_unixsocket.Session('http+unix://') 215s 215s for method in ['get', 'post', 'head', 'patch', 'put', 'delete', 'options']: 215s with pytest.raises(ValueError) as excinfo: 215s > getattr(session, method)( 215s 'http+unix://socket_does_not_exist/path/to/page', 215s proxies={"http+unix": "http://10.10.1.10:1080"}) 215s 215s tests/test_requests_unixsocket.py:86: 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s /usr/lib/python3/dist-packages/requests/sessions.py:602: in get 215s return self.request("GET", url, **kwargs) 215s /usr/lib/python3/dist-packages/requests/sessions.py:589: in request 215s resp = self.send(prep, **send_kwargs) 215s /usr/lib/python3/dist-packages/requests/sessions.py:703: in send 215s r = adapter.send(request, **kwargs) 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s 215s self = 215s request = , stream = False 215s timeout = Timeout(connect=None, read=None, total=None), verify = True 215s cert = None 215s proxies = OrderedDict({'http+unix': 'http://10.10.1.10:1080', 'no': '127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,...,objectstorage.prodstack5.canonical.com', 'https': 'http://squid.internal:3128', 'http': 'http://squid.internal:3128'}) 215s 215s def send( 215s self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 215s ): 215s """Sends PreparedRequest object. Returns Response object. 215s 215s :param request: The :class:`PreparedRequest ` being sent. 215s :param stream: (optional) Whether to stream the request content. 215s :param timeout: (optional) How long to wait for the server to send 215s data before giving up, as a float, or a :ref:`(connect timeout, 215s read timeout) ` tuple. 215s :type timeout: float or tuple or urllib3 Timeout object 215s :param verify: (optional) Either a boolean, in which case it controls whether 215s we verify the server's TLS certificate, or a string, in which case it 215s must be a path to a CA bundle to use 215s :param cert: (optional) Any user-provided SSL certificate to be trusted. 215s :param proxies: (optional) The proxies dictionary to apply to the request. 215s :rtype: requests.Response 215s """ 215s 215s try: 215s conn = self.get_connection_with_tls_context( 215s request, verify, proxies=proxies, cert=cert 215s ) 215s except LocationValueError as e: 215s raise InvalidURL(e, request=request) 215s 215s self.cert_verify(conn, request.url, verify, cert) 215s url = self.request_url(request, proxies) 215s self.add_headers( 215s request, 215s stream=stream, 215s timeout=timeout, 215s verify=verify, 215s cert=cert, 215s proxies=proxies, 215s ) 215s 215s chunked = not (request.body is None or "Content-Length" in request.headers) 215s 215s if isinstance(timeout, tuple): 215s try: 215s connect, read = timeout 215s timeout = TimeoutSauce(connect=connect, read=read) 215s except ValueError: 215s raise ValueError( 215s f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " 215s f"or a single float to set both timeouts to the same value." 215s ) 215s elif isinstance(timeout, TimeoutSauce): 215s pass 215s else: 215s timeout = TimeoutSauce(connect=timeout, read=timeout) 215s 215s try: 215s resp = conn.urlopen( 215s method=request.method, 215s url=url, 215s body=request.body, 215s headers=request.headers, 215s redirect=False, 215s assert_same_host=False, 215s preload_content=False, 215s decode_content=False, 215s retries=self.max_retries, 215s timeout=timeout, 215s chunked=chunked, 215s ) 215s 215s except (ProtocolError, OSError) as err: 215s raise ConnectionError(err, request=request) 215s 215s except MaxRetryError as e: 215s if isinstance(e.reason, ConnectTimeoutError): 215s # TODO: Remove this in 3.0.0: see #2811 215s if not isinstance(e.reason, NewConnectionError): 215s raise ConnectTimeout(e, request=request) 215s 215s if isinstance(e.reason, ResponseError): 215s raise RetryError(e, request=request) 215s 215s if isinstance(e.reason, _ProxyError): 215s > raise ProxyError(e, request=request) 215s E requests.exceptions.ProxyError: HTTPConnectionPool(host='10.10.1.10', port=1080): Max retries exceeded with url: /path/to/page (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))) 215s 215s /usr/lib/python3/dist-packages/requests/adapters.py:694: ProxyError 215s _____________________ test_unix_domain_adapter_monkeypatch _____________________ 215s 215s self = 215s request = , stream = False, timeout = None, verify = True 215s cert = None 215s proxies = OrderedDict({'no': '127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,p...,objectstorage.prodstack5.canonical.com', 'https': 'http://squid.internal:3128', 'http': 'http://squid.internal:3128'}) 215s 215s def send( 215s self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 215s ): 215s """Sends PreparedRequest object. Returns Response object. 215s 215s :param request: The :class:`PreparedRequest ` being sent. 215s :param stream: (optional) Whether to stream the request content. 215s :param timeout: (optional) How long to wait for the server to send 215s data before giving up, as a float, or a :ref:`(connect timeout, 215s read timeout) ` tuple. 215s :type timeout: float or tuple or urllib3 Timeout object 215s :param verify: (optional) Either a boolean, in which case it controls whether 215s we verify the server's TLS certificate, or a string, in which case it 215s must be a path to a CA bundle to use 215s :param cert: (optional) Any user-provided SSL certificate to be trusted. 215s :param proxies: (optional) The proxies dictionary to apply to the request. 215s :rtype: requests.Response 215s """ 215s 215s try: 215s > conn = self.get_connection_with_tls_context( 215s request, verify, proxies=proxies, cert=cert 215s ) 215s 215s /usr/lib/python3/dist-packages/requests/adapters.py:633: 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s /usr/lib/python3/dist-packages/requests/adapters.py:489: in get_connection_with_tls_context 215s conn = self.poolmanager.connection_from_host( 215s /usr/lib/python3/dist-packages/urllib3/poolmanager.py:303: in connection_from_host 215s return self.connection_from_context(request_context) 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s 215s self = 215s request_context = {'block': False, 'cert_reqs': 'CERT_REQUIRED', 'host': '%2Ftmp%2Ftest_requests.73135_1651_d953d5e9', 'maxsize': 10, ...} 215s 215s def connection_from_context( 215s self, request_context: dict[str, typing.Any] 215s ) -> HTTPConnectionPool: 215s """ 215s Get a :class:`urllib3.connectionpool.ConnectionPool` based on the request context. 215s 215s ``request_context`` must at least contain the ``scheme`` key and its 215s value must be a key in ``key_fn_by_scheme`` instance variable. 215s """ 215s if "strict" in request_context: 215s warnings.warn( 215s "The 'strict' parameter is no longer needed on Python 3+. " 215s "This will raise an error in urllib3 v2.1.0.", 215s DeprecationWarning, 215s ) 215s request_context.pop("strict") 215s 215s scheme = request_context["scheme"].lower() 215s pool_key_constructor = self.key_fn_by_scheme.get(scheme) 215s if not pool_key_constructor: 215s > raise URLSchemeUnknown(scheme) 215s E urllib3.exceptions.URLSchemeUnknown: Not supported URL scheme http+unix 215s 215s /usr/lib/python3/dist-packages/urllib3/poolmanager.py:325: URLSchemeUnknown 215s 215s During handling of the above exception, another exception occurred: 215s 215s def test_unix_domain_adapter_monkeypatch(): 215s with UnixSocketServerThread() as usock_thread: 215s with requests_unixsocket.monkeypatch('http+unix://'): 215s urlencoded_usock = requests.compat.quote_plus(usock_thread.usock) 215s url = 'http+unix://%s/path/to/page' % urlencoded_usock 215s 215s for method in ['get', 'post', 'head', 'patch', 'put', 'delete', 215s 'options']: 215s logger.debug('Calling session.%s(%r) ...', method, url) 215s > r = getattr(requests, method)(url) 215s 215s tests/test_requests_unixsocket.py:102: 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s /usr/lib/python3/dist-packages/requests_unixsocket/__init__.py:51: in get 215s return request('get', url, **kwargs) 215s /usr/lib/python3/dist-packages/requests_unixsocket/__init__.py:46: in request 215s return session.request(method=method, url=url, **kwargs) 215s /usr/lib/python3/dist-packages/requests/sessions.py:589: in request 215s resp = self.send(prep, **send_kwargs) 215s /usr/lib/python3/dist-packages/requests/sessions.py:703: in send 215s r = adapter.send(request, **kwargs) 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s 215s self = 215s request = , stream = False, timeout = None, verify = True 215s cert = None 215s proxies = OrderedDict({'no': '127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,p...,objectstorage.prodstack5.canonical.com', 'https': 'http://squid.internal:3128', 'http': 'http://squid.internal:3128'}) 215s 215s def send( 215s self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None 215s ): 215s """Sends PreparedRequest object. Returns Response object. 215s 215s :param request: The :class:`PreparedRequest ` being sent. 215s :param stream: (optional) Whether to stream the request content. 215s :param timeout: (optional) How long to wait for the server to send 215s data before giving up, as a float, or a :ref:`(connect timeout, 215s read timeout) ` tuple. 215s :type timeout: float or tuple or urllib3 Timeout object 215s :param verify: (optional) Either a boolean, in which case it controls whether 215s we verify the server's TLS certificate, or a string, in which case it 215s must be a path to a CA bundle to use 215s :param cert: (optional) Any user-provided SSL certificate to be trusted. 215s :param proxies: (optional) The proxies dictionary to apply to the request. 215s :rtype: requests.Response 215s """ 215s 215s try: 215s conn = self.get_connection_with_tls_context( 215s request, verify, proxies=proxies, cert=cert 215s ) 215s except LocationValueError as e: 215s > raise InvalidURL(e, request=request) 215s E requests.exceptions.InvalidURL: Not supported URL scheme http+unix 215s 215s /usr/lib/python3/dist-packages/requests/adapters.py:637: InvalidURL 215s =========================== short test summary info ============================ 215s FAILED tests/test_requests_unixsocket.py::test_unix_domain_adapter_ok - reque... 215s FAILED tests/test_requests_unixsocket.py::test_unix_domain_adapter_url_with_query_params 215s FAILED tests/test_requests_unixsocket.py::test_unix_domain_adapter_connection_error 215s FAILED tests/test_requests_unixsocket.py::test_unix_domain_adapter_connection_proxies_error 215s FAILED tests/test_requests_unixsocket.py::test_unix_domain_adapter_monkeypatch 215s ============================== 5 failed in 0.50s =============================== 217s autopkgtest [11:53:08]: test python3-requests-unixsocket: -----------------------] 220s autopkgtest [11:53:11]: test python3-requests-unixsocket: - - - - - - - - - - results - - - - - - - - - - 220s python3-requests-unixsocket FAIL non-zero exit status 1 224s autopkgtest [11:53:15]: @@@@@@@@@@@@@@@@@@@@ summary 224s python3-requests-unixsocket FAIL non-zero exit status 1