get_api_group() raises ValueError: Invalid value for `server_address_by_client_cid_rs`, must not be `None`
See original GitHub issueWhen I call get_api_group() with the 4.0 beta client against Kubernetes 1.7 or 1.8, I get an error:
File "~/test_automation/test_automation/kubernetes_.py", line 353, in __init__
api_groups.append(a.get_api_group())
File "~/virtualenvs/kubernetes1.8/lib/python3.6/site-packages/kubernetes/client/apis/admissionregistration_api.py", line 55, in get_api_group
(data) = self.get_api_group_with_http_info(**kwargs)
File "~/virtualenvs/kubernetes1.8/lib/python3.6/site-packages/kubernetes/client/apis/admissionregistration_api.py", line 124, in get_api_group_with_http_info
collection_formats=collection_formats)
File "~/virtualenvs/kubernetes1.8/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 "~/virtualenvs/kubernetes1.8/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 163, in __call_api
return_data = self.deserialize(response_data, response_type)
File "~/virtualenvs/kubernetes1.8/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 236, in deserialize
return self.__deserialize(data, response_type)
File "~/virtualenvs/kubernetes1.8/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 276, in __deserialize
return self.__deserialize_model(data, klass)
File "~/virtualenvs/kubernetes1.8/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 622, in __deserialize_model
instance = klass(**kwargs)
File "~/virtualenvs/kubernetes1.8/lib/python3.6/site-packages/kubernetes/client/models/v1_api_group.py", line 71, in __init__
self.server_address_by_client_cid_rs = server_address_by_client_cid_rs
File "~/virtualenvs/kubernetes1.8/lib/python3.6/site-packages/kubernetes/client/models/v1_api_group.py", line 189, in server_address_by_client_cid_rs
raise ValueError("Invalid value for `server_address_by_client_cid_rs`, must not be `None`")
ValueError: Invalid value for `server_address_by_client_cid_rs`, must not be `None`
Not sure if this is a misconfiguration issue or something deeper.
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
ValueError: Invalid value for selector, must not be None
V1Deployment() spec = client.V1DeploymentSpec() # <<< At this line I hit the error! Complete Traceback: ValueError Traceback (most recent call ...
Read more >ray._private.worker — Ray 3.0.0.dev0 - the Ray documentation
setproctitle(process_name) if not isinstance(job_id, JobID): raise TypeError("The type of given job id must be JobID.") # All workers start out as non-actors. A ......
Read more >Python kubernetes library equivalent of `kubectl get node
_type = type ValueError: Invalid value for `type` (KernelDeadlock), must be one of ['DiskPressure', 'MemoryPressure', 'NetworkUnavailable', ...
Read more >Bug #1905481 “Python Kubernetes client raises exception ...
In sysinv log, the error "Kubernetes exception in kube_get_nodes: Invalid value for `names`, must not be `None`" appears every minute.
Read more >Kubernetes API Concepts
As an API client, you can then pass this continue value to the API server ... or the 406 Not acceptable error if...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @ceridwen New version is more strict - fields “name”, “versions”, “serverAddressByClientCIDRs” are required by Kubernetes and there are additional checks for it.
See also: https://github.com/kubernetes-incubator/client-python/issues/401
@fejta-bot: Closing this issue.
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.