oracle / oracle/oci-python-sdk

SSL Certifcate :- when we add SSL certifcate using multiprocessing we got "caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_BAD_RECORD_MAC] or (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:2334)')" error

Open
#370 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

SDK
Dominant language
Python
Stars
474
Forks
321
Avg merge
23m
Merged PRs (30d)
4

Description

Hi Team
i am using multiprocessing to add a certificate and update the listener.when i run with out multiprocessing its working fine.
but when i use multiprocessing i am getting following error.
when i run every time i got different error.
Error 1 ---- 'error': "HTTPSConnectionPool(host='iaas.us-ashburn-1.oraclecloud.com', port=443): Max retries exceeded with url: /20170115/loadBalancers/"+ocid+"/certificates (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_BAD_RECORD_MAC] sslv3 alert bad record mac (_ssl.c:2334)'),))"}, {'podname': 'emje-dev1', 'error': "HTTPSConnectionPool(host='iaas.us-ashburn-1.oraclecloud.com', port=443): Max retries exceeded with url: /20170115/loadBalancers/"+ocid+"/certificates (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response',)))"}]

Error 2 ---- error': "HTTPSConnectionPool(host='iaas.us-ashburn-1.oraclecloud.com', port=443): Max retries exceeded with url: /20170115/loadBalancers/"+ocid+"/certificates (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:2334)'),))"}, {'podname': 'emje-test', 'error': "HTTPSConnectionPool(host='iaas.us-ashburn-1.oraclecloud.com', port=443): Max retries exceeded with url: /20170115/loadBalancers/"+ocid+"/certificates (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response',)))"}]

Modal :-
certificate_data = oci.load_balancer.models.CreateCertificateDetails()
Method :-
create_cert = lb_client.create_certificate(certificate_data, pod_lb_details.id)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Python multiprocessing path that calls lb_client.create_certificate(certificate_data, pod_lb_details.id) for the OCI load balancer. Reproduce the call with and without multiprocessing, then compare the SSL, proxy, and WRONG_VERSION_NUMBER failures reported in the issue. Done means identifying a reproducible cause and documenting or correcting the multiprocessing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.