Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Watcher.py crashes from time to time #3

Open
Navbar opened this issue Apr 30, 2020 · 0 comments
Open

Watcher.py crashes from time to time #3

Navbar opened this issue Apr 30, 2020 · 0 comments
Assignees

Comments

@Navbar
Copy link

Navbar commented Apr 30, 2020

I implemented the Watcher.py in my K8s Cluster app container (to watch certain Label , NameSpace and Folder) and I get the following exception from time to time:

Traceback (most recent call last):
File "/app/watcher/watcher.py", line 99, in
main()
File "/app/watcher/watcher.py", line 95, in main
watchForChanges(label, targetFolder, url, method, payload)
File "/app/watcher/watcher.py", line 54, in watchForChanges
for event in stream:
File "/usr/local/lib/python3.6/site-packages/kubernetes/watch/watch.py", line 122, in stream
resp = func(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/kubernetes/client/apis/core_v1_api.py", line 11650, in list_namespaced_config_map
(data) = self.list_namespaced_config_map_with_http_info(namespace, **kwargs)
File "/usr/local/lib/python3.6/site-packages/kubernetes/client/apis/core_v1_api.py", line 11753, in list_namespaced_config_map_with_http_info
collection_formats=collection_formats)
File "/usr/local/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 321, in call_api
_return_http_data_only, collection_formats, _preload_content, _request_timeout)
File "/usr/local/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 155, in __call_api
_request_timeout=_request_timeout)
File "/usr/local/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 342, in request
headers=headers)
File "/usr/local/lib/python3.6/site-packages/kubernetes/client/rest.py", line 231, in GET
query_params=query_params)
File "/usr/local/lib/python3.6/site-packages/kubernetes/client/rest.py", line 222, in request
raise ApiException(http_resp=r)
kubernetes.client.rest.ApiException: (500)
Reason: Internal Server Error
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json', 'Date': 'Mon, 27 Apr 2020 13:28:06 GMT', 'Content-Length': '186'})
HTTP response body: b'{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"resourceVersion: Invalid value: \"None\": strconv.ParseUint: parsing \"None\": invalid syntax","code":500}\n'

  • The configmap I am loading is a valid certification file
  • Using K8s 1.15
    Any idea what goes on to cause this crash?
@monotek monotek assigned monotek and rpahli and unassigned monotek May 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants