Comments (4)
I replaced
"self._setup_ssl_cert(conn, request.url, self._verify)"
with
"self._setup_ssl_cert(conn, request.url, False)"
in virtualenv/lib/python2.7/site-packages/botocore/httpsession.py
but most of the tests are still failing
from s3-tests.
Can you try it with changed /etc/python/cert-verification.cfg?
Does setting PYTHONHTTPSVERIFY helps?
You can try something like this:
PYTHONHTTPSVERIFY=0 S3TEST_CONF=my_s3_tests.conf ./virtualenv/bin/nosetests
from s3-tests.
A colleague faced the same issue and solved it by adding the full certificate chain on the server.
from s3-tests.
I am also hitting this issue however there is 1 fail
and 40 errors
in the result. Some details
- Using the branch
ceph-nautilus
- Operating System
RHEL 8.3
- RADOS GW
rgw frontends = beast ssl_endpoint=x.x.x.x:443 ssl_certificate=<path_to_cert> ssl_private_key=<path_to_key>
- Self signed certificate added to the node's CA store.
curl
responds without any error or warning- using boto in custom script works
Troubleshooting steps taken
export PYTHONHTTPSVERIFY=0
cert-verification.cfg
hasverify=disable
in the https section. The file is stored in the folder/opt/rh/python27/root/etc/python/cert-verification.cfg
Error
raceback (most recent call last):
File "/root/s3-venv/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/root/s3-tests/s3tests/functional/test_s3.py", line 1463, in test_post_object_anonymous_request
r = requests.post(url, files = payload)
File "/root/s3-venv/lib/python2.7/site-packages/requests/api.py", line 119, in post
return request('post', url, data=data, json=json, **kwargs)
File "/root/s3-venv/lib/python2.7/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/root/s3-venv/lib/python2.7/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/root/s3-venv/lib/python2.7/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/root/s3-venv/lib/python2.7/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
SSLError: HTTPSConnectionPool(host='ceph-pragadee-1610251228563-node3-monrgw', port=443): Max retries exceeded with url: /cephuser-jhtvf9f8yl7yrpziimwg-1 (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)'),))
Please can anyone give me additional pointers that could help in resolving this issue?
from s3-tests.
Related Issues (20)
- S3 Function Header tests seems faulty (executed on ceph vm cluster) HOT 1
- How live is the project? HOT 1
- Planning to contribute to this project
- s3tests_boto3/functional/test_s3:test_object_raw_get_bucket_gone HOT 1
- requesting an S3 url generated by a wrong expires, you will get status code 400, not 403
- Possibly faulty `test_bucket_create_exists` test HOT 2
- test_bucket_listv2_encoding_basic HOT 4
- test_object_read_unreadable
- test_bucket_list_prefix_basic and test_bucket_list_prefix_delimiter_basic needed bypass HOT 1
- Test suite broken under python 3.10+ (nose not maintained) HOT 1
- S3 Tests fail against aws
- test_bucket_list_delimiter_prefix fails HOT 1
- test_s3.py::test_bucket_list_distinct fails when testing against AWS S3
- syntax error in tox.ini HOT 1
- test minio, bad digest after start HOT 1
- s3select:test_progress_expressions wrong key
- s3select:test_generate_projection wrong index of split
- test_s3:test_lifecycle_set_date - use deprecated field Prefix instead of field.prefix
- help: tox: error: unrecognized arguments HOT 2
- aws4 tests fails because of "UnboundLocalError: local variable 'region_name' referenced before assignment"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s3-tests.