python: list_node: v1_container_image: ValueError: Invalid value for `names`, must not be `None`
Hey all,
I’m getting this when calling list_node():
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/kubernetes/client/apis/core_v1_api.py", line 13437, in list_node
(data) = self.list_node_with_http_info(**kwargs) # `kwargs` is empty.
File "/usr/lib/python2.7/site-packages/kubernetes/client/apis/core_v1_api.py", line 13534, in list_node_with_http_info
collection_formats=collection_formats)
File "/usr/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 321, in call_api
_return_http_data_only, collection_formats, _preload_content, _request_timeout)
File "/usr/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 163, in __call_api
return_data = self.deserialize(response_data, response_type)
File "/usr/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 236, in deserialize
return self.__deserialize(data, response_type)
File "/usr/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 276, in __deserialize
return self.__deserialize_model(data, klass)
File "/usr/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 620, in __deserialize_model
kwargs[attr] = self.__deserialize(value, attr_type)
File "/usr/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 254, in __deserialize
for sub_data in data]
File "/usr/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 276, in __deserialize
return self.__deserialize_model(data, klass)
File "/usr/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 620, in __deserialize_model
kwargs[attr] = self.__deserialize(value, attr_type)
File "/usr/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 276, in __deserialize
return self.__deserialize_model(data, klass)
File "/usr/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 620, in __deserialize_model
kwargs[attr] = self.__deserialize(value, attr_type)
File "/usr/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 254, in __deserialize
for sub_data in data]
File "/usr/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 276, in __deserialize
return self.__deserialize_model(data, klass)
File "/usr/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 622, in __deserialize_model
instance = klass(**kwargs)
File "/usr/lib/python2.7/site-packages/kubernetes/client/models/v1_container_image.py", line 52, in __init__
self.names = names
File "/usr/lib/python2.7/site-packages/kubernetes/client/models/v1_container_image.py", line 77, in names
raise ValueError("Invalid value for `names`, must not be `None`")
ValueError: Invalid value for `names`, must not be `None`
Installed versions in the client (CentOS 7):
[root@kubic-2 /]# python
Python 2.7.5 (default, Jun 20 2019, 20:27:34)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> urllib3.__version__
'1.10.2'
>>> kubernetes.__version__
'8.0.1'
>>> yaml.__version__
'3.10'
>>> requests.__version__
'2.6.0'
kubernetes:
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.4", GitCommit:"a87e9a978f65a8303aa9467537aa59c18122cbf9", GitTreeState:"clean", BuildDate:"2019-07-08T08:43:10Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Found in https://github.com/ceph/ceph/pull/29131
Is there any chance of getting list_node to work?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 18 (7 by maintainers)
Links to this issue
Commits related to this issue
- fix k8s api (list_node) when specifying zone If you specify the command like: f4i.py add-thingvisor -y thingVisor-helloWorld.yaml -z Earth you got an error. Traceback (most recent call last): F... — committed to thehajime/VirIoT by thehajime 4 years ago
- fix k8s api (list_node) when specifying zone If you specify the command like: f4i.py add-thingvisor -y thingVisor-helloWorld.yaml -z Earth you got an error. Traceback (most recent call last): F... — committed to thehajime/VirIoT by thehajime 4 years ago
- fix k8s api (list_node) when specifying zone If you specify the command like: f4i.py add-thingvisor -y thingVisor-helloWorld.yaml -z Earth you got an error. Traceback (most recent call last): F... — committed to thehajime/VirIoT by thehajime 4 years ago
- fix k8s api (list_node) when specifying zone If you specify the command like: f4i.py add-thingvisor -y thingVisor-helloWorld.yaml -z Earth you got an error. Traceback (most recent call last): F... — committed to thehajime/VirIoT by thehajime 4 years ago
- fix k8s api (list_node) when specifying zone If you specify the command like: f4i.py add-thingvisor -y thingVisor-helloWorld.yaml -z Earth you got an error. Traceback (most recent call last): F... — committed to thehajime/VirIoT by thehajime 4 years ago
- fix k8s api (list_node) when specifying zone If you specify the command like: f4i.py add-thingvisor -y thingVisor-helloWorld.yaml -z Earth you got an error. Traceback (most recent call last): F... — committed to thehajime/VirIoT by thehajime 4 years ago
- fix k8s api (list_node) when specifying zone If you specify the command like: f4i.py add-thingvisor -y thingVisor-helloWorld.yaml -z Earth you got an error. Traceback (most recent call last): F... — committed to thehajime/VirIoT by thehajime 4 years ago
- fix k8s api (list_node) when specifying zone If you specify the command like: f4i.py add-thingvisor -y thingVisor-helloWorld.yaml -z Earth you got an error. Traceback (most recent call last): F... — committed to thehajime/VirIoT by thehajime 4 years ago
- fix k8s api (list_node) when specifying zone If you specify the command like: f4i.py add-thingvisor -y thingVisor-helloWorld.yaml -z Earth you got an error. Traceback (most recent call last): F... — committed to thehajime/VirIoT by thehajime 4 years ago
- fix k8s api (list_node) when specifying zone If you specify the command like: f4i.py add-thingvisor -y thingVisor-helloWorld.yaml -z Earth you got an error. Traceback (most recent call last): F... — committed to thehajime/VirIoT by thehajime 4 years ago
- cli: remove dangling images before deploy * Avoids having dangling docker images on the Kubernetes nodes because the Kubernetes Python library fails to list nodes (required by REANA-Commons and R... — committed to reanahub/reana by deleted user 4 years ago
- cli: remove dangling images before deploy * Avoids having dangling docker images on the Kubernetes nodes because the Kubernetes Python library fails to list nodes (required by REANA-Commons and R... — committed to tiborsimko/reana by deleted user 4 years ago
- k8s: add monkeypatch to solve `list_node()` error To remove once Kubernetes releases the new version fixing it https://github.com/reanahub/reana-commons/issues/197 https://github.com/kubernetes-clien... — committed to mvidalgarcia/reana-commons by mvidalgarcia 3 years ago
- k8s: add monkeypatch to solve `list_node()` error To remove once Kubernetes releases the new version fixing it https://github.com/reanahub/reana-commons/issues/197 https://github.com/kubernetes-clien... — committed to mvidalgarcia/reana-commons by mvidalgarcia 3 years ago
My workaround is a monkey-patch:
Just ran into an issue with an Azure Kubernetes Service (AKS) 1.19.5 cluster where the above ‘monkey patch’ worked for me. We are migrating from 1.18.x to 1.19.x and found that a service using this API was broken.
The issue reproduces trivially on both the release (12.0.1) and alpha (17.14.0a1) packages. Should this issue really be closed?