Giter Club home page Giter Club logo

Comments (4)

yeliazar avatar yeliazar commented on August 23, 2024

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.

AlexBaranowski avatar AlexBaranowski commented on August 23, 2024

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.

ticapix avatar ticapix commented on August 23, 2024

A colleague faced the same issue and solved it by adding the full certificate chain on the server.

from s3-tests.

psathyan avatar psathyan commented on August 23, 2024

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 has verify=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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.