Try running "tox -e py27" while not connected to the Internet (say, while on a train to work). This used to run the tests, but now you get a timeout and a stack trace:
ubuntu@vsaio:~/swift$ vtox -e py27
py27 develop-inst-nodeps: /vagrant/swift
ERROR: invocation failed (exit code 2), logfile: /home/ubuntu/.tox-swift/py27/log/py27-52.log
ERROR: actionid: py27
msg: developpkg
cmdargs: ['/home/ubuntu/.tox-swift/py27/bin/pip', 'install', '-chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt', '-U', '--no-deps', '-e', '/vagrant/swift']
env: {'NOSE_INCLUDE_EXE': 'true', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'SSH_CLIENT': '10.0.2.2 49174 22', 'LOGNAME': 'ubuntu', 'USER': 'ubuntu', 'PATH': '/home/ubuntu/.tox-swift/py27/bin:/vagrant/bin:/home/ubuntu/bin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin', 'HOME': '/home/ubuntu', 'NOSE_WITH_COVERAGE': '1', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm-256color', 'SHELL': '/bin/bash', 'SHLVL': '2', 'PYTHONHASHSEED': '3830196522', 'ST_KEY': 'testing', 'XDG_RUNTIME_DIR': '/run/user/1000', 'SSH_AUTH_SOCK': '/tmp/ssh-R8niPTrF2O/agent.701', 'VIRTUAL_ENV': '/home/ubuntu/.tox-swift/py27', 'ST_USER': 'test:tester', 'XDG_SESSION_ID': '243', '_': '/usr/local/bin/tox', 'NOSE_COVER_BRANCHES': '1', 'SSH_CONNECTION': '10.0.2.2 49174 10.0.2.15 22', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'SOURCE_ROOT': '/vagrant', 'SSH_TTY': '/dev/pts/1', 'OLDPWD': '/home/ubuntu/swift', 'PWD': '/vagrant/swift', 'ST_AUTH': 'http://vsaio:8080/auth/v1.0', 'MAIL': '/var/mail/ubuntu', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'}
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f00bdf81110>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /cgit/openstack/requirements/plain/upper-constraints.txt
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f00bdf81290>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /cgit/openstack/requirements/plain/upper-constraints.txt
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f00bdf81410>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /cgit/openstack/requirements/plain/upper-constraints.txt
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f00bdf81590>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /cgit/openstack/requirements/plain/upper-constraints.txt
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f00bdf81710>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /cgit/openstack/requirements/plain/upper-constraints.txt
Exception:
Traceback (most recent call last):
File "/home/ubuntu/.tox-swift/py27/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/ubuntu/.tox-swift/py27/local/lib/python2.7/site-packages/pip/commands/install.py", line 312, in run
wheel_cache
File "/home/ubuntu/.tox-swift/py27/local/lib/python2.7/site-packages/pip/basecommand.py", line 269, in populate_requirement_set
session=session, wheel_cache=wheel_cache):
File "/home/ubuntu/.tox-swift/py27/local/lib/python2.7/site-packages/pip/req/req_file.py", line 84, in parse_requirements
filename, comes_from=comes_from, session=session
File "/home/ubuntu/.tox-swift/py27/local/lib/python2.7/site-packages/pip/download.py", line 417, in get_file_content
resp = session.get(url)
File "/home/ubuntu/.tox-swift/py27/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 488, in get
return self.request('GET', url, **kwargs)
File "/home/ubuntu/.tox-swift/py27/local/lib/python2.7/site-packages/pip/download.py", line 386, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "/home/ubuntu/.tox-swift/py27/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 475, in request
resp = self.send(prep, **send_kwargs)
File "/home/ubuntu/.tox-swift/py27/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 596, in send
r = adapter.send(request, **kwargs)
File "/home/ubuntu/.tox-swift/py27/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/adapter.py", line 47, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "/home/ubuntu/.tox-swift/py27/local/lib/python2.7/site-packages/pip/_vendor/requests/adapters.py", line 487, in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='git.openstack.org', port=443): Max retries exceeded with url: /cgit/openstack/requirements/plain/upper-constraints.txt (Caused by NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f00bdf81850>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Yeah, this is fallout from the upper-constraints stuff introduced in https:/ /github. com/openstack/ swift/commit/ 91ce1bb