Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 582674

Summary: dev-python/urllib3-1.14 with FEATURES=network-sandbox fails tests
Product: Gentoo Linux Reporter: eroen <erikdenstore+gbugs>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: normal Keywords: TESTFAILURE
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description eroen 2016-05-10 18:41:03 UTC
Created attachment 433860 [details]
build.log

======================================================================
ERROR: We should rely on the platform CA file to validate authenticity of SSL
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/urllib3-1.14/work/urllib3-1.14/test/__init__.py", line 93, in wrapper
    return test(*args, **kwargs)
  File "/var/tmp/portage/dev-python/urllib3-1.14/work/urllib3-1.14/test/with_dummyserver/test_https.py", line 217, in test_ssl_verified_with_platform_ca_certs
    https_pool.request('HEAD', '/')
  File "/var/tmp/portage/dev-python/urllib3-1.14/work/urllib3-1.14-python2_7/lib/urllib3/request.py", line 69, in request
    **urlopen_kw)
  File "/var/tmp/portage/dev-python/urllib3-1.14/work/urllib3-1.14-python2_7/lib/urllib3/request.py", line 90, in request_encode_url
    return self.urlopen(method, url, **extra_kw)
  File "/var/tmp/portage/dev-python/urllib3-1.14/work/urllib3-1.14-python2_7/lib/urllib3/connectionpool.py", line 628, in urlopen
    release_conn=release_conn, **response_kw)
  File "/var/tmp/portage/dev-python/urllib3-1.14/work/urllib3-1.14-python2_7/lib/urllib3/connectionpool.py", line 628, in urlopen
    release_conn=release_conn, **response_kw)
  File "/var/tmp/portage/dev-python/urllib3-1.14/work/urllib3-1.14-python2_7/lib/urllib3/connectionpool.py", line 628, in urlopen
    release_conn=release_conn, **response_kw)
  File "/var/tmp/portage/dev-python/urllib3-1.14/work/urllib3-1.14-python2_7/lib/urllib3/connectionpool.py", line 608, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/var/tmp/portage/dev-python/urllib3-1.14/work/urllib3-1.14-python2_7/lib/urllib3/util/retry.py", line 273, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
MaxRetryError: HTTPSConnectionPool(host='httpbin.org', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f315fe83110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))
-------------------- >> begin captured logging << --------------------
urllib3.connectionpool: INFO: Starting new HTTPS connection (1): httpbin.org
urllib3.util.retry: DEBUG: Incremented Retry for (url='/'): Retry(total=2, connect=None, read=None, redirect=None)
urllib3.connectionpool: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f315fed0690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /
urllib3.connectionpool: INFO: Starting new HTTPS connection (2): httpbin.org
urllib3.util.retry: DEBUG: Incremented Retry for (url='/'): Retry(total=1, connect=None, read=None, redirect=None)
urllib3.connectionpool: WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f315fed0750>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /
urllib3.connectionpool: INFO: Starting new HTTPS connection (3): httpbin.org
tornado.access: INFO: 200 GET / (::1) 5.68ms
urllib3.util.retry: DEBUG: Incremented Retry for (url='/'): Retry(total=0, connect=None, read=None, redirect=None)
urllib3.connectionpool: WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f315fed0850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /
urllib3.connectionpool: INFO: Starting new HTTPS connection (4): httpbin.org
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_https_proxy_pool_timeout (test.with_dummyserver.test_proxy_poolmanager.TestHTTPProxyManager)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/nose/tools/nontrivial.py", line 97, in newfunc
    result = func(*arg, **kw)
  File "/var/tmp/portage/dev-python/urllib3-1.14/work/urllib3-1.14/test/with_dummyserver/test_proxy_poolmanager.py", line 301, in test_https_proxy_pool_timeout
    self.assertEqual(type(e.reason), ConnectTimeoutError)
AssertionError: <class 'urllib3.exceptions.ProxyError'> != <class 'urllib3.exceptions.ConnectTimeoutError'>
-------------------- >> begin captured logging << --------------------
urllib3.connectionpool: INFO: Starting new HTTPS connection (1): 10.255.255.1
urllib3.util.retry: DEBUG: Incremented Retry for (url='http://localhost:36879'): Retry(total=2, connect=None, read=None, redirect=None)
urllib3.connectionpool: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f315e0ac210>: Failed to establish a new connection: [Errno 101] Network is unreachable',))': http://localhost:36879
urllib3.connectionpool: INFO: Starting new HTTPS connection (2): 10.255.255.1
urllib3.util.retry: DEBUG: Incremented Retry for (url='http://localhost:36879'): Retry(total=1, connect=None, read=None, redirect=None)
urllib3.connectionpool: WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f315e0c3190>: Failed to establish a new connection: [Errno 101] Network is unreachable',))': http://localhost:36879
urllib3.connectionpool: INFO: Starting new HTTPS connection (3): 10.255.255.1
urllib3.util.retry: DEBUG: Incremented Retry for (url='http://localhost:36879'): Retry(total=0, connect=None, read=None, redirect=None)
urllib3.connectionpool: WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f315e0bdbd0>: Failed to establish a new connection: [Errno 101] Network is unreachable',))': http://localhost:36879
urllib3.connectionpool: INFO: Starting new HTTPS connection (4): 10.255.255.1
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_https_proxy_timeout (test.with_dummyserver.test_proxy_poolmanager.TestHTTPProxyManager)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/nose/tools/nontrivial.py", line 97, in newfunc
    result = func(*arg, **kw)
  File "/var/tmp/portage/dev-python/urllib3-1.14/work/urllib3-1.14/test/with_dummyserver/test_proxy_poolmanager.py", line 290, in test_https_proxy_timeout
    self.assertEqual(type(e.reason), ConnectTimeoutError)
AssertionError: <class 'urllib3.exceptions.ProxyError'> != <class 'urllib3.exceptions.ConnectTimeoutError'>
-------------------- >> begin captured logging << --------------------
urllib3.connectionpool: INFO: Starting new HTTPS connection (1): 10.255.255.1
urllib3.util.retry: DEBUG: Incremented Retry for (url='http://localhost:36879'): Retry(total=2, connect=None, read=None, redirect=None)
urllib3.connectionpool: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f315e0d7310>: Failed to establish a new connection: [Errno 101] Network is unreachable',))': http://localhost:36879
urllib3.connectionpool: INFO: Starting new HTTPS connection (2): 10.255.255.1
urllib3.util.retry: DEBUG: Incremented Retry for (url='http://localhost:36879'): Retry(total=1, connect=None, read=None, redirect=None)
urllib3.connectionpool: WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f315e120610>: Failed to establish a new connection: [Errno 101] Network is unreachable',))': http://localhost:36879
urllib3.connectionpool: INFO: Starting new HTTPS connection (3): 10.255.255.1
urllib3.util.retry: DEBUG: Incremented Retry for (url='http://localhost:36879'): Retry(total=0, connect=None, read=None, redirect=None)
urllib3.connectionpool: WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f315e1201d0>: Failed to establish a new connection: [Errno 101] Network is unreachable',))': http://localhost:36879
urllib3.connectionpool: INFO: Starting new HTTPS connection (4): 10.255.255.1
--------------------- >> end captured logging << ---------------------

Name                                  Stmts   Miss  Cover   Missing
-------------------------------------------------------------------
urllib3                                  38     38     0%   5-93
urllib3._collections                    178    178     0%   1-324
urllib3.connection                      122    122     0%   1-288
urllib3.connectionpool                  289    289     0%   1-817
urllib3.contrib                           0      0   100%   
urllib3.contrib.pyopenssl               160    160     0%   46-310
urllib3.contrib.socks                    63     63     0%   2-172
urllib3.exceptions                       84     84     0%   1-209
urllib3.fields                           69     69     0%   1-178
urllib3.filepost                         39     39     0%   1-94
urllib3.packages                          3      3     0%   1-5
urllib3.packages.six                      2      2     0%   1-2
urllib3.packages.ssl_match_hostname       5      5     0%   1-5
urllib3.poolmanager                     119    119     0%   1-284
urllib3.request                          41     41     0%   1-151
urllib3.response                        262    262     0%   1-514
urllib3.util                              9      9     0%   1-27
urllib3.util.connection                  58     58     0%   1-101
urllib3.util.request                     24     24     0%   1-72
urllib3.util.response                    28     28     0%   1-74
urllib3.util.retry                       99     99     0%   1-286
urllib3.util.ssl_                       123    123     0%   1-318
urllib3.util.timeout                     58     58     0%   1-242
urllib3.util.url                         95     95     0%   1-217
-------------------------------------------------------------------
TOTAL                                  1968   1968     0%   
----------------------------------------------------------------------
Ran 335 tests in 1.604s

FAILED (SKIP=10, errors=1, failures=2)
 * ERROR: dev-python/urllib3-1.14::gentoo failed (test phase):
 *   Tests fail with python2.7
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_test
 *   environment, line 2619:  Called distutils-r1_src_test
 *   environment, line  803:  Called _distutils-r1_run_foreach_impl 'python_test'
 *   environment, line  299:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2104:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 1408:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 1406:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test'
 *   environment, line  511:  Called distutils-r1_run_phase 'python_test'
 *   environment, line  736:  Called python_test
 *   environment, line 2498:  Called die
 * The specific snippet of code:
 *       nosetests -v --exclude test_headerdict --exclude test_headers --exclude test_source_address_error --exclude test_no_ssl --exclude test_ca_dir_verified --exclude test_verified test || die "Tests fail with ${EPYTHON}"
Comment 1 eroen 2016-05-10 18:41:42 UTC
localhost ~ # emerge --info '=dev-python/urllib3-1.14::gentoo' 
Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.22-r4, 4.1.15-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.1.15-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     4043252 total,   3684728 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 10 May 2016 00:45:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline seccomp session sse sse2 ssl tcpd unicode xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

localhost ~ # emerge -pqv '=dev-python/urllib3-1.14::gentoo'
[ebuild  N    ] dev-python/urllib3-1.14  USE="{test} -doc" PYTHON_TARGETS="python2_7 python3_4 -pypy -python3_3 -python3_5" 

 * IMPORTANT: 9 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-03-29 10:32:20 UTC
Old version removed.  Please reopen if you can still reproduce.