Simple:
import boto
import gcs_oauth2_boto_plugin
boto.storage_uri('', 'gs').get_all_buckets()
Fails with:
/usr/lib/python2.7/dist-packages/boto/connection.pyc in _mexe(self, request,
sender, override_num_retries, retry_handler)
1028 raise BotoServerError(response.status, response.reason,
body)
1029 elif ex:
-> 1030 raise ex
1031 else:
1032 msg = 'Please report this exception as a Boto Issue!'
SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
(_ssl.c:727
and takes a long time to timeout / possibly it retries many times.
$ dpkg-query -W python-boto
python-boto 2.44.0-1ubuntu2
upgrading
$ dpkg-query -W python-boto
python-boto 2.44.0-1ubuntu2.18.10.0
the call now succeeds very quickly.
In [6]: boto.storage_uri('ubuntu-foundations',
'gs').get_all_buckets(headers=header_values)
Out[6]:
[<Bucket: >,
<Bucket: >,
<Bucket: >,
<Bucket: >]
** Tags removed: verification-needed-cosmic
** Tags added: verification-done-cosmic
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1815439
Title:
python-boto needs to support SNI for OpenSSL 1.1.1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-boto/+bug/1815439/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs