Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems starting TSS in ElasTest HEK #25

Open
EduJGURJC opened this issue Jan 8, 2020 · 0 comments
Open

Problems starting TSS in ElasTest HEK #25

EduJGURJC opened this issue Jan 8, 2020 · 0 comments

Comments

@EduJGURJC
Copy link
Contributor

Hi,

we are having problems starting Test Support Services in ElasTest HEK.

The problem occurs when the ESM checks whether the namespace exists or not before creating it (https://github.com/elastest/elastest-service-manager/blob/master/src/adapters/resources.py#L686). The Kubernetes api returns a 404 not found, and the ESM code throws an exception:

usr/lib/python3.6/site-packages/urllib3/connectionpool.py:1004: 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,
2020-01-08 07:51:47,968 DEBUG https://100.64.0.1:443 "GET /api/v1/namespaces/14ba508a-dabc-453e-a3a3-39556e25c0f7 HTTP/1.1" 404 252
2020-01-08 07:51:47,968 DEBUG https://100.64.0.1:443 "GET /api/v1/namespaces/14ba508a-dabc-453e-a3a3-39556e25c0f7 HTTP/1.1" 404 252
DEBUG:urllib3.connectionpool:https://100.64.0.1:443 "GET /api/v1/namespaces/14ba508a-dabc-453e-a3a3-39556e25c0f7 HTTP/1.1" 404 252
DEBUG:kubernetes.client.rest:response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"namespaces \"14ba508a-dabc-453e-a3a3-39556e25c0f7\" not found","reason":"NotFound","details":{"name":"14ba508a-dabc-453e-a3a3-39556e25c0f7","kind":"namespaces"},"code":404}


ERROR:esm_api:Exception on /v2/service_instances/14ba508a-dabc-453e-a3a3-39556e25c0f7 [PUT]
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python3.6/site-packages/connexion/decorators/decorator.py", line 73, in wrapper
    response = function(request)
  File "/usr/lib/python3.6/site-packages/connexion/decorators/uri_parsing.py", line 117, in wrapper
    response = function(request)
  File "/usr/lib/python3.6/site-packages/connexion/decorators/validation.py", line 163, in wrapper
    response = function(request)
  File "/usr/lib/python3.6/site-packages/connexion/decorators/validation.py", line 336, in wrapper
    return function(request)
  File "/usr/lib/python3.6/site-packages/connexion/decorators/decorator.py", line 44, in wrapper
    response = function(request)
  File "/usr/lib/python3.6/site-packages/connexion/decorators/parameter.py", line 207, in wrapper
    return function(**kwargs)
  File "/app/esm/controllers/service_instances_controller.py", line 75, in create_service_instance
    entity, context = CreateInstance(entity, context).start()
  File "/app/adapters/generic.py", line 52, in start
    return self.run()
  File "/app/esm/controllers/tasks.py", line 76, in run
    c_type=mani.manifest_type, parameters=self.entity_req.parameters)
  File "/app/adapters/resources.py", line 946, in create
    be.create(instance_id, content, c_type, **kwargs)
  File "/app/adapters/resources.py", line 686, in create
    namespace_exists = self.core_api_instance.read_namespace(namespace)
  File "/usr/lib/python3.6/site-packages/kubernetes/client/apis/core_v1_api.py", line 17555, in read_namespace
    (data) = self.read_namespace_with_http_info(name, **kwargs)
  File "/usr/lib/python3.6/site-packages/kubernetes/client/apis/core_v1_api.py", line 17640, in read_namespace_with_http_info
    collection_formats=collection_formats)
  File "/usr/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 334, in call_api
    _return_http_data_only, collection_formats, _preload_content, _request_timeout)
  File "/usr/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 168, in __call_api
    _request_timeout=_request_timeout)
  File "/usr/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 355, in request
    headers=headers)
  File "/usr/lib/python3.6/site-packages/kubernetes/client/rest.py", line 231, in GET
    query_params=query_params)
  File "/usr/lib/python3.6/site-packages/kubernetes/client/rest.py", line 222, in request
    raise ApiException(http_resp=r)

kubernetes.client.rest.ApiException: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json', 'Date': 'Wed, 08 Jan 2020 07:51:47 GMT', 'Content-Length': '252'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"namespaces \"14ba508a-dabc-453e-a3a3-39556e25c0f7\" not found","reason":"NotFound","details":{"name":"14ba508a-dabc-453e-a3a3-39556e25c0f7","kind":"namespaces"},"code":404}

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant