question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reason: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:720)

See original GitHub issue

Hi all, I am not able to use connect_get_namespaced_pod_exec() method to execute any coomand in k8s cluster Pod, but able call any list method like self.core_api_instance.list_namespaced_pod() I am able to run kubectl client command, if certificate was issue i couldn’t have able to run kubectl command, i am using Python 2.7.5 and

pip3 list
appdirs (1.4.3)
Babel (2.3.4)
certifi (2017.4.17)
chardet (3.0.3)
cliff (2.8.0)
cmd2 (0.7.5)
debtcollector (1.17.0)
docker (2.4.2)
docker-pycreds (0.2.1)
freeze (1.0.10)
httplib2 (0.10.3)
idna (2.5)
ipaddress (1.0.18)
iso8601 (0.1.11)
kafka (1.3.3)
keystoneauth1 (3.0.0)
kubernetes (2.0.0)
kubernetes-py (1.5.6.22)
monotonic (1.3)
msgpack-python (0.4.8)
netaddr (0.7.19)
netifaces (0.10.6)
oauth2client (4.1.2)
os-client-config (1.28.0)
osc-lib (1.7.0)
oslo.i18n (3.17.0)
oslo.serialization (2.20.0)
oslo.utils (3.28.0)
pbr (3.1.1)
pip (9.0.1)
positional (1.1.1)
prettytable (0.7.2)
pyasn1 (0.2.3)
pyasn1-modules (0.0.9)
pyparsing (2.2.0)
pyperclip (1.5.27)
python-dateutil (2.6.1)
python-heatclient (1.10.0)
python-novaclient (9.0.1)
python-swiftclient (3.3.0)
pytz (2017.2)
PyYAML (3.12)
requests (2.15.1)
requestsexceptions (1.3.0)
rsa (3.4.2)
setuptools (36.2.0)
simplejson (3.11.1)
six (1.10.0)
stevedore (1.25.0)
urllib3 (1.22)
uuid (1.30)
websocket-client (0.44.0)
wrapt (1.10.10)

also using following ~/.kube/config,

from kubernetes import client, config
config.load_kube_config()

any folks can tell root cause behind this error.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mbohloolcommented, Jul 25, 2017

You probably need to downgrade your websocket package. it is 0.44 that is not supported according to this line from requirements.txt file:

websocket-client>=0.32.0,<=0.40.0

Also there is an exec example in examples folder.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - urllib and "SSL: CERTIFICATE_VERIFY_FAILED" Error
There is nothing wrong with the URL and it can be successfully verified with the common trusted certificates. So you should better not...
Read more >
How to fix Python SSL CERTIFICATE_VERIFY_FAILED
As a quick (and insecure) fix, you can turn certificate verification off, by: Set PYTHONHTTPSVERIFY environment variable to 0. For example, run. export ......
Read more >
How to Fix SSL: CERTIFICATE_VERIFY_FAILED Error In ...
If the system fails to verify the SSL certificate, you will encounter an SSL: CERTIFICATE_VERIFY_FAILED error. However, there can be multiple ...
Read more >
PIP connection Error : SSL CERTIFICATE VERIFY FAILED
The most common issue in installing python package in a company's network is failure of verification of SSL Certificate. Sometimes company blocks some ......
Read more >
How to fix - Python pip install connection error SSL ... - Jhooq
One of the most probable causes of this issue is your sitting behind the company's/corporate firewall and your company's firewall does not trust...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found