question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

get_api_group() raises ValueError: Invalid value for `server_address_by_client_cid_rs`, must not be `None`

See original GitHub issue

When 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:closed
  • Created 6 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tompluscommented, Nov 23, 2017

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

0reactions
k8s-ci-robotcommented, Jun 22, 2019

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found