INFO:k8s-wrapper:main:Creating a Service
/usr/local/lib/python3.4/site-packages/urllib3-1.24-py3.4.egg/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
ERROR:k8s-wrapper:messaging:Error in subscription thread:
Traceback (most recent call last):
File "/tng-sp-ia-k8s/kubernetes_wrapper/messaging.py", line 194, in connection_thread
channel.start_consuming(to_tuple=False)
File "/usr/local/lib/python3.4/site-packages/amqpstorm/channel.py", line 302, in start_consuming
auto_decode=auto_decode
File "/usr/local/lib/python3.4/site-packages/amqpstorm/channel.py", line 273, in process_data_events
self._consumer_callbacks[consumer_tag](message)
File "/tng-sp-ia-k8s/kubernetes_wrapper/messaging.py", line 171, in _wrapper_cbf
cbf(ch, method, properties, body)
File "/tng-sp-ia-k8s/kubernetes_wrapper/k8s.py", line 286, in function_instance_create
self.start_next_task(func_id)
File "/tng-sp-ia-k8s/kubernetes_wrapper/k8s.py", line 170, in start_next_task
print(task.result())
File "/usr/local/lib/python3.4/concurrent/futures/_base.py", line 395, in result
return self.__get_result()
File "/usr/local/lib/python3.4/concurrent/futures/_base.py", line 354, in __get_result
raise self._exception
File "/usr/local/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/tng-sp-ia-k8s/kubernetes_wrapper/k8s.py", line 430, in deploy_cnf
engine.KubernetesWrapperEngine.create_service(self, obj_service, "default")
File "/tng-sp-ia-k8s/kubernetes_wrapper/k8s_wrapper.py", line 176, in create_service
body=service, namespace=namespace , async_req=False)
File "/usr/local/lib/python3.4/site-packages/kubernetes-8.0.0b1-py3.4.egg/kubernetes/client/apis/core_v1_api.py", line 6934, in create_namespaced_service
(data) = self.create_namespaced_service_with_http_info(namespace, body, **kwargs)
File "/usr/local/lib/python3.4/site-packages/kubernetes-8.0.0b1-py3.4.egg/kubernetes/client/apis/core_v1_api.py", line 7025, in create_namespaced_service_with_http_info
collection_formats=collection_formats)
File "/usr/local/lib/python3.4/site-packages/kubernetes-8.0.0b1-py3.4.egg/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.4/site-packages/kubernetes-8.0.0b1-py3.4.egg/kubernetes/client/api_client.py", line 155, in __call_api
_request_timeout=_request_timeout)
File "/usr/local/lib/python3.4/site-packages/kubernetes-8.0.0b1-py3.4.egg/kubernetes/client/api_client.py", line 364, in request
body=body)
File "/usr/local/lib/python3.4/site-packages/kubernetes-8.0.0b1-py3.4.egg/kubernetes/client/rest.py", line 266, in POST
body=body)
File "/usr/local/lib/python3.4/site-packages/kubernetes-8.0.0b1-py3.4.egg/kubernetes/client/rest.py", line 222, in request
raise ApiException(http_resp=r)
kubernetes.client.rest.ApiException: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json', 'Date': 'Thu, 25 Oct 2018 02:12:18 GMT', 'Content-Length': '444'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Service in version \"v1\" cannot be handled as a Service: v1.Service.Spec: v1.ServiceSpec.Ports: []v1.ServicePort: v1.ServicePort.Port: readUint32: unexpected character: \ufffd, error found in #10 byte of ...| \"port\": \"80\"}]}}|..., bigger context ...|\": [{\"name\": \"http\", \"targetPort\": \"80\", \"port\": \"80\"}]}}|...","reason":"BadRequest","code":400}