[openstack-dev] [kubernetes-python-client] Failed to get service list

Lingxian Kong anlin.kong at gmail.com
Wed Jan 10 06:40:00 UTC 2018


I submitted an issue in github[1] the other day but didn't get any
response, try my luck to attract attention here in case someone else has
the same problem or already has a solution I didn't know, or hopefully, I
missed something.

The problem is when I want to get service list(the result should be an
empty list), but I met with the following exception:

2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server   File
>> "/usr/local/lib/python2.7/dist-packages/kubernetes/client/apis/core_v1_api.py",
>> line 12951, in list_namespaced_service
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server     (data) =
>> self.list_namespaced_service_with_http_info(namespace, **kwargs)
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server   File
>> "/usr/local/lib/python2.7/dist-packages/kubernetes/client/apis/core_v1_api.py",
>> line 13054, in list_namespaced_service_with_http_info
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server
>>  collection_formats=collection_formats)
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server   File
>> "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py",
>> line 321, in call_api
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server
>>  _return_http_data_only, collection_formats, _preload_content,
>> _request_timeout)
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server   File
>> "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py",
>> line 163, in __call_api
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server
>>  return_data = self.deserialize(response_data, response_type)
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server   File
>> "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py",
>> line 236, in deserialize
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server     return
>> self.__deserialize(data, response_type)
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server   File
>> "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py",
>> line 276, in __deserialize
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server     return
>> self.__deserialize_model(data, klass)
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server   File
>> "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py",
>> line 622, in __deserialize_model
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server     instance
>> = klass(**kwargs)
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server   File
>> "/usr/local/lib/python2.7/dist-packages/kubernetes/client/models/v1_service_list.py",
>> line 60, in __init__
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server
>>  self.items = items
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server   File
>> "/usr/local/lib/python2.7/dist-packages/kubernetes/client/models/v1_service_list.py",
>> line 110, in items
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server     raise
>> ValueError("Invalid value for `items`, must not be `None`")
>
> 2018-01-10 06:31:58.930 6417 ERROR oslo_messaging.rpc.server ValueError:
>> Invalid value for `items`, must not be `None`
>
>
[1]: https://github.com/kubernetes-incubator/client-python/issues/424

Cheers,
Lingxian Kong (Larry)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20180110/88cc11bc/attachment.html>


More information about the OpenStack-dev mailing list