canonical / canonical/pycloudlib
Unhandled `SSLEOFError` when launching GCE instances
- Dominant language
- Python
- Stars
- 22
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
```pytb
@pytest.yield_fixture(scope='class')
def class_client(request, fixture_utils, session_cloud, setup_image):
"""Provide a client that runs once per class."""
> with _client(request, fixture_utils, session_cloud) as client:
tests/integration_tests/conftest.py:236:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/contextlib.py:113: in __enter__
return next(self.gen)
tests/integration_tests/conftest.py:210: in _client
with session_cloud.launch(
tests/integration_tests/clouds.py:162: in launch
pycloudlib_instance = self._perform_launch(kwargs)
tests/integration_tests/clouds.py:135: in _perform_launch
pycloudlib_instance = self.cloud_instance.launch(**launch_kwargs)
../pycloudlib/pycloudlib/gce/cloud.py:236: in launch
return self.get_instance(result['id'], name=result['name'])
../pycloudlib/pycloudlib/gce/cloud.py:160: in get_instance
return GceInstance(self.key_pair, instance_id,
../pycloudlib/pycloudlib/gce/instance.py:36: in __init__
self.instance = googleapiclient.discovery.build(
../../.virtualenvs/cloud-init/lib/python3.8/site-packages/googleapiclient/_helpers.py:130: in positional_wrapper
return wrapped(*args, **kwargs)
../../.virtualenvs/cloud-init/lib/python3.8/site-packages/googleapiclient/discovery.py:221: in build
content = _retrieve_discovery_doc(
../../.virtualenvs/cloud-init/lib/python3.8/site-packages/googleapiclient/discovery.py:272: in _retrieve_discovery_doc
resp, content = http.request(actual_url)
../../.virtualenvs/cloud-init/lib/python3.8/site-packages/httplib2/__init__.py:1985: in request
(response, content) = self._request(
../../.virtualenvs/cloud-init/lib/python3.8/site-packages/httplib2/__init__.py:1650: in _request
(response, content) = self._conn_request(
../../.virtualenvs/cloud-init/lib/python3.8/site-packages/httplib2/__init__.py:1557: in _conn_request
conn.connect()
../../.virtualenvs/cloud-init/lib/python3.8/site-packages/httplib2/__init__.py:1326: in connect
self.sock = self._context.wrap_socket(sock, server_hostname=self.host)
/usr/lib/python3.8/ssl.py:500: in wrap_socket
return self.sslsocket_class._create(
/usr/lib/python3.8/ssl.py:1040: in _create
self.do_handshake()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = , block = False
@_sslcopydoc
def do_handshake(self, block=False):
self._check_connected()
timeout = self.gettimeout()
try:
if timeout == 0.0 and block:
self.settimeout(None)
> self._sslobj.do_handshake()
E ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1124)
/usr/lib/python3.8/ssl.py:1309: SSLEOFError
```
Contributor guide
Assessment
This issue has not been assessed yet.