0s autopkgtest [01:03:25]: starting date and time: 2024-07-01 01:03:25+0000 0s autopkgtest [01:03:25]: git checkout: 85adf9a1 setup-testbed: prevent /tmp from getting a tmpfs mount 0s autopkgtest [01:03:25]: host juju-7f2275-prod-proposed-migration-environment-3; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.cvdpi7z5/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --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 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-3@lcy02-91.secgroup --name adt-oracular-amd64-python-requests-unixsocket-20240701-010323-juju-7f2275-prod-proposed-migration-environment-3-6a23d361-fb9d-4bfc-8d28-940c936cb3bd --image adt/ubuntu-oracular-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-3 --net-id=net_prod-proposed-migration -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_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'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 43s autopkgtest [01:04:08]: testbed dpkg architecture: amd64 43s autopkgtest [01:04:08]: testbed apt version: 2.9.5 43s autopkgtest [01:04:08]: @@@@@@@@@@@@@@@@@@@@ test bed setup 43s Get:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease [110 kB] 43s Get:2 http://ftpmaster.internal/ubuntu oracular-proposed/universe Sources [387 kB] 43s Get:3 http://ftpmaster.internal/ubuntu oracular-proposed/main Sources [43.2 kB] 43s Get:4 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse Sources [3268 B] 43s Get:5 http://ftpmaster.internal/ubuntu oracular-proposed/restricted Sources [7052 B] 43s Get:6 http://ftpmaster.internal/ubuntu oracular-proposed/main amd64 Packages [86.3 kB] 43s Get:7 http://ftpmaster.internal/ubuntu oracular-proposed/main i386 Packages [70.2 kB] 43s Get:8 http://ftpmaster.internal/ubuntu oracular-proposed/restricted amd64 Packages [28.0 kB] 43s Get:9 http://ftpmaster.internal/ubuntu oracular-proposed/restricted i386 Packages [6244 B] 43s Get:10 http://ftpmaster.internal/ubuntu oracular-proposed/universe i386 Packages [210 kB] 43s Get:11 http://ftpmaster.internal/ubuntu oracular-proposed/universe amd64 Packages [341 kB] 43s Get:12 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse i386 Packages [3368 B] 43s Get:13 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse amd64 Packages [7968 B] 44s Fetched 1304 kB in 0s (5881 kB/s) 44s Reading package lists... 45s Reading package lists... 45s Building dependency tree... 45s Reading state information... 46s Calculating upgrade... 46s The following packages will be upgraded: 46s dpkg dpkg-dev libdpkg-perl lto-disabled-list python3-requests 46s 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 46s Need to get 2690 kB of archives. 46s After this operation, 27.6 kB of additional disk space will be used. 46s Get:1 http://ftpmaster.internal/ubuntu oracular/main amd64 dpkg amd64 1.22.6ubuntu14 [1280 kB] 46s Get:2 http://ftpmaster.internal/ubuntu oracular/main amd64 dpkg-dev all 1.22.6ubuntu14 [1075 kB] 46s Get:3 http://ftpmaster.internal/ubuntu oracular/main amd64 libdpkg-perl all 1.22.6ubuntu14 [270 kB] 46s Get:4 http://ftpmaster.internal/ubuntu oracular/main amd64 lto-disabled-list all 50 [12.3 kB] 46s Get:5 http://ftpmaster.internal/ubuntu oracular-proposed/main amd64 python3-requests all 2.32.3+dfsg-1ubuntu1 [52.6 kB] 46s Fetched 2690 kB in 0s (31.0 MB/s) 46s (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 ... 74422 files and directories currently installed.) 46s Preparing to unpack .../dpkg_1.22.6ubuntu14_amd64.deb ... 46s Unpacking dpkg (1.22.6ubuntu14) over (1.22.6ubuntu10) ... 47s Setting up dpkg (1.22.6ubuntu14) ... 47s (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 ... 74422 files and directories currently installed.) 47s Preparing to unpack .../dpkg-dev_1.22.6ubuntu14_all.deb ... 47s Unpacking dpkg-dev (1.22.6ubuntu14) over (1.22.6ubuntu10) ... 47s Preparing to unpack .../libdpkg-perl_1.22.6ubuntu14_all.deb ... 47s Unpacking libdpkg-perl (1.22.6ubuntu14) over (1.22.6ubuntu10) ... 47s Preparing to unpack .../lto-disabled-list_50_all.deb ... 47s Unpacking lto-disabled-list (50) over (49) ... 47s Preparing to unpack .../python3-requests_2.32.3+dfsg-1ubuntu1_all.deb ... 47s Unpacking python3-requests (2.32.3+dfsg-1ubuntu1) over (2.31.0+dfsg-1ubuntu3) ... 47s Setting up lto-disabled-list (50) ... 47s Setting up python3-requests (2.32.3+dfsg-1ubuntu1) ... 47s Setting up libdpkg-perl (1.22.6ubuntu14) ... 47s Setting up dpkg-dev (1.22.6ubuntu14) ... 47s Processing triggers for man-db (2.12.1-2) ... 49s Reading package lists... 49s Building dependency tree... 49s Reading state information... 50s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 50s Hit:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease 50s Hit:2 http://ftpmaster.internal/ubuntu oracular InRelease 50s Hit:3 http://ftpmaster.internal/ubuntu oracular-updates InRelease 50s Hit:4 http://ftpmaster.internal/ubuntu oracular-security InRelease 51s Reading package lists... 51s Reading package lists... 51s Building dependency tree... 51s Reading state information... 51s Calculating upgrade... 52s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 52s Reading package lists... 52s Building dependency tree... 52s Reading state information... 52s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 52s autopkgtest [01:04:17]: rebooting testbed after setup commands that affected boot 55s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 67s autopkgtest [01:04:32]: testbed running kernel: Linux 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 68s autopkgtest [01:04:33]: @@@@@@@@@@@@@@@@@@@@ apt-source python-requests-unixsocket 68s Get:1 http://ftpmaster.internal/ubuntu oracular/universe python-requests-unixsocket 0.3.0-4 (dsc) [2359 B] 68s Get:2 http://ftpmaster.internal/ubuntu oracular/universe python-requests-unixsocket 0.3.0-4 (tar) [10.3 kB] 68s Get:3 http://ftpmaster.internal/ubuntu oracular/universe python-requests-unixsocket 0.3.0-4 (diff) [4136 B] 69s gpgv: Signature made Mon Apr 29 13:16:38 2024 UTC 69s gpgv: using RSA key A0B1A9F3508956130E7A425CD416AD15AC6B43FE 69s gpgv: Can't check signature: No public key 69s dpkg-source: warning: cannot verify inline signature for ./python-requests-unixsocket_0.3.0-4.dsc: no acceptable signature found 69s autopkgtest [01:04:34]: testing package python-requests-unixsocket version 0.3.0-4 69s autopkgtest [01:04:34]: build not needed 69s autopkgtest [01:04:34]: test python3-requests-unixsocket: preparing testbed 69s Reading package lists... 70s Building dependency tree... 70s Reading state information... 70s Starting pkgProblemResolver with broken count: 0 70s Starting 2 pkgProblemResolver with broken count: 0 70s Done 70s The following additional packages will be installed: 70s autoconf automake autopoint autotools-dev build-essential cpp cpp-13 70s cpp-13-x86-64-linux-gnu cpp-x86-64-linux-gnu debhelper debugedit 70s dh-autoreconf dh-python dh-strip-nondeterminism dwz g++ g++-13 70s g++-13-x86-64-linux-gnu g++-x86-64-linux-gnu gcc gcc-13 gcc-13-base 70s gcc-13-x86-64-linux-gnu gcc-x86-64-linux-gnu gettext intltool-debian 70s libarchive-zip-perl libasan8 libatomic1 libcc1-0 libdebhelper-perl 70s libfile-stripnondeterminism-perl libgcc-13-dev libgomp1 libhwasan0 libisl23 70s libitm1 liblsan0 libmpc3 libquadmath0 libstdc++-13-dev libtool libtsan2 70s libubsan1 m4 openstack-pkg-tools po-debconf python3-all python3-iniconfig 70s python3-packaging python3-pbr python3-pip python3-pluggy python3-pytest 70s python3-requests-unixsocket python3-waitress python3-wheel 70s Suggested packages: 70s autoconf-archive gnu-standards autoconf-doc cpp-doc gcc-13-locales 70s cpp-13-doc dh-make flit python3-build python3-installer g++-multilib 70s g++-13-multilib gcc-13-doc gcc-multilib manpages-dev flex bison gdb gcc-doc 70s gcc-13-multilib gdb-x86-64-linux-gnu gettext-doc libasprintf-dev 70s libgettextpo-dev libstdc++-13-doc libtool-doc gfortran | fortran95-compiler 70s gcj-jdk m4-doc libmail-box-perl python-waitress-doc 70s Recommended packages: 70s libarchive-cpio-perl libltdl-dev autopkgtest madison-lite pristine-tar 70s libmail-sendmail-perl python3-dev libjs-sphinxdoc 70s The following NEW packages will be installed: 70s autoconf automake autopkgtest-satdep autopoint autotools-dev build-essential 70s cpp cpp-13 cpp-13-x86-64-linux-gnu cpp-x86-64-linux-gnu debhelper debugedit 70s dh-autoreconf dh-python dh-strip-nondeterminism dwz g++ g++-13 70s g++-13-x86-64-linux-gnu g++-x86-64-linux-gnu gcc gcc-13 gcc-13-base 70s gcc-13-x86-64-linux-gnu gcc-x86-64-linux-gnu gettext intltool-debian 70s libarchive-zip-perl libasan8 libatomic1 libcc1-0 libdebhelper-perl 70s libfile-stripnondeterminism-perl libgcc-13-dev libgomp1 libhwasan0 libisl23 70s libitm1 liblsan0 libmpc3 libquadmath0 libstdc++-13-dev libtool libtsan2 70s libubsan1 m4 openstack-pkg-tools po-debconf python3-all python3-iniconfig 70s python3-packaging python3-pbr python3-pip python3-pluggy python3-pytest 70s python3-requests-unixsocket python3-waitress python3-wheel 70s 0 upgraded, 58 newly installed, 0 to remove and 0 not upgraded. 70s Need to get 68.6 MB/68.6 MB of archives. 70s After this operation, 248 MB of additional disk space will be used. 70s Get:1 /tmp/autopkgtest.RHeGYU/1-autopkgtest-satdep.deb autopkgtest-satdep amd64 0 [824 B] 70s Get:2 http://ftpmaster.internal/ubuntu oracular/main amd64 m4 amd64 1.4.19-4build1 [244 kB] 70s Get:3 http://ftpmaster.internal/ubuntu oracular/main amd64 autoconf all 2.71-3 [339 kB] 70s Get:4 http://ftpmaster.internal/ubuntu oracular/main amd64 autotools-dev all 20220109.1 [44.9 kB] 70s Get:5 http://ftpmaster.internal/ubuntu oracular/main amd64 automake all 1:1.16.5-1.3ubuntu1 [558 kB] 70s Get:6 http://ftpmaster.internal/ubuntu oracular/main amd64 autopoint all 0.21-14ubuntu2 [422 kB] 70s Get:7 http://ftpmaster.internal/ubuntu oracular/main amd64 gcc-13-base amd64 13.2.0-23ubuntu4 [49.0 kB] 70s Get:8 http://ftpmaster.internal/ubuntu oracular/main amd64 libisl23 amd64 0.26-3build1 [680 kB] 70s Get:9 http://ftpmaster.internal/ubuntu oracular/main amd64 libmpc3 amd64 1.3.1-1build1 [54.5 kB] 70s Get:10 http://ftpmaster.internal/ubuntu oracular/main amd64 cpp-13-x86-64-linux-gnu amd64 13.2.0-23ubuntu4 [11.2 MB] 70s Get:11 http://ftpmaster.internal/ubuntu oracular/main amd64 cpp-13 amd64 13.2.0-23ubuntu4 [1032 B] 70s Get:12 http://ftpmaster.internal/ubuntu oracular/main amd64 cpp-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [5326 B] 70s Get:13 http://ftpmaster.internal/ubuntu oracular/main amd64 cpp amd64 4:13.2.0-7ubuntu1 [22.4 kB] 70s Get:14 http://ftpmaster.internal/ubuntu oracular/main amd64 libcc1-0 amd64 14.1.0-1ubuntu1 [48.0 kB] 70s Get:15 http://ftpmaster.internal/ubuntu oracular/main amd64 libgomp1 amd64 14.1.0-1ubuntu1 [148 kB] 70s Get:16 http://ftpmaster.internal/ubuntu oracular/main amd64 libitm1 amd64 14.1.0-1ubuntu1 [29.1 kB] 70s Get:17 http://ftpmaster.internal/ubuntu oracular/main amd64 libatomic1 amd64 14.1.0-1ubuntu1 [10.4 kB] 70s Get:18 http://ftpmaster.internal/ubuntu oracular/main amd64 libasan8 amd64 14.1.0-1ubuntu1 [3025 kB] 70s Get:19 http://ftpmaster.internal/ubuntu oracular/main amd64 liblsan0 amd64 14.1.0-1ubuntu1 [1313 kB] 70s Get:20 http://ftpmaster.internal/ubuntu oracular/main amd64 libtsan2 amd64 14.1.0-1ubuntu1 [2736 kB] 70s Get:21 http://ftpmaster.internal/ubuntu oracular/main amd64 libubsan1 amd64 14.1.0-1ubuntu1 [1174 kB] 70s Get:22 http://ftpmaster.internal/ubuntu oracular/main amd64 libhwasan0 amd64 14.1.0-1ubuntu1 [1632 kB] 70s Get:23 http://ftpmaster.internal/ubuntu oracular/main amd64 libquadmath0 amd64 14.1.0-1ubuntu1 [153 kB] 70s Get:24 http://ftpmaster.internal/ubuntu oracular/main amd64 libgcc-13-dev amd64 13.2.0-23ubuntu4 [2688 kB] 70s Get:25 http://ftpmaster.internal/ubuntu oracular/main amd64 gcc-13-x86-64-linux-gnu amd64 13.2.0-23ubuntu4 [21.9 MB] 71s Get:26 http://ftpmaster.internal/ubuntu oracular/main amd64 gcc-13 amd64 13.2.0-23ubuntu4 [482 kB] 71s Get:27 http://ftpmaster.internal/ubuntu oracular/main amd64 gcc-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [1212 B] 71s Get:28 http://ftpmaster.internal/ubuntu oracular/main amd64 gcc amd64 4:13.2.0-7ubuntu1 [5018 B] 71s Get:29 http://ftpmaster.internal/ubuntu oracular/main amd64 libstdc++-13-dev amd64 13.2.0-23ubuntu4 [2399 kB] 71s Get:30 http://ftpmaster.internal/ubuntu oracular/main amd64 g++-13-x86-64-linux-gnu amd64 13.2.0-23ubuntu4 [12.5 MB] 71s Get:31 http://ftpmaster.internal/ubuntu oracular/main amd64 g++-13 amd64 13.2.0-23ubuntu4 [14.5 kB] 71s Get:32 http://ftpmaster.internal/ubuntu oracular/main amd64 g++-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [964 B] 71s Get:33 http://ftpmaster.internal/ubuntu oracular/main amd64 g++ amd64 4:13.2.0-7ubuntu1 [1100 B] 71s Get:34 http://ftpmaster.internal/ubuntu oracular/main amd64 build-essential amd64 12.10ubuntu1 [4928 B] 71s Get:35 http://ftpmaster.internal/ubuntu oracular/main amd64 libdebhelper-perl all 13.16ubuntu2 [92.9 kB] 71s Get:36 http://ftpmaster.internal/ubuntu oracular/main amd64 libtool all 2.4.7-7build1 [166 kB] 71s Get:37 http://ftpmaster.internal/ubuntu oracular/main amd64 dh-autoreconf all 20 [16.1 kB] 71s Get:38 http://ftpmaster.internal/ubuntu oracular/main amd64 libarchive-zip-perl all 1.68-1 [90.2 kB] 71s Get:39 http://ftpmaster.internal/ubuntu oracular/main amd64 libfile-stripnondeterminism-perl all 1.14.0-1 [20.1 kB] 71s Get:40 http://ftpmaster.internal/ubuntu oracular/main amd64 dh-strip-nondeterminism all 1.14.0-1 [5058 B] 71s Get:41 http://ftpmaster.internal/ubuntu oracular/main amd64 debugedit amd64 1:5.0-5build2 [46.1 kB] 71s Get:42 http://ftpmaster.internal/ubuntu oracular/main amd64 dwz amd64 0.15-1build6 [115 kB] 71s Get:43 http://ftpmaster.internal/ubuntu oracular/main amd64 gettext amd64 0.21-14ubuntu2 [864 kB] 71s Get:44 http://ftpmaster.internal/ubuntu oracular/main amd64 intltool-debian all 0.35.0+20060710.6 [23.2 kB] 71s Get:45 http://ftpmaster.internal/ubuntu oracular/main amd64 po-debconf all 1.0.21+nmu1 [233 kB] 71s Get:46 http://ftpmaster.internal/ubuntu oracular/main amd64 debhelper all 13.16ubuntu2 [869 kB] 71s Get:47 http://ftpmaster.internal/ubuntu oracular/universe amd64 dh-python all 6.20240422 [110 kB] 71s Get:48 http://ftpmaster.internal/ubuntu oracular/main amd64 python3-all amd64 3.12.3-0ubuntu1 [888 B] 71s Get:49 http://ftpmaster.internal/ubuntu oracular/universe amd64 python3-iniconfig all 1.1.1-2 [6024 B] 71s Get:50 http://ftpmaster.internal/ubuntu oracular/main amd64 python3-packaging all 24.0-1 [41.1 kB] 71s Get:51 http://ftpmaster.internal/ubuntu oracular/main amd64 python3-pbr all 5.11.1-0ubuntu1 [66.5 kB] 71s Get:52 http://ftpmaster.internal/ubuntu oracular/universe amd64 python3-wheel all 0.43.0-1 [53.5 kB] 71s Get:53 http://ftpmaster.internal/ubuntu oracular/universe amd64 python3-pip all 24.1+dfsg-1 [1399 kB] 71s Get:54 http://ftpmaster.internal/ubuntu oracular/universe amd64 python3-pluggy all 1.5.0-1 [21.0 kB] 71s Get:55 http://ftpmaster.internal/ubuntu oracular/universe amd64 python3-pytest all 7.4.4-1 [305 kB] 71s Get:56 http://ftpmaster.internal/ubuntu oracular/universe amd64 python3-requests-unixsocket all 0.3.0-4 [7274 B] 71s Get:57 http://ftpmaster.internal/ubuntu oracular/universe amd64 python3-waitress all 3.0.0-1 [46.4 kB] 71s Get:58 http://ftpmaster.internal/ubuntu oracular/universe amd64 openstack-pkg-tools all 123ubuntu2 [94.5 kB] 71s Fetched 68.6 MB in 1s (126 MB/s) 71s Selecting previously unselected package m4. 71s (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 ... 74423 files and directories currently installed.) 71s Preparing to unpack .../00-m4_1.4.19-4build1_amd64.deb ... 71s Unpacking m4 (1.4.19-4build1) ... 71s Selecting previously unselected package autoconf. 71s Preparing to unpack .../01-autoconf_2.71-3_all.deb ... 71s Unpacking autoconf (2.71-3) ... 71s Selecting previously unselected package autotools-dev. 71s Preparing to unpack .../02-autotools-dev_20220109.1_all.deb ... 71s Unpacking autotools-dev (20220109.1) ... 71s Selecting previously unselected package automake. 71s Preparing to unpack .../03-automake_1%3a1.16.5-1.3ubuntu1_all.deb ... 71s Unpacking automake (1:1.16.5-1.3ubuntu1) ... 71s Selecting previously unselected package autopoint. 71s Preparing to unpack .../04-autopoint_0.21-14ubuntu2_all.deb ... 71s Unpacking autopoint (0.21-14ubuntu2) ... 72s Selecting previously unselected package gcc-13-base:amd64. 72s Preparing to unpack .../05-gcc-13-base_13.2.0-23ubuntu4_amd64.deb ... 72s Unpacking gcc-13-base:amd64 (13.2.0-23ubuntu4) ... 72s Selecting previously unselected package libisl23:amd64. 72s Preparing to unpack .../06-libisl23_0.26-3build1_amd64.deb ... 72s Unpacking libisl23:amd64 (0.26-3build1) ... 72s Selecting previously unselected package libmpc3:amd64. 72s Preparing to unpack .../07-libmpc3_1.3.1-1build1_amd64.deb ... 72s Unpacking libmpc3:amd64 (1.3.1-1build1) ... 72s Selecting previously unselected package cpp-13-x86-64-linux-gnu. 72s Preparing to unpack .../08-cpp-13-x86-64-linux-gnu_13.2.0-23ubuntu4_amd64.deb ... 72s Unpacking cpp-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 72s Selecting previously unselected package cpp-13. 72s Preparing to unpack .../09-cpp-13_13.2.0-23ubuntu4_amd64.deb ... 72s Unpacking cpp-13 (13.2.0-23ubuntu4) ... 72s Selecting previously unselected package cpp-x86-64-linux-gnu. 72s Preparing to unpack .../10-cpp-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 72s Unpacking cpp-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 72s Selecting previously unselected package cpp. 72s Preparing to unpack .../11-cpp_4%3a13.2.0-7ubuntu1_amd64.deb ... 72s Unpacking cpp (4:13.2.0-7ubuntu1) ... 72s Selecting previously unselected package libcc1-0:amd64. 72s Preparing to unpack .../12-libcc1-0_14.1.0-1ubuntu1_amd64.deb ... 72s Unpacking libcc1-0:amd64 (14.1.0-1ubuntu1) ... 72s Selecting previously unselected package libgomp1:amd64. 72s Preparing to unpack .../13-libgomp1_14.1.0-1ubuntu1_amd64.deb ... 72s Unpacking libgomp1:amd64 (14.1.0-1ubuntu1) ... 72s Selecting previously unselected package libitm1:amd64. 72s Preparing to unpack .../14-libitm1_14.1.0-1ubuntu1_amd64.deb ... 72s Unpacking libitm1:amd64 (14.1.0-1ubuntu1) ... 72s Selecting previously unselected package libatomic1:amd64. 72s Preparing to unpack .../15-libatomic1_14.1.0-1ubuntu1_amd64.deb ... 72s Unpacking libatomic1:amd64 (14.1.0-1ubuntu1) ... 72s Selecting previously unselected package libasan8:amd64. 72s Preparing to unpack .../16-libasan8_14.1.0-1ubuntu1_amd64.deb ... 72s Unpacking libasan8:amd64 (14.1.0-1ubuntu1) ... 72s Selecting previously unselected package liblsan0:amd64. 72s Preparing to unpack .../17-liblsan0_14.1.0-1ubuntu1_amd64.deb ... 72s Unpacking liblsan0:amd64 (14.1.0-1ubuntu1) ... 72s Selecting previously unselected package libtsan2:amd64. 72s Preparing to unpack .../18-libtsan2_14.1.0-1ubuntu1_amd64.deb ... 72s Unpacking libtsan2:amd64 (14.1.0-1ubuntu1) ... 72s Selecting previously unselected package libubsan1:amd64. 72s Preparing to unpack .../19-libubsan1_14.1.0-1ubuntu1_amd64.deb ... 72s Unpacking libubsan1:amd64 (14.1.0-1ubuntu1) ... 72s Selecting previously unselected package libhwasan0:amd64. 72s Preparing to unpack .../20-libhwasan0_14.1.0-1ubuntu1_amd64.deb ... 72s Unpacking libhwasan0:amd64 (14.1.0-1ubuntu1) ... 72s Selecting previously unselected package libquadmath0:amd64. 72s Preparing to unpack .../21-libquadmath0_14.1.0-1ubuntu1_amd64.deb ... 72s Unpacking libquadmath0:amd64 (14.1.0-1ubuntu1) ... 72s Selecting previously unselected package libgcc-13-dev:amd64. 72s Preparing to unpack .../22-libgcc-13-dev_13.2.0-23ubuntu4_amd64.deb ... 72s Unpacking libgcc-13-dev:amd64 (13.2.0-23ubuntu4) ... 72s Selecting previously unselected package gcc-13-x86-64-linux-gnu. 72s Preparing to unpack .../23-gcc-13-x86-64-linux-gnu_13.2.0-23ubuntu4_amd64.deb ... 72s Unpacking gcc-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 73s Selecting previously unselected package gcc-13. 73s Preparing to unpack .../24-gcc-13_13.2.0-23ubuntu4_amd64.deb ... 73s Unpacking gcc-13 (13.2.0-23ubuntu4) ... 73s Selecting previously unselected package gcc-x86-64-linux-gnu. 73s Preparing to unpack .../25-gcc-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 73s Unpacking gcc-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 73s Selecting previously unselected package gcc. 73s Preparing to unpack .../26-gcc_4%3a13.2.0-7ubuntu1_amd64.deb ... 73s Unpacking gcc (4:13.2.0-7ubuntu1) ... 73s Selecting previously unselected package libstdc++-13-dev:amd64. 73s Preparing to unpack .../27-libstdc++-13-dev_13.2.0-23ubuntu4_amd64.deb ... 73s Unpacking libstdc++-13-dev:amd64 (13.2.0-23ubuntu4) ... 73s Selecting previously unselected package g++-13-x86-64-linux-gnu. 73s Preparing to unpack .../28-g++-13-x86-64-linux-gnu_13.2.0-23ubuntu4_amd64.deb ... 73s Unpacking g++-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 73s Selecting previously unselected package g++-13. 73s Preparing to unpack .../29-g++-13_13.2.0-23ubuntu4_amd64.deb ... 73s Unpacking g++-13 (13.2.0-23ubuntu4) ... 73s Selecting previously unselected package g++-x86-64-linux-gnu. 73s Preparing to unpack .../30-g++-x86-64-linux-gnu_4%3a13.2.0-7ubuntu1_amd64.deb ... 73s Unpacking g++-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 73s Selecting previously unselected package g++. 73s Preparing to unpack .../31-g++_4%3a13.2.0-7ubuntu1_amd64.deb ... 73s Unpacking g++ (4:13.2.0-7ubuntu1) ... 73s Selecting previously unselected package build-essential. 73s Preparing to unpack .../32-build-essential_12.10ubuntu1_amd64.deb ... 73s Unpacking build-essential (12.10ubuntu1) ... 73s Selecting previously unselected package libdebhelper-perl. 73s Preparing to unpack .../33-libdebhelper-perl_13.16ubuntu2_all.deb ... 73s Unpacking libdebhelper-perl (13.16ubuntu2) ... 73s Selecting previously unselected package libtool. 73s Preparing to unpack .../34-libtool_2.4.7-7build1_all.deb ... 73s Unpacking libtool (2.4.7-7build1) ... 73s Selecting previously unselected package dh-autoreconf. 73s Preparing to unpack .../35-dh-autoreconf_20_all.deb ... 73s Unpacking dh-autoreconf (20) ... 73s Selecting previously unselected package libarchive-zip-perl. 73s Preparing to unpack .../36-libarchive-zip-perl_1.68-1_all.deb ... 73s Unpacking libarchive-zip-perl (1.68-1) ... 73s Selecting previously unselected package libfile-stripnondeterminism-perl. 73s Preparing to unpack .../37-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... 73s Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... 73s Selecting previously unselected package dh-strip-nondeterminism. 73s Preparing to unpack .../38-dh-strip-nondeterminism_1.14.0-1_all.deb ... 73s Unpacking dh-strip-nondeterminism (1.14.0-1) ... 74s Selecting previously unselected package debugedit. 74s Preparing to unpack .../39-debugedit_1%3a5.0-5build2_amd64.deb ... 74s Unpacking debugedit (1:5.0-5build2) ... 74s Selecting previously unselected package dwz. 74s Preparing to unpack .../40-dwz_0.15-1build6_amd64.deb ... 74s Unpacking dwz (0.15-1build6) ... 74s Selecting previously unselected package gettext. 74s Preparing to unpack .../41-gettext_0.21-14ubuntu2_amd64.deb ... 74s Unpacking gettext (0.21-14ubuntu2) ... 74s Selecting previously unselected package intltool-debian. 74s Preparing to unpack .../42-intltool-debian_0.35.0+20060710.6_all.deb ... 74s Unpacking intltool-debian (0.35.0+20060710.6) ... 74s Selecting previously unselected package po-debconf. 74s Preparing to unpack .../43-po-debconf_1.0.21+nmu1_all.deb ... 74s Unpacking po-debconf (1.0.21+nmu1) ... 74s Selecting previously unselected package debhelper. 74s Preparing to unpack .../44-debhelper_13.16ubuntu2_all.deb ... 74s Unpacking debhelper (13.16ubuntu2) ... 74s Selecting previously unselected package dh-python. 74s Preparing to unpack .../45-dh-python_6.20240422_all.deb ... 74s Unpacking dh-python (6.20240422) ... 74s Selecting previously unselected package python3-all. 74s Preparing to unpack .../46-python3-all_3.12.3-0ubuntu1_amd64.deb ... 74s Unpacking python3-all (3.12.3-0ubuntu1) ... 74s Selecting previously unselected package python3-iniconfig. 74s Preparing to unpack .../47-python3-iniconfig_1.1.1-2_all.deb ... 74s Unpacking python3-iniconfig (1.1.1-2) ... 74s Selecting previously unselected package python3-packaging. 74s Preparing to unpack .../48-python3-packaging_24.0-1_all.deb ... 74s Unpacking python3-packaging (24.0-1) ... 74s Selecting previously unselected package python3-pbr. 74s Preparing to unpack .../49-python3-pbr_5.11.1-0ubuntu1_all.deb ... 74s Unpacking python3-pbr (5.11.1-0ubuntu1) ... 74s Selecting previously unselected package python3-wheel. 74s Preparing to unpack .../50-python3-wheel_0.43.0-1_all.deb ... 74s Unpacking python3-wheel (0.43.0-1) ... 74s Selecting previously unselected package python3-pip. 74s Preparing to unpack .../51-python3-pip_24.1+dfsg-1_all.deb ... 74s Unpacking python3-pip (24.1+dfsg-1) ... 74s Selecting previously unselected package python3-pluggy. 74s Preparing to unpack .../52-python3-pluggy_1.5.0-1_all.deb ... 74s Unpacking python3-pluggy (1.5.0-1) ... 74s Selecting previously unselected package python3-pytest. 74s Preparing to unpack .../53-python3-pytest_7.4.4-1_all.deb ... 74s Unpacking python3-pytest (7.4.4-1) ... 74s Selecting previously unselected package python3-requests-unixsocket. 74s Preparing to unpack .../54-python3-requests-unixsocket_0.3.0-4_all.deb ... 74s Unpacking python3-requests-unixsocket (0.3.0-4) ... 74s Selecting previously unselected package python3-waitress. 74s Preparing to unpack .../55-python3-waitress_3.0.0-1_all.deb ... 74s Unpacking python3-waitress (3.0.0-1) ... 74s Selecting previously unselected package openstack-pkg-tools. 74s Preparing to unpack .../56-openstack-pkg-tools_123ubuntu2_all.deb ... 74s Unpacking openstack-pkg-tools (123ubuntu2) ... 74s Selecting previously unselected package autopkgtest-satdep. 74s Preparing to unpack .../57-1-autopkgtest-satdep.deb ... 74s Unpacking autopkgtest-satdep (0) ... 74s Setting up dh-python (6.20240422) ... 74s Setting up python3-iniconfig (1.1.1-2) ... 75s Setting up python3-waitress (3.0.0-1) ... 75s Setting up python3-pbr (5.11.1-0ubuntu1) ... 75s Setting up libarchive-zip-perl (1.68-1) ... 75s Setting up libdebhelper-perl (13.16ubuntu2) ... 75s Setting up m4 (1.4.19-4build1) ... 75s Setting up python3-all (3.12.3-0ubuntu1) ... 75s Setting up libgomp1:amd64 (14.1.0-1ubuntu1) ... 75s Setting up python3-wheel (0.43.0-1) ... 75s Setting up python3-requests-unixsocket (0.3.0-4) ... 75s Setting up autotools-dev (20220109.1) ... 75s Setting up python3-packaging (24.0-1) ... 75s Setting up gcc-13-base:amd64 (13.2.0-23ubuntu4) ... 75s Setting up libquadmath0:amd64 (14.1.0-1ubuntu1) ... 75s Setting up libmpc3:amd64 (1.3.1-1build1) ... 75s Setting up libatomic1:amd64 (14.1.0-1ubuntu1) ... 75s Setting up autopoint (0.21-14ubuntu2) ... 75s Setting up python3-pip (24.1+dfsg-1) ... 76s Setting up autoconf (2.71-3) ... 76s Setting up python3-pluggy (1.5.0-1) ... 76s Setting up libubsan1:amd64 (14.1.0-1ubuntu1) ... 76s Setting up dwz (0.15-1build6) ... 76s Setting up libhwasan0:amd64 (14.1.0-1ubuntu1) ... 76s Setting up libasan8:amd64 (14.1.0-1ubuntu1) ... 76s Setting up debugedit (1:5.0-5build2) ... 76s Setting up libtsan2:amd64 (14.1.0-1ubuntu1) ... 76s Setting up libisl23:amd64 (0.26-3build1) ... 76s Setting up libcc1-0:amd64 (14.1.0-1ubuntu1) ... 76s Setting up liblsan0:amd64 (14.1.0-1ubuntu1) ... 76s Setting up libitm1:amd64 (14.1.0-1ubuntu1) ... 76s Setting up automake (1:1.16.5-1.3ubuntu1) ... 76s update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode 76s Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... 76s Setting up gettext (0.21-14ubuntu2) ... 76s Setting up cpp-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 76s Setting up python3-pytest (7.4.4-1) ... 77s Setting up intltool-debian (0.35.0+20060710.6) ... 77s Setting up dh-strip-nondeterminism (1.14.0-1) ... 77s Setting up libgcc-13-dev:amd64 (13.2.0-23ubuntu4) ... 77s Setting up libstdc++-13-dev:amd64 (13.2.0-23ubuntu4) ... 77s Setting up cpp-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 77s Setting up cpp-13 (13.2.0-23ubuntu4) ... 77s Setting up gcc-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 77s Setting up po-debconf (1.0.21+nmu1) ... 77s Setting up openstack-pkg-tools (123ubuntu2) ... 77s Setting up gcc-13 (13.2.0-23ubuntu4) ... 77s Setting up cpp (4:13.2.0-7ubuntu1) ... 77s Setting up g++-13-x86-64-linux-gnu (13.2.0-23ubuntu4) ... 77s Setting up gcc-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 77s Setting up libtool (2.4.7-7build1) ... 77s Setting up gcc (4:13.2.0-7ubuntu1) ... 77s Setting up dh-autoreconf (20) ... 77s Setting up g++-x86-64-linux-gnu (4:13.2.0-7ubuntu1) ... 77s Setting up g++-13 (13.2.0-23ubuntu4) ... 77s Setting up debhelper (13.16ubuntu2) ... 77s Setting up g++ (4:13.2.0-7ubuntu1) ... 77s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 77s Setting up build-essential (12.10ubuntu1) ... 77s Setting up autopkgtest-satdep (0) ... 77s Processing triggers for man-db (2.12.1-2) ... 78s Processing triggers for install-info (7.1-3build2) ... 78s Processing triggers for libc-bin (2.39-0ubuntu9) ... 80s (Reading database ... 77963 files and directories currently installed.) 80s Removing autopkgtest-satdep (0) ... 80s autopkgtest [01:04:45]: test python3-requests-unixsocket: [----------------------- 80s === python3.12 === 80s ============================= test session starts ============================== 80s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 -- /usr/bin/python3.12 80s cachedir: .pytest_cache 80s rootdir: /tmp/autopkgtest.RHeGYU/autopkgtest_tmp 80s collecting ... collected 5 items 80s 81s tests/test_requests_unixsocket.py::test_unix_domain_adapter_ok FAILED [ 20%] 81s tests/test_requests_unixsocket.py::test_unix_domain_adapter_url_with_query_params FAILED [ 40%] 81s tests/test_requests_unixsocket.py::test_unix_domain_adapter_connection_error FAILED [ 60%] 215s tests/test_requests_unixsocket.py::test_unix_domain_adapter_connection_proxies_error FAILED [ 80%] 215s tests/test_requests_unixsocket.py::test_unix_domain_adapter_monkeypatch FAILED [100%] 215s 215s =================================== FAILURES =================================== 215s _________________________ test_unix_domain_adapter_ok __________________________ 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.273688_2033_64a7b1d9', '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_ok(): 215s with UnixSocketServerThread() as usock_thread: 215s session = requests_unixsocket.Session('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(session, method)(url) 215s 215s tests/test_requests_unixsocket.py:27: 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, 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 ________________ test_unix_domain_adapter_url_with_query_params ________________ 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.273688_2033_526d6901', '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_url_with_query_params(): 215s with UnixSocketServerThread() as usock_thread: 215s session = requests_unixsocket.Session('http+unix://') 215s urlencoded_usock = requests.compat.quote_plus(usock_thread.usock) 215s url = ('http+unix://%s' 215s '/containers/nginx/logs?timestamp=true' % 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(session, method)(url) 215s 215s tests/test_requests_unixsocket.py:54: 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, 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 __________________ test_unix_domain_adapter_connection_error ___________________ 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': 'socket_does_not_exist', '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_connection_error(): 215s session = requests_unixsocket.Session('http+unix://') 215s 215s for method in ['get', 'post', 'head', 'patch', 'put', 'delete', 'options']: 215s with pytest.raises(requests.ConnectionError): 215s > getattr(session, method)( 215s 'http+unix://socket_does_not_exist/path/to/page') 215s 215s tests/test_requests_unixsocket.py:77: 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, 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 ______________ test_unix_domain_adapter_connection_proxies_error _______________ 215s 215s self = 215s 215s def _new_conn(self) -> socket.socket: 215s """Establish a socket connection and set nodelay settings on it. 215s 215s :return: New socket connection. 215s """ 215s try: 215s > sock = connection.create_connection( 215s (self._dns_host, self.port), 215s self.timeout, 215s source_address=self.source_address, 215s socket_options=self.socket_options, 215s ) 215s 215s /usr/lib/python3/dist-packages/urllib3/connection.py:203: 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s /usr/lib/python3/dist-packages/urllib3/util/connection.py:85: in create_connection 215s raise err 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s 215s address = ('10.10.1.10', 1080), timeout = None, source_address = None 215s socket_options = [] 215s 215s def create_connection( 215s address: tuple[str, int], 215s timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 215s source_address: tuple[str, int] | None = None, 215s socket_options: _TYPE_SOCKET_OPTIONS | None = None, 215s ) -> socket.socket: 215s """Connect to *address* and return the socket object. 215s 215s Convenience function. Connect to *address* (a 2-tuple ``(host, 215s port)``) and return the socket object. Passing the optional 215s *timeout* parameter will set the timeout on the socket instance 215s before attempting to connect. If no *timeout* is supplied, the 215s global default timeout setting returned by :func:`socket.getdefaulttimeout` 215s is used. If *source_address* is set it must be a tuple of (host, port) 215s for the socket to bind as a source address before making the connection. 215s An host of '' or port 0 tells the OS to use the default. 215s """ 215s 215s host, port = address 215s if host.startswith("["): 215s host = host.strip("[]") 215s err = None 215s 215s # Using the value from allowed_gai_family() in the context of getaddrinfo lets 215s # us select whether to work with IPv4 DNS records, IPv6 records, or both. 215s # The original create_connection function always returns all records. 215s family = allowed_gai_family() 215s 215s try: 215s host.encode("idna") 215s except UnicodeError: 215s raise LocationParseError(f"'{host}', label empty or too long") from None 215s 215s for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): 215s af, socktype, proto, canonname, sa = res 215s sock = None 215s try: 215s sock = socket.socket(af, socktype, proto) 215s 215s # If provided, set socket level options before connecting. 215s _set_socket_options(sock, socket_options) 215s 215s if timeout is not _DEFAULT_TIMEOUT: 215s sock.settimeout(timeout) 215s if source_address: 215s sock.bind(source_address) 215s > sock.connect(sa) 215s E TimeoutError: [Errno 110] Connection timed out 215s 215s /usr/lib/python3/dist-packages/urllib3/util/connection.py:73: TimeoutError 215s 215s The above exception was the direct cause of the following exception: 215s 215s self = 215s method = 'GET', url = '/path/to/page', body = None 215s headers = {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} 215s retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) 215s redirect = False, assert_same_host = False 215s timeout = Timeout(connect=None, read=None, total=None), pool_timeout = None 215s release_conn = False, chunked = False, body_pos = None, preload_content = False 215s decode_content = False, response_kw = {} 215s parsed_url = Url(scheme=None, auth=None, host=None, port=None, path='/path/to/page', query=None, fragment=None) 215s destination_scheme = None, conn = None, release_this_conn = True 215s http_tunnel_required = True, err = None, clean_exit = False 215s 215s def urlopen( # type: ignore[override] 215s self, 215s method: str, 215s url: str, 215s body: _TYPE_BODY | None = None, 215s headers: typing.Mapping[str, str] | None = None, 215s retries: Retry | bool | int | None = None, 215s redirect: bool = True, 215s assert_same_host: bool = True, 215s timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, 215s pool_timeout: int | None = None, 215s release_conn: bool | None = None, 215s chunked: bool = False, 215s body_pos: _TYPE_BODY_POSITION | None = None, 215s preload_content: bool = True, 215s decode_content: bool = True, 215s **response_kw: typing.Any, 215s ) -> BaseHTTPResponse: 215s """ 215s Get a connection from the pool and perform an HTTP request. This is the 215s lowest level call for making a request, so you'll need to specify all 215s the raw details. 215s 215s .. note:: 215s 215s More commonly, it's appropriate to use a convenience method 215s such as :meth:`request`. 215s 215s .. note:: 215s 215s `release_conn` will only behave as expected if 215s `preload_content=False` because we want to make 215s `preload_content=False` the default behaviour someday soon without 215s breaking backwards compatibility. 215s 215s :param method: 215s HTTP request method (such as GET, POST, PUT, etc.) 215s 215s :param url: 215s The URL to perform the request on. 215s 215s :param body: 215s Data to send in the request body, either :class:`str`, :class:`bytes`, 215s an iterable of :class:`str`/:class:`bytes`, or a file-like object. 215s 215s :param headers: 215s Dictionary of custom headers to send, such as User-Agent, 215s If-None-Match, etc. If None, pool headers are used. If provided, 215s these headers completely replace any pool-specific headers. 215s 215s :param retries: 215s Configure the number of retries to allow before raising a 215s :class:`~urllib3.exceptions.MaxRetryError` exception. 215s 215s Pass ``None`` to retry until you receive a response. Pass a 215s :class:`~urllib3.util.retry.Retry` object for fine-grained control 215s over different types of retries. 215s Pass an integer number to retry connection errors that many times, 215s but no other types of errors. Pass zero to never retry. 215s 215s If ``False``, then retries are disabled and any exception is raised 215s immediately. Also, instead of raising a MaxRetryError on redirects, 215s the redirect response will be returned. 215s 215s :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. 215s 215s :param redirect: 215s If True, automatically handle redirects (status codes 301, 302, 215s 303, 307, 308). Each redirect counts as a retry. Disabling retries 215s will disable redirect, too. 215s 215s :param assert_same_host: 215s If ``True``, will make sure that the host of the pool requests is 215s consistent else will raise HostChangedError. When ``False``, you can 215s use the pool on an HTTP proxy and request foreign hosts. 215s 215s :param timeout: 215s If specified, overrides the default timeout for this one 215s request. It may be a float (in seconds) or an instance of 215s :class:`urllib3.util.Timeout`. 215s 215s :param pool_timeout: 215s If set and the pool is set to block=True, then this method will 215s block for ``pool_timeout`` seconds and raise EmptyPoolError if no 215s connection is available within the time period. 215s 215s :param bool preload_content: 215s If True, the response's body will be preloaded into memory. 215s 215s :param bool decode_content: 215s If True, will attempt to decode the body based on the 215s 'content-encoding' header. 215s 215s :param release_conn: 215s If False, then the urlopen call will not release the connection 215s back into the pool once a response is received (but will release if 215s you read the entire contents of the response such as when 215s `preload_content=True`). This is useful if you're not preloading 215s the response's content immediately. You will need to call 215s ``r.release_conn()`` on the response ``r`` to return the connection 215s back into the pool. If None, it takes the value of ``preload_content`` 215s which defaults to ``True``. 215s 215s :param bool chunked: 215s If True, urllib3 will send the body using chunked transfer 215s encoding. Otherwise, urllib3 will send the body using the standard 215s content-length form. Defaults to False. 215s 215s :param int body_pos: 215s Position to seek to in file-like body in the event of a retry or 215s redirect. Typically this won't need to be set because urllib3 will 215s auto-populate the value when needed. 215s """ 215s parsed_url = parse_url(url) 215s destination_scheme = parsed_url.scheme 215s 215s if headers is None: 215s headers = self.headers 215s 215s if not isinstance(retries, Retry): 215s retries = Retry.from_int(retries, redirect=redirect, default=self.retries) 215s 215s if release_conn is None: 215s release_conn = preload_content 215s 215s # Check host 215s if assert_same_host and not self.is_same_host(url): 215s raise HostChangedError(self, url, retries) 215s 215s # Ensure that the URL we're connecting to is properly encoded 215s if url.startswith("/"): 215s url = to_str(_encode_target(url)) 215s else: 215s url = to_str(parsed_url.url) 215s 215s conn = None 215s 215s # Track whether `conn` needs to be released before 215s # returning/raising/recursing. Update this variable if necessary, and 215s # leave `release_conn` constant throughout the function. That way, if 215s # the function recurses, the original value of `release_conn` will be 215s # passed down into the recursive call, and its value will be respected. 215s # 215s # See issue #651 [1] for details. 215s # 215s # [1] 215s release_this_conn = release_conn 215s 215s http_tunnel_required = connection_requires_http_tunnel( 215s self.proxy, self.proxy_config, destination_scheme 215s ) 215s 215s # Merge the proxy headers. Only done when not using HTTP CONNECT. We 215s # have to copy the headers dict so we can safely change it without those 215s # changes being reflected in anyone else's copy. 215s if not http_tunnel_required: 215s headers = headers.copy() # type: ignore[attr-defined] 215s headers.update(self.proxy_headers) # type: ignore[union-attr] 215s 215s # Must keep the exception bound to a separate variable or else Python 3 215s # complains about UnboundLocalError. 215s err = None 215s 215s # Keep track of whether we cleanly exited the except block. This 215s # ensures we do proper cleanup in finally. 215s clean_exit = False 215s 215s # Rewind body position, if needed. Record current position 215s # for future rewinds in the event of a redirect/retry. 215s body_pos = set_file_position(body, body_pos) 215s 215s try: 215s # Request a connection from the queue. 215s timeout_obj = self._get_timeout(timeout) 215s conn = self._get_conn(timeout=pool_timeout) 215s 215s conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] 215s 215s # Is this a closed/new connection that requires CONNECT tunnelling? 215s if self.proxy is not None and http_tunnel_required and conn.is_closed: 215s try: 215s self._prepare_proxy(conn) 215s except (BaseSSLError, OSError, SocketTimeout) as e: 215s self._raise_timeout( 215s err=e, url=self.proxy.url, timeout_value=conn.timeout 215s ) 215s raise 215s 215s # If we're going to release the connection in ``finally:``, then 215s # the response doesn't need to know about the connection. Otherwise 215s # it will also try to release it and we'll have a double-release 215s # mess. 215s response_conn = conn if not release_conn else None 215s 215s # Make the request on the HTTPConnection object 215s > response = self._make_request( 215s conn, 215s method, 215s url, 215s timeout=timeout_obj, 215s body=body, 215s headers=headers, 215s chunked=chunked, 215s retries=retries, 215s response_conn=response_conn, 215s preload_content=preload_content, 215s decode_content=decode_content, 215s **response_kw, 215s ) 215s 215s /usr/lib/python3/dist-packages/urllib3/connectionpool.py:791: 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s /usr/lib/python3/dist-packages/urllib3/connectionpool.py:497: in _make_request 215s conn.request( 215s /usr/lib/python3/dist-packages/urllib3/connection.py:395: in request 215s self.endheaders() 215s /usr/lib/python3.12/http/client.py:1331: in endheaders 215s self._send_output(message_body, encode_chunked=encode_chunked) 215s /usr/lib/python3.12/http/client.py:1091: in _send_output 215s self.send(msg) 215s /usr/lib/python3.12/http/client.py:1035: in send 215s self.connect() 215s /usr/lib/python3/dist-packages/urllib3/connection.py:243: in connect 215s self.sock = self._new_conn() 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s 215s self = 215s 215s def _new_conn(self) -> socket.socket: 215s """Establish a socket connection and set nodelay settings on it. 215s 215s :return: New socket connection. 215s """ 215s try: 215s sock = connection.create_connection( 215s (self._dns_host, self.port), 215s self.timeout, 215s source_address=self.source_address, 215s socket_options=self.socket_options, 215s ) 215s except socket.gaierror as e: 215s raise NameResolutionError(self.host, self, e) from e 215s except SocketTimeout as e: 215s > raise ConnectTimeoutError( 215s self, 215s f"Connection to {self.host} timed out. (connect timeout={self.timeout})", 215s ) from e 215s E urllib3.exceptions.ConnectTimeoutError: (, 'Connection to 10.10.1.10 timed out. (connect timeout=None)') 215s 215s /usr/lib/python3/dist-packages/urllib3/connection.py:212: ConnectTimeoutError 215s 215s The above exception was the direct cause of the following exception: 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 203, in _new_conn 215s sock = connection.create_connection( 215s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 85, in create_connection 215s raise err 215s File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 73, in create_connection 215s sock.connect(sa) 215s TimeoutError: [Errno 110] Connection timed out 215s 215s The above exception was the direct cause of the following exception: 215s 215s Traceback (most recent call last): 215s File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 791, in urlopen 215s response = self._make_request( 215s ^^^^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 497, in _make_request 215s conn.request( 215s File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 395, in request 215s self.endheaders() 215s File "/usr/lib/python3.12/http/client.py", line 1331, in endheaders 215s self._send_output(message_body, encode_chunked=encode_chunked) 215s File "/usr/lib/python3.12/http/client.py", line 1091, in _send_output 215s self.send(msg) 215s File "/usr/lib/python3.12/http/client.py", line 1035, in send 215s self.connect() 215s File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 243, in connect 215s self.sock = self._new_conn() 215s ^^^^^^^^^^^^^^^^ 215s File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 212, in _new_conn 215s raise ConnectTimeoutError( 215s urllib3.exceptions.ConnectTimeoutError: (, 'Connection to 10.10.1.10 timed out. (connect timeout=None)') 215s 215s The above exception was the direct cause of the following exception: 215s 215s urllib3.exceptions.ProxyError: ('Unable to connect to proxy', ConnectTimeoutError(, 'Connection to 10.10.1.10 timed out. (connect timeout=None)')) 215s 215s The above exception was the direct cause of the following exception: 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 /usr/lib/python3/dist-packages/requests/adapters.py:667: 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s /usr/lib/python3/dist-packages/urllib3/connectionpool.py:845: in urlopen 215s retries = retries.increment( 215s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 215s 215s self = Retry(total=0, connect=None, read=False, redirect=None, status=None) 215s method = 'GET', url = '/path/to/page', response = None 215s error = ProxyError('Unable to connect to proxy', ConnectTimeoutError(, 'Connection to 10.10.1.10 timed out. (connect timeout=None)')) 215s _pool = 215s _stacktrace = 215s 215s def increment( 215s self, 215s method: str | None = None, 215s url: str | None = None, 215s response: BaseHTTPResponse | None = None, 215s error: Exception | None = None, 215s _pool: ConnectionPool | None = None, 215s _stacktrace: TracebackType | None = None, 215s ) -> Retry: 215s """Return a new Retry object with incremented retry counters. 215s 215s :param response: A response object, or None, if the server did not 215s return a response. 215s :type response: :class:`~urllib3.response.BaseHTTPResponse` 215s :param Exception error: An error encountered during the request, or 215s None if the response was received successfully. 215s 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', ConnectTimeoutError(, 'Connection to 10.10.1.10 timed out. (connect timeout=None)'))) 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', ConnectTimeoutError(, 'Connection to 10.10.1.10 timed out. (connect timeout=None)'))) 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.273688_2033_afbf0d08', '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 134.37s (0:02:14) ========================= 216s autopkgtest [01:07:01]: test python3-requests-unixsocket: -----------------------] 216s autopkgtest [01:07:01]: test python3-requests-unixsocket: - - - - - - - - - - results - - - - - - - - - - 216s python3-requests-unixsocket FAIL non-zero exit status 1 216s autopkgtest [01:07:01]: @@@@@@@@@@@@@@@@@@@@ summary 216s python3-requests-unixsocket FAIL non-zero exit status 1 227s nova [W] Skipping flock for amd64 227s Creating nova instance adt-oracular-amd64-python-requests-unixsocket-20240701-010323-juju-7f2275-prod-proposed-migration-environment-3-6a23d361-fb9d-4bfc-8d28-940c936cb3bd from image adt/ubuntu-oracular-amd64-server-20240630.img (UUID c5a963fc-3b4c-4041-acc7-a2805897a3dc)...