ForbiddenError: 403
Reason: Forbidden
HTTP response headers: HTTPHeaderDict({'Audit-Id': 'fef1982b-a52e-41e1-86e2-4ea40f4d12d6', 'Cache-Control': 'no-store', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'Date': 'Sat, 16 Mar 2019 07:56:56 GMT', 'Content-Length': '477'})
HTTP response body: b'{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"jobs.batch is forbidden: User \\"system:serviceaccount:thoth-frontend-stage:cleanup-job-thoth-middletier-stage\\" cannot list jobs.batch in the namespace \\"thoth-backend-stage\\": User \\"system:serviceaccount:thoth-frontend-stage:cleanup-job-thoth-middletier-stage\\" cannot list jobs.batch in project \\"thoth-backend-stage\\"","reason":"Forbidden","details":{"group":"batch","kind":"jobs"},"code":403}\n'
Original traceback:
File "/opt/app-root/lib/python3.6/site-packages/openshift/dynamic/client.py", line 71, in inner
resp = func(self, resource, *args, **kwargs)
File "/opt/app-root/lib/python3.6/site-packages/openshift/...
(3 additional frame(s) were not displayed)
...
File "click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "app.py", line 177, in cli
_do_cleanup(cleanup_namespace)
File "app.py", line 87, in _do_cleanup
for item in resources.get(label_selector=_CLEANUP_LABEL_SELECTOR, namespace=cleanup_namespace).items:
File "openshift/dynamic/client.py", line 73, in inner
raise api_exception(e)
ApiException: (403)
Reason: Forbidden
HTTP response headers: HTTPHeaderDict({'Audit-Id': 'fef1982b-a52e-41e1-86e2-4ea40f4d12d6', 'Cache-Control': 'no-store', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'Date': 'Sat, 16 Mar 2019 07:56:56 GMT', 'Content-Length': '477'})
HTTP response body: b'{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"jobs.batch is forbidden: User \\"system:serviceaccount:thoth-frontend-stage:cleanup-job-thoth-middletier-stage\\" cannot list jobs.batch in the namespace \\"thoth-backend-stage\\": User \\"system:serviceaccount:thoth-frontend-stage:cleanup-job-thoth-middletier-stage\\" cannot list jobs.batch in project \\"thoth-backend-stage\\"","reason":"Forbidden","details":{"group":"batch","kind":"jobs"},"code":403}\n'
(3 additional frame(s) were not displayed)
...
File "kubernetes/client/api_client.py", line 321, in call_api
_return_http_data_only, collection_formats, _preload_content, _request_timeout)
File "kubernetes/client/api_client.py", line 155, in __call_api
_request_timeout=_request_timeout)
File "kubernetes/client/api_client.py", line 342, in request
headers=headers)
File "kubernetes/client/rest.py", line 231, in GET
query_params=query_params)
File "kubernetes/client/rest.py", line 222, in request
raise ApiException(http_resp=r)