Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception RuntimeError: RuntimeError('cannot join current thread',) in ..... ignored #512

Closed
imshi opened this issue Apr 13, 2018 · 3 comments

Comments

@imshi
Copy link

imshi commented Apr 13, 2018

===== ERROR:
Exception RuntimeError: RuntimeError('cannot join current thread',) in <bound method ApiClient.del of <kubernetes.client.api_client.ApiClient object at 0x39cf8d0>> ignored

=================script=====================
#!/usr/bin/python
#coding=utf-8
from kubernetes import client, config
import urllib3
from pprint import pprint
#disable warnings
urllib3.disable_warnings()

def kube_get_dep_list():
configuration = client.Configuration()
configuration.host = "https://192.168.0.33:6443"
configuration.verify_ssl = False
client.Configuration.set_default(configuration)
print("Listing deployment:")
k8s_beta = client.ExtensionsV1beta1Api()
resp = k8s_beta.list_deployment_for_all_namespaces(async=True)
pprint(resp.get())

kube_get_dep_list()

@imshi
Copy link
Author

imshi commented Apr 13, 2018

help........how to deal with?

@tomplus
Copy link
Member

tomplus commented Apr 13, 2018

Do you need use async version of calls ? I guess that theres is a problem iwith not closing threadpool, #411

@imshi
Copy link
Author

imshi commented Apr 16, 2018

thx, it work well now without async=True ~

@imshi imshi closed this as completed Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants