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

kubelibrary instantation with incluster=true fails #118

Open
kkebb opened this issue Nov 1, 2022 · 3 comments · May be fixed by #119
Open

kubelibrary instantation with incluster=true fails #118

kkebb opened this issue Nov 1, 2022 · 3 comments · May be fixed by #119

Comments

@kkebb
Copy link

kkebb commented Nov 1, 2022

After upgrading to the latest 0.8.0 of kubelibrary I am now seeing the following error:

[ ERROR ] Error in file '/opt/robotframework/tests/k8s/smoke.robot' on line 3: Initializing library 'KubeLibrary' with arguments [ incluster=True ] failed: TypeError: openssl_md5() takes at most 1 argument (2 given)
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/KubeLibrary/KubeLibrary.py", line 96, in __init__
    self.reload_config(kube_config=kube_config, context=context, api_url=api_url, bearer_token=bearer_token,
  File "/usr/local/lib/python3.8/site-packages/KubeLibrary/KubeLibrary.py", line 267, in reload_config
    self._add_api('dynamic', DynamicClient)
  File "/usr/local/lib/python3.8/site-packages/KubeLibrary/KubeLibrary.py", line 270, in _add_api
    self.__dict__[reference] = class_name(self.api_client)
  File "/usr/local/lib/python3.8/site-packages/kubernetes/dynamic/client.py", line 84, in __init__
    self.__discoverer = discoverer(self, cache_file)
  File "/usr/local/lib/python3.8/site-packages/kubernetes/dynamic/discovery.py", line 224, in __init__
    Discoverer.__init__(self, client, cache_file)
  File "/usr/local/lib/python3.8/site-packages/kubernetes/dynamic/discovery.py", line 48, in __init__
    default_cachefile_name = 'osrcp-{0}.json'.format(hashlib.md5(default_cache_id, usedforsecurity=False).hexdigest())
TypeError: openssl_md5() takes at most 1 argument (2 given)
@m-wcislo
Copy link
Collaborator

m-wcislo commented Nov 1, 2022

I wasn't able to track the actual issue yet, but seems some dependency now requires python 3.9. That is why I had to update python to 3.9 in CI.

@kkebb
Copy link
Author

kkebb commented Nov 2, 2022

Ah I see. I have rolled back my kubernetes python dependency in the meantime until you track the actual issue.

@m-wcislo
Copy link
Collaborator

m-wcislo commented Nov 4, 2022

Let's see the updates on kubernetes-client/python#1944

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

Successfully merging a pull request may close this issue.

2 participants