Giter VIP home page Giter VIP logo

amun-api's People

Contributors

bissenbay avatar dependabot[bot] avatar fridex avatar goern avatar harshad16 avatar khebhut[bot] avatar kpostoffice avatar leonjia0112 avatar mayacostantini avatar rs22743 avatar saisankargochhayat avatar sesheta avatar vannten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amun-api's Issues

Add option to specify resource and hardware requirements

As an Amun user, I would like to have an ability to set requirements for the runtime and build time environment via JSON exposed on the /inspect endpoint. For this purpose we should introduce separate configuration options in the JSON supplied on endpoint:

{
  "base": "fedora:28",
  "build": {
    "requests": {
     "cpu": {...},
     "memory": {...}
    }
  },
  "run": {
    "requests": {
     "cpu": {...},
     "memory": {...}
    }
  }
} 

BadRequestError: 400

Sentry Issue: THOTH-EG

BadRequestError: 400
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Audit-Id': 'e53ed99b-b265-4e8f-b6c4-fdd677fa3512', 'Cache-Control': 'no-store', 'Content-Type': 'application/json', 'Date': 'Tue, 06 Nov 2018 05:52:42 GMT', 'Content-Length': '272'})
HTTP response body: b'{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"BuildConfig in version \\"v1\\" cannot be handled as a BuildConfig: quantities must match the regular expression \'^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$\'","reason":"BadRequest","code":400}\n'
Original traceback: 
  File "/opt/app-root/lib/python3.6/site-packages/openshift/dynamic/client.py", line 31, in inner
    resp = func(self, resource, *args, **kwargs)

  File "/opt/app-root/lib/python3.6/site-packages/openshift/dynamic/client.py", line 161, in create
    return self.request('post', path, body=body, **kwargs)

  File "/opt/app-root/lib/python3.6/site-packages/openshift/dynamic/client.py", line 255, in request
    _return_http_data_only=params.get('_return_http_data_only', True)

  File "/opt/app-root/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 "/opt/app-root/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 155, in __call_api
    _request_timeout=_request_timeout)

  File "/opt/app-root/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 364, in request
    body=body)

  File "/opt/app-root/lib/python3.6/site-packages/kubernetes/client/rest.py", line 266, in POST
    body=body)

  File "/opt/app-root/lib/python3.6/site-packages/kubernetes/client/rest.py", line 222, in request
    raise ApiException(http_resp=r)

(10 additional frame(s) were not displayed)
...
  File "connexion/decorators/decorator.py", line 44, in wrapper
    response = function(request)
  File "connexion/decorators/parameter.py", line 126, in wrapper
    return function(**kwargs)
  File "amun/api_v1.py", line 82, in post_inspection
    create_inspect_buildconfig(_OPENSHIFT, inspection_id, dockerfile, specification)
  File "amun/core.py", line 92, in create_inspect_buildconfig
    namespace=Configuration.AMUN_INSPECTION_NAMESPACE
  File "openshift/dynamic/client.py", line 33, in inner
    raise api_exception(e)

Exception on /api/v1/inspect [POST]

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Sentry Issue: THOTH-1J1B

JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  File "amun/api_v1.py", line 195, in get_inspection_job_log
    log = json.loads(log)
  File "__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None

Failed to load inspection job log for "inspection-5550c60e395b08e8"

Missing parameters for inspection jobs, raised by workload operator

When scheduling inspections, I got following errors:

2019-06-03 09:16:39,936 [1] ERROR    thoth.common.openshift:1393: Failed to process template: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Template.template.openshift.io \"amun-inspection-job-with-cpu\" is invalid: [template.parameters[0]: Required value: template.parameters[0]: parameter THOTH_REGISTRY is required and must be specified, template.parameters[1]: Required value: template.parameters[1]: parameter THOTH_INFRA_NAMESPACE is required and must be specified]","reason":"Invalid","details":{"name":"amun-inspection-job-with-cpu","group":"template.openshift.io","kind":"Template","causes":[{"reason":"FieldValueRequired","message":"Required value: template.parameters[0]: parameter THOTH_REGISTRY is required and must be specified","field":"template.parameters[0]"},{"reason":"FieldValueRequired","message":"Required value: template.parameters[1]: parameter THOTH_INFRA_NAMESPACE is required and must be specified","field":"template.parameters[1]"}]},"code":422}
--
  | 2019-06-03 09:16:40,313 [1] ERROR    thoth.workload_operator:190: Failed run requested workload for event ResourceInstance[ConfigMap]:
  | apiVersion: v1
  | data:
  | run_method_name: run_inspection_job
  | run_method_parameters: '{"memory_requests": "4Gi", "cpu_requests": "2", "use_hw_template":
  | true, "parameters": {"CPU_FAMILY": 6, "CPU_MODEL": 94, "PHYSICAL_CPUS": 32, "PROCESSOR":
  | "Intel Core Processor (Skylake, IBRS)", "AMUN_INSPECTION_ID": "inspection-36446b52ac871852"}}'
  | template_method_name: get_inspection_job_template
  | template_method_parameters: '{"use_hw_template": true, "cpu_requests": "2", "memory_requests":
  | "4Gi"}'
  | kind: ConfigMap
  | metadata:
  | creationTimestamp: '2019-06-03T09:08:41Z'
  | labels:
  | app: thoth
  | component: amun-inspection
  | operator: workload
  | name: inspection-36446b52ac871852
  | namespace: thoth-test-core
  | resourceVersion: '100406497'
  | selfLink: /api/v1/namespaces/thoth-test-core/configmaps/inspection-36446b52ac871852
  | uid: 2e7ca2aa-85df-11e9-8ea5-fa163eda9ab7
  | : 422 Client Error: Unprocessable Entity for url: https://172.56.0.1:443/apis/template.openshift.io/v1/namespaces/thoth-test-core/processedtemplates
  | Traceback (most recent call last):
  | File "app.py", line 188, in cli
  | method_result = method(**method_parameters, template=template)
  | File "/opt/app-root/lib/python3.6/site-packages/thoth/common/openshift.py", line 629, in run_inspection_job
  | template = self.oc_process(self.amun_inspection_namespace, template)
  | File "/opt/app-root/lib/python3.6/site-packages/thoth/common/openshift.py", line 1391, in oc_process
  | response.raise_for_status()
  | File "/opt/app-root/lib/python3.6/site-packages/requests/models.py", line 940, in raise_for_status
  | raise HTTPError(http_error_msg, response=self)

There are missing following parameters which should be propagated to the template:

  • THOTH_REGISTRY
  • THOTH_INFRA_NAMESPACE

Failed to update dependencies to their latest version

Automatic dependency update failed for the current master with SHA 600cc43.

The automatic dependency management cannot continue. Please fix errors reported bellow.

Command
  $ pipenv update --dev
Standard output
Running $ pipenv lock then $ pipenv sync.

Standard error
Creating a virtualenv for this project...
Pipfile: /tmp/tmpbo8n6z4b/Pipfile
Using /usr/bin/python3.6m (3.6.6) to create virtualenv...
Running virtualenv with interpreter /usr/bin/python3.6m
Using base prefix '/usr'
New python executable in /tmp/tmpbo8n6z4b/.venv/bin/python3.6m
Also creating executable in /tmp/tmpbo8n6z4b/.venv/bin/python
Installing setuptools, pip, wheel...done.

Virtualenv location: /tmp/tmpbo8n6z4b/.venv
Locking [dev-packages] dependencies...
env/utils.py", line 402, in resolve_deps
    req_dir=req_dir
  File "/usr/local/lib/python3.6/site-packages/pipenv/utils.py", line 250, in actually_resolve_deps
    req = Requirement.from_line(dep)
  File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 704, in from_line
    line, extras = _strip_extras(line)
TypeError: 'module' object is not callable


Environment details

Kebechet version: 1.0.0
Python version: 3.6.6
Platform: Linux-3.10.0-862.3.3.el7.x86_64-x86_64-with-fedora-28-Twenty_Eight
pipenv version: pipenv, version 2018.7.1


Dependency graph
Unable to obtain dependency graph:

ERROR:  Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/pipdeptree.py", line 17, in <module>
    from pip._internal import get_installed_distributions
ImportError: cannot import name 'get_installed_distributions'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/pipdeptree.py", line 20, in <module>
    from pip import get_installed_distributions, FrozenRequirement
ImportError: cannot import name 'get_installed_distributions'


Notes

For more information, see Pipfile and Pipfile.lock.

Once this issue is resolved, the issue will be automatically closed by bot.

Regression on inspect endoint in stage

As reported by @pacospace:

2020-01-06 11:03:43,462 [28] ERROR    amun.entrypoint:1891: Exception on /api/v1/inspect [POST]
Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
  File "/opt/app-root/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/opt/app-root/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/opt/app-root/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/opt/app-root/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/opt/app-root/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/app-root/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/app-root/lib/python3.6/site-packages/connexion/decorators/decorator.py", line 48, in wrapper
    response = function(request)
  File "/opt/app-root/lib/python3.6/site-packages/connexion/decorators/uri_parsing.py", line 172, in wrapper
    response = function(request)
  File "/opt/app-root/lib/python3.6/site-packages/connexion/decorators/validation.py", line 184, in wrapper
    response = function(request)
  File "/opt/app-root/lib/python3.6/site-packages/connexion/decorators/parameter.py", line 121, in wrapper
    return function(**kwargs)
  File "/opt/app-root/src/amun/api_v1.py", line 132, in post_inspection
    _OPENSHIFT.create_inspection_imagestream(inspection_id)
  File "/opt/app-root/lib/python3.6/site-packages/thoth/common/openshift.py", line 569, in create_inspection_imagestream
    "template=amun-inspection-imagestream", self.amun_infra_namespace
  File "/opt/app-root/lib/python3.6/site-packages/thoth/common/openshift.py", line 505, in _get_template
    self._raise_on_invalid_response_size(response)
  File "/opt/app-root/lib/python3.6/site-packages/thoth/common/openshift.py", line 1964, in _raise_on_invalid_response_size
    f"Application misconfiguration - number of templates available in the infra namespace "
RuntimeError: Application misconfiguration - number of templates available in the infra namespace None is 0, should be 1.```

namespace None is searched for template?!

Sentry Issue: THOTH-3YN

RuntimeError: Application misconfiguration - number of templates available in the infra namespace None is 0, should be 1.
(9 additional frame(s) were not displayed)
...
  File "connexion/decorators/validation.py", line 347, in wrapper
    return function(request)
  File "connexion/decorators/parameter.py", line 126, in wrapper
    return function(**kwargs)
  File "amun/api_v1.py", line 128, in post_inspection
    _OPENSHIFT.create_inspection_imagestream(inspection_id)
  File "/opt/app-root/lib/python3.6/site-packages/thoth/common/openshift.py", line 492, in create_inspection_imagestream
    self._raise_on_invalid_response_size(response)
  File "/opt/app-root/lib/python3.6/site-packages/thoth/common/openshift.py", line 1394, in _raise_on_invalid_response_size
    f"Application misconfiguration - number of templates available in the infra namespace "

Exception on /api/v1/inspect [POST]

Failed to update dependencies to their latest version

Automatic dependency update failed for the current master with SHA 137bcd6.

The automatic dependency management cannot continue. Please fix errors reported bellow.

Command
  $ pipenv update --dev
Standard output
Running $ pipenv lock then $ pipenv sync.

Standard error
Creating a virtualenv for this project…
Pipfile: /tmp/tmpfuhbfari/Pipfile
Using /usr/bin/python3.6 (3.6.6) to create virtualenv…
Running virtualenv with interpreter /usr/bin/python3.6
Using base prefix '/usr'
New python executable in /tmp/tmpfuhbfari/.venv/bin/python3.6
Also creating executable in /tmp/tmpfuhbfari/.venv/bin/python
Installing setuptools, pip, wheel...done.

Virtualenv location: /tmp/tmpfuhbfari/.venv
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
python3.6/site-packages/pipenv/utils.py", line 421, in resolve_deps
    req_dir=req_dir,
  File "/usr/local/lib/python3.6/site-packages/pipenv/utils.py", line 302, in actually_resolve_deps
    results = resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 102, in resolve
    has_changed, best_matches = self._resolve_one_round()
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 206, in _resolve_one_round
    for dep in self._iter_dependencies(best_match):
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 301, in _iter_dependencies
    dependencies = self.repository.get_dependencies(ireq)
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 235, in get_dependencies
    legacy_results = self.get_legacy_dependencies(ireq)
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 416, in get_legacy_dependencies
    results, ireq = self.resolve_reqs(download_dir, ireq, wheel_cache)
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 296, in resolve_reqs
    results = resolver._resolve_one(reqset, ireq)
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/resolve.py", line 263, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/resolve.py", line 213, in _get_abstract_dist_for
    self.require_hashes
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 279, in prepare_linked_requirement
    progress_bar=self.progress_bar
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/download.py", line 837, in unpack_url
    progress_bar=progress_bar
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/download.py", line 674, in unpack_http_url
    progress_bar)
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/download.py", line 869, in _download_http_url
    stream=True,
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/requests/sessions.py", line 525, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/notpip/_internal/download.py", line 397, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/requests/sessions.py", line 512, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/requests/sessions.py", line 622, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/cachecontrol/adapter.py", line 53, in send
    resp = super(CacheControlAdapter, self).send(request, **kw)
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/notpip/_vendor/requests/adapters.py", line 513, in send
    raise ConnectionError(e, request=request)
pipenv.patched.notpip._vendor.requests.exceptions.ConnectionError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/a2/12/ced7105d2de62fa7c8fb5fce92cc4ce66b57c95fb875e9318dba7f8c5db0/toml-0.10.0-py2.py3-none-any.whl (Caused by NewConnectionError('<pipenv.patched.notpip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f0ce71b0860>: Failed to establish a new connection: [Errno -2] Name or service not known',))


Environment details

Kebechet version: 1.0.0
Python version: 3.6.6
Platform: Linux-3.10.0-862.9.1.el7.x86_64-x86_64-with-fedora-28-Twenty_Eight
pipenv version: pipenv, version 2018.10.9


Dependency graph
Unable to obtain dependency graph:

  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a5b6b7f60>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /packages/a2/12/ced7105d2de62fa7c8fb5fce92cc4ce66b57c95fb875e9318dba7f8c5db0/toml-0.10.0-py2.py3-none-any.whl
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a5b6b7e48>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /packages/a2/12/ced7105d2de62fa7c8fb5fce92cc4ce66b57c95fb875e9318dba7f8c5db0/toml-0.10.0-py2.py3-none-any.whl
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a5ebf6f60>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /packages/a2/12/ced7105d2de62fa7c8fb5fce92cc4ce66b57c95fb875e9318dba7f8c5db0/toml-0.10.0-py2.py3-none-any.whl
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a5b6c2240>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /packages/a2/12/ced7105d2de62fa7c8fb5fce92cc4ce66b57c95fb875e9318dba7f8c5db0/toml-0.10.0-py2.py3-none-any.whl
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a5b6c22b0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /packages/a2/12/ced7105d2de62fa7c8fb5fce92cc4ce66b57c95fb875e9318dba7f8c5db0/toml-0.10.0-py2.py3-none-any.whl
Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/a2/12/ced7105d2de62fa7c8fb5fce92cc4ce66b57c95fb875e9318dba7f8c5db0/toml-0.10.0-py2.py3-none-any.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9a5b6c24a8>: Failed to establish a new connection: [Errno -2] Name or service not known',))



Notes

For more information, see Pipfile and Pipfile.lock.

Once this issue is resolved, the issue will be automatically closed by bot.

split on None?

Describe the bug


[2018-10-30 11:33:26 +0000] [29] [ERROR] Exception in worker process
--
  | Traceback (most recent call last):
  | File "/opt/app-root/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
  | worker.init_process()
  | File "/opt/app-root/lib/python3.6/site-packages/gunicorn/workers/base.py", line 129, in init_process
  | self.load_wsgi()
  | File "/opt/app-root/lib/python3.6/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
  | self.wsgi = self.app.wsgi()
  | File "/opt/app-root/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
  | self.callable = self.load()
  | File "/opt/app-root/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
  | return self.load_wsgiapp()
  | File "/opt/app-root/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
  | return util.import_app(self.app_uri)
  | File "/opt/app-root/lib/python3.6/site-packages/gunicorn/util.py", line 350, in import_app
  | __import__(module)
  | File "/opt/app-root/src/amun/entrypoint.py", line 35, in <module>
  | init_logging(logging_env_var_start='AMUN_LOG_')
  | File "/opt/app-root/lib/python3.6/site-packages/thoth/common/logging.py", line 96, in init_logging
  | _SENTRY_DSN.rsplit('@', maxsplit=1)[1])
  | IndexError: list index out of range
  | [2018-10-30 11:33:26 +0000] [29] [INFO] Worker exiting (pid: 29)

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Create roles for inspector service account

Is your feature request related to a problem? Please describe.

As of now, we assign cluster admin to the inspection service account. It would be better to create a fine-granted access control for this service account.

Describe the solution you'd like

Have roles defined on deployment (from top of my head, some might be missing):

  • create jobs (later CRDs) in inspection namespace
  • create builds (later CRDs) in inspection namespace
  • create configmap (later CRDs) in inspection namespace
  • list templates in infra namespace

Describe alternatives you've considered

Stick with the current solution - having a edit cluster role.

Additional context

https://kubernetes.io/docs/reference/access-authn-authz/rbac/

RuntimeError: Application misconfiguration - number of templates available in the infra namespace None is 2, sh...

Sentry Issue: THOTH-1M0M

RuntimeError: Application misconfiguration - number of templates available in the infra namespace None is 2, should be 1.
(9 additional frame(s) were not displayed)
...
  File "connexion/decorators/parameter.py", line 126, in wrapper
    return function(**kwargs)
  File "amun/api_v1.py", line 132, in post_inspection
    _OPENSHIFT.create_inspection_imagestream(inspection_id)
  File "/opt/app-root/lib/python3.6/site-packages/thoth/common/openshift.py", line 557, in create_inspection_imagestream
    "template=amun-inspection-imagestream", self.amun_infra_namespace
  File "/opt/app-root/lib/python3.6/site-packages/thoth/common/openshift.py", line 494, in _get_template
    self._raise_on_invalid_response_size(response)
  File "/opt/app-root/lib/python3.6/site-packages/thoth/common/openshift.py", line 1898, in _raise_on_invalid_response_size
    f"Application misconfiguration - number of templates available in the infra namespace "

Exception on /api/v1/inspect [POST]

Failed to update dependencies to their latest version

Automatic dependency update failed for the current master with SHA d0a4268.

The automatic dependency management cannot continue. Please fix errors reported bellow.

Command
  $ pipenv update --dev
Standard output
Running $ pipenv lock then $ pipenv sync.
Installing dependencies from Pipfile.lock (511318)…
Installing initially failed dependencies…

Standard error
Creating a virtualenv for this project…
Pipfile: /tmp/tmpil9gux2b/Pipfile
Using /usr/bin/python3 (3.6.8) to create virtualenv…
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
  No LICENSE.txt / LICENSE found in source
New python executable in /tmp/tmpil9gux2b/.venv/bin/python3
Also creating executable in /tmp/tmpil9gux2b/.venv/bin/python
Installing setuptools, pip, wheel...
done.

Virtualenv location: /tmp/tmpil9gux2b/.venv
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (511318)!
An error occurred while installing cryptography==2.8 --hash=sha256:3cda1f0ed8747339bbdf71b9f38ca74c7b592f24f65cdb3ab3765e4b02871651! Will try again.
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 2611, in do_sync
[pipenv.exceptions.InstallError]:       system=system,
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]:       pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 859, in do_install_dependencies
[pipenv.exceptions.InstallError]:       retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 763, in batch_install
[pipenv.exceptions.InstallError]:       _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry)
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: ['Collecting cryptography==2.8', '  Using cached https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz', '  Installing build dependencies: started', "  Installing build dependencies: finished with status 'done'", '  Getting requirements to build wheel: started', "  Getting requirements to build wheel: finished with status 'done'", '    Preparing wheel metadata: started', "    Preparing wheel metadata: finished with status 'done'", 'Building wheels for collected packages: cryptography', '  Building wheel for cryptography (PEP 517): started', "  Building wheel for cryptography (PEP 517): finished with status 'error'", '  Running setup.py clean for cryptography', 'Failed to build cryptography']
[pipenv.exceptions.InstallError]: ['ERROR: Command errored out with exit status 1:', '   command: /tmp/tmpil9gux2b/.venv/bin/python3 /tmp/tmpil9gux2b/.venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp0pgipjpd', '       cwd: /tmp/pip-install-fwvm_x34/cryptography', '  Complete output (139 lines):', '  running bdist_wheel', '  running build', '  running build_py', '  creating build', '  creating build/lib.linux-x86_64-3.6', '  creating build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/__about__.py -> build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/__init__.py -> build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/fernet.py -> build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/utils.py -> build/lib.linux-x86_64-3.6/cryptography', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat', '  copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat', '  copying src/cryptography/hazmat/_der.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat', '  copying src/cryptography/hazmat/_oid.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat', '  creating build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/ocsp.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/backends', '  copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends', '  copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings', '  copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl', '  copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl', '  copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl', '  copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  running egg_info', '  writing src/cryptography.egg-info/PKG-INFO', '  writing dependency_links to src/cryptography.egg-info/dependency_links.txt', '  writing requirements to src/cryptography.egg-info/requires.txt', '  writing top-level names to src/cryptography.egg-info/top_level.txt', "  reading manifest file 'src/cryptography.egg-info/SOURCES.txt'", "  reading manifest template 'MANIFEST.in'", "  no previously-included directories found matching 'docs/_build'", "  warning: no previously-included files found matching 'vectors'", "  warning: no previously-included files matching '*' found under directory 'vectors'", "  warning: no previously-included files found matching 'azure-pipelines.yml'", "  warning: no previously-included files found matching '.azure-pipelines'", "  warning: no previously-included files found matching '.travis.yml'", "  warning: no previously-included files found matching '.travis'", "  warning: no previously-included files matching '*' found under directory '.azure-pipelines'", "  warning: no previously-included files matching '*' found under directory '.travis'", "  warning: no previously-included files found matching 'release.py'", "  warning: no previously-included files found matching '.coveragerc'", "  warning: no previously-included files found matching 'codecov.yml'", "  warning: no previously-included files found matching 'dev-requirements.txt'", "  warning: no previously-included files found matching 'rtd-requirements.txt'", "  warning: no previously-included files found matching 'tox.ini'", "  writing manifest file 'src/cryptography.egg-info/SOURCES.txt'", '  warning: build_py: byte-compiling is disabled, skipping.', '  ', '  running build_ext', "  generating cffi module 'build/temp.linux-x86_64-3.6/_padding.c'", '  creating build/temp.linux-x86_64-3.6', "  generating cffi module 'build/temp.linux-x86_64-3.6/_constant_time.c'", "  generating cffi module 'build/temp.linux-x86_64-3.6/_openssl.c'", "  building '_openssl' extension", '  creating build/temp.linux-x86_64-3.6/build', '  creating build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6', '  gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c build/temp.linux-x86_64-3.6/_openssl.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/_openssl.o -Wconversion -Wno-error=sign-conversion', '  build/temp.linux-x86_64-3.6/_openssl.c:498:10: fatal error: openssl/opensslv.h: No such file or directory', '   #include <openssl/opensslv.h>', '            ^~~~~~~~~~~~~~~~~~~~', '  compilation terminated.', "  error: command 'gcc' failed with exit status 1", '  ----------------------------------------', '  ERROR: Failed building wheel for cryptography', 'ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly']
ERROR: ERROR: Package installation failed...

Environment details

Kebechet version: 1.0.0
Python version: 3.6.8
Platform: Linux-3.10.0-957.21.2.el7.x86_64-x86_64-with-fedora-28-Twenty_Eight
pipenv version: pipenv, version 2018.11.26


Dependency graph
Unable to obtain dependency graph:

An error occurred while installing thoth-common! Will try again.
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 1874, in do_install
[pipenv.exceptions.InstallError]:       keep_outdated=keep_outdated
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]:       pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 859, in do_install_dependencies
[pipenv.exceptions.InstallError]:       retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 763, in batch_install
[pipenv.exceptions.InstallError]:       _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry)
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: ['Requirement already up-to-date: thoth-common in ./.venv/lib/python3.6/site-packages (0.9.14)', 'Requirement already satisfied, skipping upgrade: daiquiri in ./.venv/lib/python3.6/site-packages (from thoth-common) (1.6.0)', 'Requirement already satisfied, skipping upgrade: pyyaml in ./.venv/lib/python3.6/site-packages (from thoth-common) (5.1.2)', 'Requirement already satisfied, skipping upgrade: attrs in ./.venv/lib/python3.6/site-packages (from thoth-common) (19.3.0)', 'Requirement already satisfied, skipping upgrade: rfc5424-logging-handler in ./.venv/lib/python3.6/site-packages (from thoth-common) (1.4.3)', 'Requirement already satisfied, skipping upgrade: sentry-sdk in ./.venv/lib/python3.6/site-packages (from thoth-common) (0.12.3)', 'Requirement already satisfied, skipping upgrade: openshift==0.8.0 in ./.venv/lib/python3.6/site-packages (from thoth-common) (0.8.0)', 'Requirement already satisfied, skipping upgrade: requests in ./.venv/lib/python3.6/site-packages (from thoth-common) (2.22.0)', 'Requirement already satisfied, skipping upgrade: pytz in ./.venv/lib/python3.6/site-packages (from rfc5424-logging-handler->thoth-common) (2019.3)', 'Requirement already satisfied, skipping upgrade: tzlocal in ./.venv/lib/python3.6/site-packages (from rfc5424-logging-handler->thoth-common) (2.0.0)', 'Requirement already satisfied, skipping upgrade: certifi in ./.venv/lib/python3.6/site-packages (from sentry-sdk->thoth-common) (2019.9.11)', 'Requirement already satisfied, skipping upgrade: urllib3>=1.9 in ./.venv/lib/python3.6/site-packages (from sentry-sdk->thoth-common) (1.25.6)', 'Requirement already satisfied, skipping upgrade: ruamel.yaml>=0.15 in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0->thoth-common) (0.16.5)', 'Requirement already satisfied, skipping upgrade: dictdiffer in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0->thoth-common) (0.8.0)', 'Requirement already satisfied, skipping upgrade: jinja2 in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0->thoth-common) (2.10.3)', 'Requirement already satisfied, skipping upgrade: python-string-utils in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0->thoth-common) (0.6.0)', 'Requirement already satisfied, skipping upgrade: six in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0->thoth-common) (1.12.0)', 'Requirement already satisfied, skipping upgrade: kubernetes<9.0.0,>=8.0.0 in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0->thoth-common) (8.0.2)', 'Requirement already satisfied, skipping upgrade: idna<2.9,>=2.5 in ./.venv/lib/python3.6/site-packages (from requests->thoth-common) (2.8)', 'Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in ./.venv/lib/python3.6/site-packages (from requests->thoth-common) (3.0.4)', 'Requirement already satisfied, skipping upgrade: ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.8" in ./.venv/lib/python3.6/site-packages (from ruamel.yaml>=0.15->openshift==0.8.0->thoth-common) (0.2.0)', 'Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in ./.venv/lib/python3.6/site-packages (from jinja2->openshift==0.8.0->thoth-common) (1.1.1)', 'Requirement already satisfied, skipping upgrade: websocket-client!=0.40.0,!=0.41.*,!=0.42.*,>=0.32.0 in ./.venv/lib/python3.6/site-packages (from kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (0.56.0)', 'Requirement already satisfied, skipping upgrade: python-dateutil>=2.5.3 in ./.venv/lib/python3.6/site-packages (from kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (2.8.0)', 'Requirement already satisfied, skipping upgrade: requests-oauthlib in ./.venv/lib/python3.6/site-packages (from kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (1.2.0)', 'Requirement already satisfied, skipping upgrade: google-auth>=1.0.1 in ./.venv/lib/python3.6/site-packages (from kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (1.6.3)', 'Requirement already satisfied, skipping upgrade: setuptools>=21.0.0 in ./.venv/lib/python3.6/site-packages (from kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (41.4.0)', 'Requirement already satisfied, skipping upgrade: adal>=1.0.2 in ./.venv/lib/python3.6/site-packages (from kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (1.2.2)', 'Requirement already satisfied, skipping upgrade: oauthlib>=3.0.0 in ./.venv/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (3.1.0)', 'Requirement already satisfied, skipping upgrade: pyasn1-modules>=0.2.1 in ./.venv/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (0.2.7)', 'Requirement already satisfied, skipping upgrade: cachetools>=2.0.0 in ./.venv/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (3.1.1)', 'Requirement already satisfied, skipping upgrade: rsa>=3.1.4 in ./.venv/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (4.0)', 'Requirement already satisfied, skipping upgrade: PyJWT>=1.0.0 in ./.venv/lib/python3.6/site-packages (from adal>=1.0.2->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (1.7.1)', 'Collecting cryptography>=1.1.0', '  Using cached https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz', '  Installing build dependencies: started', "  Installing build dependencies: finished with status 'done'", '  Getting requirements to build wheel: started', "  Getting requirements to build wheel: finished with status 'done'", '    Preparing wheel metadata: started', "    Preparing wheel metadata: finished with status 'done'", 'Requirement already satisfied, skipping upgrade: pyasn1<0.5.0,>=0.4.6 in ./.venv/lib/python3.6/site-packages (from pyasn1-modules>=0.2.1->google-auth>=1.0.1->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (0.4.7)', 'Requirement already satisfied, skipping upgrade: cffi!=1.11.3,>=1.8 in ./.venv/lib/python3.6/site-packages (from cryptography>=1.1.0->adal>=1.0.2->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (1.13.0)', 'Requirement already satisfied, skipping upgrade: pycparser in ./.venv/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.8->cryptography>=1.1.0->adal>=1.0.2->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (2.19)', 'Building wheels for collected packages: cryptography', '  Building wheel for cryptography (PEP 517): started', "  Building wheel for cryptography (PEP 517): finished with status 'error'", '  Running setup.py clean for cryptography', 'Failed to build cryptography']
[pipenv.exceptions.InstallError]: ['ERROR: Command errored out with exit status 1:', '   command: /tmp/tmpil9gux2b/.venv/bin/python3 /tmp/tmpil9gux2b/.venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpn98v5ros', '       cwd: /tmp/pip-install-yrtimb9v/cryptography', '  Complete output (139 lines):', '  running bdist_wheel', '  running build', '  running build_py', '  creating build', '  creating build/lib.linux-x86_64-3.6', '  creating build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/__about__.py -> build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/__init__.py -> build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/fernet.py -> build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/utils.py -> build/lib.linux-x86_64-3.6/cryptography', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat', '  copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat', '  copying src/cryptography/hazmat/_der.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat', '  copying src/cryptography/hazmat/_oid.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat', '  creating build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/ocsp.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/backends', '  copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends', '  copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings', '  copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl', '  copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl', '  copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl', '  copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  running egg_info', '  writing src/cryptography.egg-info/PKG-INFO', '  writing dependency_links to src/cryptography.egg-info/dependency_links.txt', '  writing requirements to src/cryptography.egg-info/requires.txt', '  writing top-level names to src/cryptography.egg-info/top_level.txt', "  reading manifest file 'src/cryptography.egg-info/SOURCES.txt'", "  reading manifest template 'MANIFEST.in'", "  no previously-included directories found matching 'docs/_build'", "  warning: no previously-included files found matching 'vectors'", "  warning: no previously-included files matching '*' found under directory 'vectors'", "  warning: no previously-included files found matching 'azure-pipelines.yml'", "  warning: no previously-included files found matching '.azure-pipelines'", "  warning: no previously-included files found matching '.travis.yml'", "  warning: no previously-included files found matching '.travis'", "  warning: no previously-included files matching '*' found under directory '.azure-pipelines'", "  warning: no previously-included files matching '*' found under directory '.travis'", "  warning: no previously-included files found matching 'release.py'", "  warning: no previously-included files found matching '.coveragerc'", "  warning: no previously-included files found matching 'codecov.yml'", "  warning: no previously-included files found matching 'dev-requirements.txt'", "  warning: no previously-included files found matching 'rtd-requirements.txt'", "  warning: no previously-included files found matching 'tox.ini'", "  writing manifest file 'src/cryptography.egg-info/SOURCES.txt'", '  warning: build_py: byte-compiling is disabled, skipping.', '  ', '  running build_ext', "  generating cffi module 'build/temp.linux-x86_64-3.6/_padding.c'", '  creating build/temp.linux-x86_64-3.6', "  generating cffi module 'build/temp.linux-x86_64-3.6/_constant_time.c'", "  generating cffi module 'build/temp.linux-x86_64-3.6/_openssl.c'", "  building '_openssl' extension", '  creating build/temp.linux-x86_64-3.6/build', '  creating build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6', '  gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c build/temp.linux-x86_64-3.6/_openssl.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/_openssl.o -Wconversion -Wno-error=sign-conversion', '  build/temp.linux-x86_64-3.6/_openssl.c:498:10: fatal error: openssl/opensslv.h: No such file or directory', '   #include <openssl/opensslv.h>', '            ^~~~~~~~~~~~~~~~~~~~', '  compilation terminated.', "  error: command 'gcc' failed with exit status 1", '  ----------------------------------------', '  ERROR: Failed building wheel for cryptography', 'ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly']
ERROR: ERROR: Package installation failed...

Notes

For more information, see Pipfile and Pipfile.lock.

Once this issue is resolved, the issue will be automatically closed by bot.

Add option to specify number of job runs on API

As we will use Amun for benchmarks where we will run jobs multiple times, it would be nice to adjust Amun API to specify number of jobs that should be run on user request.

An example - benchmark this TensorFlow stack on the given hardware 3 times. The API will respect this and schedule 3 jobs for this purpose.

There needs to be adjusted:

  • Introduce a parameter job_count on user API request.
  • Adjust swagger/openAPI specification to accept parameter job_count
  • The result of the /inspect endpoint will return a list of job ids that are scheduled.
  • Runned jobs will have set label to inspection_id so that these jobs can easily queried

Add hardware requirements for builds and inspection

I, as an Amun user, would like to request specific hardware for builds and the actual inspection runs (CUDA on a node, specific CPU model, ...).

This should be provided as an input on API, the input should respect configuration (mount this configuration (JSON mapping HW to node selectors?) into a container from configmap).

If user does not specify hardware requirements, build/inspection pods are placed on any available node in the cluster.

Automatically gather relevant information about available hardware

I, as Amun user, would like to have access to hardware information where the given pod was run. This should be leveraged by Amun in a structured and standardized format.

We can run an initcontainer that simply gathers this information before the inspection pod is run and places it into a JSON file on specified path - e.g. /home/amun/hw_info.json). This file should be always available and a user script given on API can automatically gather this file just by reading it.

Add option to specify build and runtime environment variables

As an Amun user, I would like to have an ability to set environment variables that get injected into container on build time as well as environment variables that get injected on runtime. For this purpose we should introduce a separate configuration option in the JSON supplied on endpoint:

{
  "base": "fedora:28",
  "build": {
     "env": [
      {"name": "FOO", "value": "BAR"}
    ]
  },
  "run": {
     "env": [
      {"name": "BAZ", "value": "FOZ"}
    ]
  }
} 

Failed to update dependencies to their latest version

Automatic dependency update failed for the current master with SHA 6181aa9.

The automatic dependency management cannot continue. Please fix errors reported bellow.

Command
  $ pipenv update --dev
Standard output
Running $ pipenv lock then $ pipenv sync.
Installing dependencies from Pipfile.lock (6ee78e)…
Installing initially failed dependencies…

Standard error
Creating a virtualenv for this project…
Pipfile: /tmp/tmpd8sikhya/Pipfile
Using /usr/bin/python3 (3.6.8) to create virtualenv…
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
  No LICENSE.txt / LICENSE found in source
New python executable in /tmp/tmpd8sikhya/.venv/bin/python3
Also creating executable in /tmp/tmpd8sikhya/.venv/bin/python
Installing setuptools, pip, wheel...
done.

Virtualenv location: /tmp/tmpd8sikhya/.venv
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (6ee78e)!
An error occurred while installing cryptography==2.7 --hash=sha256:e6347742ac8f35ded4a46ff835c60e68c22a536a8ae5c4422966d06946b6d4c6! Will try again.
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 2611, in do_sync
[pipenv.exceptions.InstallError]:       system=system,
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]:       pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 859, in do_install_dependencies
[pipenv.exceptions.InstallError]:       retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 763, in batch_install
[pipenv.exceptions.InstallError]:       _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry)
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: ['Collecting cryptography==2.7 (from -r /tmp/pipenv-9aq3d8hm-requirements/pipenv-8vcpxzv2-requirement.txt (line 1))', '  Using cached https://files.pythonhosted.org/packages/c2/95/f43d02315f4ec074219c6e3124a87eba1d2d12196c2767fadfdc07a83884/cryptography-2.7.tar.gz', '  Installing build dependencies: started', "  Installing build dependencies: finished with status 'done'", '  Getting requirements to build wheel: started', "  Getting requirements to build wheel: finished with status 'done'", '    Preparing wheel metadata: started', "    Preparing wheel metadata: finished with status 'done'", 'Building wheels for collected packages: cryptography', '  Building wheel for cryptography (PEP 517): started', "  Building wheel for cryptography (PEP 517): finished with status 'error'", '  Running setup.py clean for cryptography', 'Failed to build cryptography']
[pipenv.exceptions.InstallError]: ['ERROR: Complete output from command /tmp/tmpd8sikhya/.venv/bin/python3 /tmp/tmpd8sikhya/.venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpfz9136b9:', '  ERROR: running bdist_wheel', '  running build', '  running build_py', '  creating build', '  creating build/lib.linux-x86_64-3.6', '  creating build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/__about__.py -> build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/__init__.py -> build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/fernet.py -> build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/utils.py -> build/lib.linux-x86_64-3.6/cryptography', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat', '  copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat', '  copying src/cryptography/hazmat/_oid.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat', '  creating build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/ocsp.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/backends', '  copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends', '  copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings', '  copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl', '  copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl', '  copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl', '  copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  running egg_info', '  writing src/cryptography.egg-info/PKG-INFO', '  writing dependency_links to src/cryptography.egg-info/dependency_links.txt', '  writing requirements to src/cryptography.egg-info/requires.txt', '  writing top-level names to src/cryptography.egg-info/top_level.txt', "  reading manifest file 'src/cryptography.egg-info/SOURCES.txt'", "  reading manifest template 'MANIFEST.in'", "  no previously-included directories found matching 'docs/_build'", "  warning: no previously-included files found matching 'vectors'", "  warning: no previously-included files matching '*' found under directory 'vectors'", "  warning: no previously-included files found matching 'azure-pipelines.yml'", "  warning: no previously-included files found matching '.azure-pipelines'", "  warning: no previously-included files found matching '.travis.yml'", "  warning: no previously-included files found matching '.travis'", "  warning: no previously-included files matching '*' found under directory '.azure-pipelines'", "  warning: no previously-included files matching '*' found under directory '.travis'", "  warning: no previously-included files found matching 'release.py'", "  warning: no previously-included files found matching '.coveragerc'", "  warning: no previously-included files found matching 'codecov.yml'", "  warning: no previously-included files found matching 'dev-requirements.txt'", "  warning: no previously-included files found matching 'rtd-requirements.txt'", "  warning: no previously-included files found matching 'tox.ini'", "  writing manifest file 'src/cryptography.egg-info/SOURCES.txt'", '  warning: build_py: byte-compiling is disabled, skipping.', '  ', '  running build_ext', "  generating cffi module 'build/temp.linux-x86_64-3.6/_padding.c'", '  creating build/temp.linux-x86_64-3.6', "  generating cffi module 'build/temp.linux-x86_64-3.6/_constant_time.c'", "  generating cffi module 'build/temp.linux-x86_64-3.6/_openssl.c'", "  building '_openssl' extension", '  creating build/temp.linux-x86_64-3.6/build', '  creating build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6', '  gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c build/temp.linux-x86_64-3.6/_openssl.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/_openssl.o -Wconversion -Wno-error=sign-conversion', '  build/temp.linux-x86_64-3.6/_openssl.c:498:10: fatal error: openssl/opensslv.h: No such file or directory', '   #include <openssl/opensslv.h>', '            ^~~~~~~~~~~~~~~~~~~~', '  compilation terminated.', "  error: command 'gcc' failed with exit status 1", '  ----------------------------------------', '  ERROR: Failed building wheel for cryptography', 'ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly']
ERROR: ERROR: Package installation failed...

Environment details

Kebechet version: 1.0.0
Python version: 3.6.8
Platform: Linux-3.10.0-957.5.1.el7.x86_64-x86_64-with-fedora-28-Twenty_Eight
pipenv version: pipenv, version 2018.11.26


Dependency graph
Unable to obtain dependency graph:

An error occurred while installing thoth-common[openshift]! Will try again.
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 1874, in do_install
[pipenv.exceptions.InstallError]:       keep_outdated=keep_outdated
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]:       pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 859, in do_install_dependencies
[pipenv.exceptions.InstallError]:       retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 763, in batch_install
[pipenv.exceptions.InstallError]:       _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry)
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: ['Requirement already up-to-date: thoth-common[openshift] in ./.venv/lib/python3.6/site-packages (0.8.7)', 'Requirement already satisfied, skipping upgrade: requests in ./.venv/lib/python3.6/site-packages (from thoth-common[openshift]) (2.22.0)', 'Requirement already satisfied, skipping upgrade: daiquiri in ./.venv/lib/python3.6/site-packages (from thoth-common[openshift]) (1.5.0)', 'Requirement already satisfied, skipping upgrade: attrs in ./.venv/lib/python3.6/site-packages (from thoth-common[openshift]) (19.1.0)', 'Requirement already satisfied, skipping upgrade: sentry-sdk in ./.venv/lib/python3.6/site-packages (from thoth-common[openshift]) (0.8.0)', 'Requirement already satisfied, skipping upgrade: rfc5424-logging-handler in ./.venv/lib/python3.6/site-packages (from thoth-common[openshift]) (1.4.3)', 'Requirement already satisfied, skipping upgrade: pyyaml in ./.venv/lib/python3.6/site-packages (from thoth-common[openshift]) (5.1)', 'Requirement already satisfied, skipping upgrade: openshift==0.8.0; extra == "openshift" in ./.venv/lib/python3.6/site-packages (from thoth-common[openshift]) (0.8.0)', 'Requirement already satisfied, skipping upgrade: kubernetes==8.0.0; extra == "openshift" in ./.venv/lib/python3.6/site-packages (from thoth-common[openshift]) (8.0.0)', 'Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in ./.venv/lib/python3.6/site-packages (from requests->thoth-common[openshift]) (3.0.4)', 'Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in ./.venv/lib/python3.6/site-packages (from requests->thoth-common[openshift]) (2019.3.9)', 'Requirement already satisfied, skipping upgrade: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in ./.venv/lib/python3.6/site-packages (from requests->thoth-common[openshift]) (1.25.3)', 'Requirement already satisfied, skipping upgrade: idna<2.9,>=2.5 in ./.venv/lib/python3.6/site-packages (from requests->thoth-common[openshift]) (2.8)', 'Requirement already satisfied, skipping upgrade: pytz in ./.venv/lib/python3.6/site-packages (from rfc5424-logging-handler->thoth-common[openshift]) (2019.1)', 'Requirement already satisfied, skipping upgrade: tzlocal in ./.venv/lib/python3.6/site-packages (from rfc5424-logging-handler->thoth-common[openshift]) (1.5.1)', 'Requirement already satisfied, skipping upgrade: ruamel.yaml>=0.15 in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0; extra == "openshift"->thoth-common[openshift]) (0.15.96)', 'Requirement already satisfied, skipping upgrade: dictdiffer in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0; extra == "openshift"->thoth-common[openshift]) (0.8.0)', 'Requirement already satisfied, skipping upgrade: six in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0; extra == "openshift"->thoth-common[openshift]) (1.12.0)', 'Requirement already satisfied, skipping upgrade: python-string-utils in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0; extra == "openshift"->thoth-common[openshift]) (0.6.0)', 'Requirement already satisfied, skipping upgrade: jinja2 in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0; extra == "openshift"->thoth-common[openshift]) (2.10.1)', 'Requirement already satisfied, skipping upgrade: google-auth>=1.0.1 in ./.venv/lib/python3.6/site-packages (from kubernetes==8.0.0; extra == "openshift"->thoth-common[openshift]) (1.6.3)', 'Requirement already satisfied, skipping upgrade: python-dateutil>=2.5.3 in ./.venv/lib/python3.6/site-packages (from kubernetes==8.0.0; extra == "openshift"->thoth-common[openshift]) (2.8.0)', 'Requirement already satisfied, skipping upgrade: adal>=1.0.2 in ./.venv/lib/python3.6/site-packages (from kubernetes==8.0.0; extra == "openshift"->thoth-common[openshift]) (1.2.1)', 'Requirement already satisfied, skipping upgrade: websocket-client!=0.40.0,!=0.41.*,!=0.42.*,>=0.32.0 in ./.venv/lib/python3.6/site-packages (from kubernetes==8.0.0; extra == "openshift"->thoth-common[openshift]) (0.56.0)', 'Requirement already satisfied, skipping upgrade: requests-oauthlib in ./.venv/lib/python3.6/site-packages (from kubernetes==8.0.0; extra == "openshift"->thoth-common[openshift]) (1.2.0)', 'Requirement already satisfied, skipping upgrade: setuptools>=21.0.0 in ./.venv/lib/python3.6/site-packages (from kubernetes==8.0.0; extra == "openshift"->thoth-common[openshift]) (41.0.1)', 'Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in ./.venv/lib/python3.6/site-packages (from jinja2->openshift==0.8.0; extra == "openshift"->thoth-common[openshift]) (1.1.1)', 'Requirement already satisfied, skipping upgrade: cachetools>=2.0.0 in ./.venv/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes==8.0.0; extra == "openshift"->thoth-common[openshift]) (3.1.1)', 'Requirement already satisfied, skipping upgrade: pyasn1-modules>=0.2.1 in ./.venv/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes==8.0.0; extra == "openshift"->thoth-common[openshift]) (0.2.5)', 'Requirement already satisfied, skipping upgrade: rsa>=3.1.4 in ./.venv/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes==8.0.0; extra == "openshift"->thoth-common[openshift]) (4.0)', 'Requirement already satisfied, skipping upgrade: PyJWT>=1.0.0 in ./.venv/lib/python3.6/site-packages (from adal>=1.0.2->kubernetes==8.0.0; extra == "openshift"->thoth-common[openshift]) (1.7.1)', 'Collecting cryptography>=1.1.0 (from adal>=1.0.2->kubernetes==8.0.0; extra == "openshift"->thoth-common[openshift])', '  Using cached https://files.pythonhosted.org/packages/c2/95/f43d02315f4ec074219c6e3124a87eba1d2d12196c2767fadfdc07a83884/cryptography-2.7.tar.gz', '  Installing build dependencies: started', "  Installing build dependencies: finished with status 'done'", '  Getting requirements to build wheel: started', "  Getting requirements to build wheel: finished with status 'done'", '    Preparing wheel metadata: started', "    Preparing wheel metadata: finished with status 'done'", 'Requirement already satisfied, skipping upgrade: oauthlib>=3.0.0 in ./.venv/lib/python3.6/site-packages (from requests-oauthlib->kubernetes==8.0.0; extra == "openshift"->thoth-common[openshift]) (3.0.1)', 'Requirement already satisfied, skipping upgrade: pyasn1<0.5.0,>=0.4.1 in ./.venv/lib/python3.6/site-packages (from pyasn1-modules>=0.2.1->google-auth>=1.0.1->kubernetes==8.0.0; extra == "openshift"->thoth-common[openshift]) (0.4.5)', 'Requirement already satisfied, skipping upgrade: asn1crypto>=0.21.0 in ./.venv/lib/python3.6/site-packages (from cryptography>=1.1.0->adal>=1.0.2->kubernetes==8.0.0; extra == "openshift"->thoth-common[openshift]) (0.24.0)', 'Requirement already satisfied, skipping upgrade: cffi!=1.11.3,>=1.8 in ./.venv/lib/python3.6/site-packages (from cryptography>=1.1.0->adal>=1.0.2->kubernetes==8.0.0; extra == "openshift"->thoth-common[openshift]) (1.12.3)', 'Requirement already satisfied, skipping upgrade: pycparser in ./.venv/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.8->cryptography>=1.1.0->adal>=1.0.2->kubernetes==8.0.0; extra == "openshift"->thoth-common[openshift]) (2.19)', 'Building wheels for collected packages: cryptography', '  Building wheel for cryptography (PEP 517): started', "  Building wheel for cryptography (PEP 517): finished with status 'error'", '  Running setup.py clean for cryptography', 'Failed to build cryptography']
[pipenv.exceptions.InstallError]: ['ERROR: Complete output from command /tmp/tmpd8sikhya/.venv/bin/python3 /tmp/tmpd8sikhya/.venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpot8u1hdx:', '  ERROR: running bdist_wheel', '  running build', '  running build_py', '  creating build', '  creating build/lib.linux-x86_64-3.6', '  creating build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/__about__.py -> build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/__init__.py -> build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/fernet.py -> build/lib.linux-x86_64-3.6/cryptography', '  copying src/cryptography/utils.py -> build/lib.linux-x86_64-3.6/cryptography', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat', '  copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat', '  copying src/cryptography/hazmat/_oid.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat', '  creating build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/ocsp.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-3.6/cryptography/x509', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/backends', '  copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends', '  copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings', '  copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/backends/openssl', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl', '  copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl', '  copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl', '  copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/bindings/openssl', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/asymmetric', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/ciphers', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/kdf', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/serialization', '  creating build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-3.6/cryptography/hazmat/primitives/twofactor', '  running egg_info', '  writing src/cryptography.egg-info/PKG-INFO', '  writing dependency_links to src/cryptography.egg-info/dependency_links.txt', '  writing requirements to src/cryptography.egg-info/requires.txt', '  writing top-level names to src/cryptography.egg-info/top_level.txt', "  reading manifest file 'src/cryptography.egg-info/SOURCES.txt'", "  reading manifest template 'MANIFEST.in'", "  no previously-included directories found matching 'docs/_build'", "  warning: no previously-included files found matching 'vectors'", "  warning: no previously-included files matching '*' found under directory 'vectors'", "  warning: no previously-included files found matching 'azure-pipelines.yml'", "  warning: no previously-included files found matching '.azure-pipelines'", "  warning: no previously-included files found matching '.travis.yml'", "  warning: no previously-included files found matching '.travis'", "  warning: no previously-included files matching '*' found under directory '.azure-pipelines'", "  warning: no previously-included files matching '*' found under directory '.travis'", "  warning: no previously-included files found matching 'release.py'", "  warning: no previously-included files found matching '.coveragerc'", "  warning: no previously-included files found matching 'codecov.yml'", "  warning: no previously-included files found matching 'dev-requirements.txt'", "  warning: no previously-included files found matching 'rtd-requirements.txt'", "  warning: no previously-included files found matching 'tox.ini'", "  writing manifest file 'src/cryptography.egg-info/SOURCES.txt'", '  warning: build_py: byte-compiling is disabled, skipping.', '  ', '  running build_ext', "  generating cffi module 'build/temp.linux-x86_64-3.6/_padding.c'", '  creating build/temp.linux-x86_64-3.6', "  generating cffi module 'build/temp.linux-x86_64-3.6/_constant_time.c'", "  generating cffi module 'build/temp.linux-x86_64-3.6/_openssl.c'", "  building '_openssl' extension", '  creating build/temp.linux-x86_64-3.6/build', '  creating build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6', '  gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c build/temp.linux-x86_64-3.6/_openssl.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/_openssl.o -Wconversion -Wno-error=sign-conversion', '  build/temp.linux-x86_64-3.6/_openssl.c:498:10: fatal error: openssl/opensslv.h: No such file or directory', '   #include <openssl/opensslv.h>', '            ^~~~~~~~~~~~~~~~~~~~', '  compilation terminated.', "  error: command 'gcc' failed with exit status 1", '  ----------------------------------------', '  ERROR: Failed building wheel for cryptography', 'ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly']
ERROR: ERROR: Package installation failed...

Notes

For more information, see Pipfile and Pipfile.lock.

Once this issue is resolved, the issue will be automatically closed by bot.

Failed to replicate environment for updates

Unable to replicate environment provided in Pipfile.lock.

Most likely the deployment build will fail.

Command
  $ pipenv sync --dev
Standard output
Installing dependencies from Pipfile.lock (c00e44)…
An error occurred while installing itsdangerous==1.0.0 --hash=sha256:a7de3201740a857380421ef286166134e10fe58846bcefbc9d6424a69a0b99ec --hash=sha256:aca4fc561b7671115a2156f625f2eaa5e0e3527e0adf2870340e7968c0a81f85! Will try again.
Installing initially failed dependencies…
Collecting itsdangerous==1.0.0 


Standard error
  Could not find a version that satisfies the requirement itsdangerous==1.0.0 (from -r /tmp/pipenv-gbl5sjl5-requirements/pipenv-jaiqgve9-requirement.txt (line 1)) (from versions: 0.9, 0.9.1, 0.10, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.20, 0.21, 0.22, 0.23, 0.24, 1.1.0)
No matching distribution found for itsdangerous==1.0.0 (from -r /tmp/pipenv-gbl5sjl5-requirements/pipenv-jaiqgve9-requirement.txt (line 1))


Environment details

Kebechet version: 1.0.0
Python version: 3.6.6
Platform: Linux-3.10.0-862.9.1.el7.x86_64-x86_64-with-fedora-28-Twenty_Eight
pipenv version: pipenv, version 2018.10.9


For more information, see Pipfile and Pipfile.lock.

Failed to update dependencies to their latest version

Automatic dependency update failed for the current master with SHA 5f0de97.

The automatic dependency management cannot continue. Please fix errors reported bellow.

Command
  $ pipenv update --dev
Standard output
Running $ pipenv lock then $ pipenv sync.
Installing dependencies from Pipfile.lock (50ce7e)…
Installing initially failed dependencies…

Standard error
Creating a virtualenv for this project…
Pipfile: /tmp/tmpi330i315/Pipfile
Using /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python (3.6.8) to create virtualenv…
Already using interpreter /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python
Using real prefix '/usr'
  No LICENSE.txt / LICENSE found in source
New python executable in /tmp/tmpi330i315/.venv/bin/python
Installing setuptools, pip, wheel...
done.
Running virtualenv with interpreter /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python

Virtualenv location: /tmp/tmpi330i315/.venv
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (50ce7e)!
An error occurred while installing argo-workflows==2.1.4 --hash=sha256:00a0c0e14ecccd9694b14cce9895e83a161929818ccf2c4c6d1e3681762d9539 --hash=sha256:1d36d0e56c472c9af98cdfc21a0a9d3087227ee8d118310f2ac6649df124c5d5! Will try again.
An error occurred while installing attrdict==2.0.1 --hash=sha256:35c90698b55c683946091177177a9e9c0713a0860f0e049febd72649ccd77b70 --hash=sha256:9432e3498c74ff7e1b20b3d93b45d766b71cbffa90923496f82c4ae38b92be34! Will try again.
An error occurred while installing attrs==19.3.0 --hash=sha256:08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c --hash=sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72! Will try again.
An error occurred while installing blinker==1.4 --hash=sha256:471aee25f3992bd325afa3772f1063dbdbbca947a041b8b89466dc00d606f8b6! Will try again.
An error occurred while installing cachetools==4.0.0 --hash=sha256:9a52dd97a85f257f4e4127f15818e71a0c7899f121b34591fcc1173ea79a0198 --hash=sha256:b304586d357c43221856be51d73387f93e2a961598a9b6b6670664746f3b6c6c! Will try again.
An error occurred while installing certifi==2019.11.28 --hash=sha256:017c25db2a153ce562900032d5bc68e9f191e44e9a0f762f373977de9df1fbb3 --hash=sha256:25b64c7da4cd7479594d035c08c2d809eb4aab3a26e5a990ea98cc450c320f1f! Will try again.
An error occurred while installing chardet==3.0.4 --hash=sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae --hash=sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691! Will try again.
An error occurred while installing click==7.0 --hash=sha256:2335065e6395b9e67ca716de5f7526736bfa6ceead690adf616d925bdc622b13 --hash=sha256:5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7! Will try again.
An error occurred while installing clickclick==1.2.2 --hash=sha256:4a890aaa9c3990cfabd446294eb34e3dc89701101ac7b41c1bff85fc210f6d23 --hash=sha256:ab8f229fb9906a86634bdfc6fabfc2b665f44804170720db4f6e1d98f8a58f3d! Will try again.
An error occurred while installing connexion[swagger-ui]==2.5.1 --hash=sha256:3f6c2cb8a3f24af281ff561eebaaa926700b24f4c430f4d945c8ace0384c220c --hash=sha256:56854c65334281b303120a1097df09a79ffa44bdaecfc4400e7194821e17566d! Will try again.
An error occurred while installing contextlib2==0.6.0.post1 --hash=sha256:01f490098c18b19d2bd5bb5dc445b2054d2fa97f09a4280ba2c5f3c394c8162e --hash=sha256:3355078a159fbb44ee60ea80abd0d87b80b78c248643b49aa6d94673b413609b! Will try again.
An error occurred while installing daiquiri==2.0.0 --hash=sha256:6b235ed15b73b87fd3cc2521aacbb727bf8443a0896dc534b07503841d03cfdb --hash=sha256:d57b9fd5432933c6e899054eb62cee22eab89f560c8493254d327ec27893c866! Will try again.
An error occurred while installing dictdiffer==0.8.1 --hash=sha256:1adec0d67cdf6166bda96ae2934ddb5e54433998ceab63c984574d187cc563d2 --hash=sha256:d79d9a39e459fe33497c858470ca0d2e93cb96621751de06d631856adfd9c390! Will try again.
An error occurred while installing flask==1.1.1 --hash=sha256:13f9f196f330c7c2c5d7a5cf91af894110ca0215ac051b5844701f2bfd934d52 --hash=sha256:45eb5a6fd193d6cf7e0cf5d8a5b31f83d5faae0293695626f539a823e93b13f6! Will try again.
An error occurred while installing flask-cors==3.0.8 --hash=sha256:72170423eb4612f0847318afff8c247b38bd516b7737adfc10d1c2cdbb382d16 --hash=sha256:f4d97201660e6bbcff2d89d082b5b6d31abee04b1b3003ee073a6fd25ad1d69a! Will try again.
An error occurred while installing flask-script==2.0.6 --hash=sha256:6425963d91054cfcc185807141c7314a9c5ad46325911bd24dcb489bd0161c65! Will try again.
An error occurred while installing future==0.18.2 --hash=sha256:b1bead90b70cf6ec3f0710ae53a525360fa360d306a86583adc6bf83a4db537d! Will try again.
An error occurred while installing google-auth==1.10.1 --hash=sha256:053bd396de4a8e83bfd27d0606645735cf68cfe88ec166655efd823f2969a9ee --hash=sha256:abc459495de01c46bbf37ee8d22e6ae9232b3c2e09cfa5f1122b1645603b5def! Will try again.
An error occurred while installing grpcio==1.26.0 --hash=sha256:066630f6b62bffa291dacbee56994279a6a3682b8a11967e9ccaf3cc770fc11e --hash=sha256:07e95762ca6b18afbeb3aa2793e827c841152d5e507089b1db0b18304edda105 --hash=sha256:0a0fb2f8e3a13537106bc77e4c63005bc60124a6203034304d9101921afa4e90 --hash=sha256:0c61b74dcfb302613926e785cb3542a0905b9a3a86e9410d8cf5d25e25e10104 --hash=sha256:13383bd70618da03684a8aafbdd9e3d9a6720bf8c07b85d0bc697afed599d8f0 --hash=sha256:1c6e0f6b9d091e3717e9a58d631c8bb4898be3b261c2a01fe46371fdc271052f --hash=sha256:1cf710c04689daa5cc1e598efba00b028215700dcc1bf66fcb7b4f64f2ea5d5f --hash=sha256:2da5cee9faf17bb8daf500cd0d28a17ae881ab5500f070a6aace457f4c08cac4 --hash=sha256:2f78ebf340eaf28fa09aba0f836a8b869af1716078dfe8f3b3f6ff785d8f2b0f --hash=sha256:33a07a1a8e817d733588dbd18e567caad1a6fe0d440c165619866cd490c7911a --hash=sha256:3d090c66af9c065b7228b07c3416f93173e9839b1d40bb0ce3dd2aa783645026 --hash=sha256:42b903a3596a10e2a3727bae2a76f8aefd324d498424b843cfa9606847faea7b --hash=sha256:4fffbb58134c4f23e5a8312ac3412db6f5e39e961dc0eb5e3115ce5aa16bf927 --hash=sha256:57be5a6c509a406fe0ffa6f8b86904314c77b5e2791be8123368ad2ebccec874 --hash=sha256:5b0fa09efb33e2af4e8822b4eb8b2cbc201d562e3e185c439be7eaeee2e8b8aa --hash=sha256:5ef42dfc18f9a63a06aca938770b69470bb322e4c137cf08cf21703d1ef4ae5c --hash=sha256:6a43d2f2ff8250f200fdf7aa31fa191a997922aa9ea1182453acd705ad83ab72 --hash=sha256:6d8ab28559be98b02f8b3a154b53239df1aa5b0d28ff865ae5be4f30e7ed4d3f --hash=sha256:6e47866b7dc14ca3a12d40c1d6082e7bea964670f1c5315ea0fb8b0550244d64 --hash=sha256:6edda1b96541187f73aab11800d25f18ee87e53d5f96bb74473873072bf28a0e --hash=sha256:7109c8738a8a3c98cfb5dda1c45642a8d6d35dc00d257ab7a175099b2b4daecd --hash=sha256:8d866aafb08657c456a18c4a31c8526ea62de42427c242b58210b9eae6c64559 --hash=sha256:9939727d9ae01690b24a2b159ac9dbca7b7e8e6edd5af6a6eb709243cae7b52b --hash=sha256:99fd873699df17cb11c542553270ae2b32c169986e475df0d68a8629b8ef4df7 --hash=sha256:b6fda5674f990e15e1bcaacf026428cf50bce36e708ddcbd1de9673b14aab760 --hash=sha256:bdb2f3dcb664f0c39ef1312cd6acf6bc6375252e4420cf8f36fff4cb4fa55c71 --hash=sha256:bfd7d3130683a1a0a50c456273c21ec8a604f2d043b241a55235a78a0090ee06 --hash=sha256:c6c2db348ac73d73afe14e0833b18abbbe920969bf2c5c03c0922719f8020d06 --hash=sha256:cb7a4b41b5e2611f85c3402ac364f1d689f5d7ecbc24a55ef010eedcd6cf460f --hash=sha256:cd3d3e328f20f7c807a862620c6ee748e8d57ba2a8fc960d48337ed71c6d9d32 --hash=sha256:d1a481777952e4f99b8a6956581f3ee866d7614100d70ae6d7e07327570b85ce --hash=sha256:d1d49720ed636920bb3d74cedf549382caa9ad55aea89d1de99d817068d896b2 --hash=sha256:d42433f0086cccd192114343473d7dbd4aae9141794f939e2b7b83efc57543db --hash=sha256:d44c34463a7c481e076f691d8fa25d080c3486978c2c41dca09a8dd75296c2d7 --hash=sha256:d7e5b7af1350e9c8c17a7baf99d575fbd2de69f7f0b0e6ebd47b57506de6493a --hash=sha256:d9542366a0917b9b48bab1fee481ac01f56bdffc52437b598c09e7840148a6a9 --hash=sha256:df7cdfb40179acc9790a462c049e0b8e109481164dd7ad1a388dd67ff1528759 --hash=sha256:e1a9d9d2e7224d981aea8da79260c7f6932bf31ce1f99b7ccfa5eceeb30dc5d0 --hash=sha256:ed10e5fad105ecb0b12822f924e62d0deb07f46683a0b64416b17fd143daba1d --hash=sha256:f0ec5371ce2363b03531ed522bfbe691ec940f51f0e111f0500fc0f44518c69d --hash=sha256:f6580a8a4f5e701289b45fd62a8f6cb5ec41e4d77082424f8b676806dcd22564 --hash=sha256:f7b83e4b2842d44fce3cdc0d54db7a7e0d169a598751bf393601efaa401c83e0 --hash=sha256:ffec45b0db18a555fdfe0c6fa2d0a3fceb751b22b31e8fcd14ceed7bde05481e! Will try again.
An error occurred while installing grpcio-opentracing==1.1.4 --hash=sha256:c90ac0ceac31d96a4e92742064fad099d42115df36cb33adf5eea6526204a130 --hash=sha256:cea56f355ffc1fdbecef98df127fbce5435745f4b134f3b2874a4246823d93ef! Will try again.
An error occurred while installing grpcio-tools==1.26.0 --hash=sha256:0286f704e55e3012fec3910400fe1a4ed11aeb66d3ec4b7f8041845af7fb7206 --hash=sha256:033a4e80dc78d9c11860800bd5a66b65ff385be8f669e96b02e795364c860597 --hash=sha256:0e3b5469912430f19407ebe14cfd1bece1b5a277c4d43e1b65dbff19d9475ccc --hash=sha256:131aa8c3862a555819428856f872ab9e919e351d7cd60c98012e12d2fb6afc45 --hash=sha256:1783b8fa74f58a643e7780112fc4eb6110789672e852a691fad6af6b94a90c4a --hash=sha256:1e80f74854bd1c7263942e836d69f95ffc66bb45bf14bf3e1ab61113271b5884 --hash=sha256:27ae784acff3d2fa04e3b4dc72f8d60a55d654f90e410adf08f46a4d2d673dd3 --hash=sha256:33c6bee5a02408018dc10a5737818d2159f14cbb0613df41cc93ba6cbaeea095 --hash=sha256:376a1840d1f5d25e9c3391557d6b3eeb3de17be697b0e55d8247d0262fcbaacf --hash=sha256:3922dffd8160d54dc00c7d32b30776a974cc098086493c668faffac19e752087 --hash=sha256:4ba7e5afc93b413bbb5f3dd65ba583e078ff5895a5053d825ab793cf7720ae96 --hash=sha256:4e9a1276f8699d06518cec8caceb2c423fc7f971765cab7550d39f281795fd81 --hash=sha256:51ac9c4f8a542cd20c6776fde781c84c0acd8faba55ec14f121c6b4eb4245e89 --hash=sha256:5580b86cf49936c9c74f0def44d3582a7a1bb720eba8a14805c3a61efa790c70 --hash=sha256:58a879208bd84d6819a61c1b0618655574ef9df1d63a0e2f434fdcb5cfa1fb57 --hash=sha256:675918f83fa35bd54f4c29d95d8652c6215d5e95a13b6f14e626cdef6d0fce79 --hash=sha256:68259fd06188951d152665ffe44f9660edd715c102ae4bc4216eca4c4666dadf --hash=sha256:6cea124cbd9081a587e1954b98e9a27c7cca6ae72babc3046ab6b439a5730679 --hash=sha256:6f356a445ba7afc634b1046d9f51d3ae37afbf4fe1a500285aca37677462a7b9 --hash=sha256:7f7430434bd997584f2136a675559ba0d4afdf7cb71d9bbc429b0cc831e6828c --hash=sha256:809d60f15a32c21dc221ddb591aff8adfdde4e05095414eb8e015cdfef361615 --hash=sha256:826c19f26b41e99691e77823ad67f04dc0b69e514212907695e330c6f106415c --hash=sha256:96c6f657b93f49243d083840d27a5a686a1fc26044a80ebf8585734d5152d4ee --hash=sha256:9a2091371298f04ef350f776365945537d0befa95bad5623d80c4207bdff9d3a --hash=sha256:9af72b764b41ba939e8e0a7ae9ec8a17d1c46a18797c6342cba6483f29e1790f --hash=sha256:a209002e3d4787f0e90e29f15cddbe83dc9054238c0da7f539c913002a348cc1 --hash=sha256:a908d5af2f26673e970c7c03703437bf95d10e88dad3322e7e267467db44a04d --hash=sha256:ab841c69581085b6f9aa54044a13db6ec31183513f7cce0862d29c9b7b4e3c64 --hash=sha256:b1bc78efefb8e085c072add2c02326fdecad9b8644b3be11e715ea4c6102ad87 --hash=sha256:b97e74ffe121dfa9ae7ec94393fce4e95e9e0a343827663e989dc4b7c918d1a5 --hash=sha256:bba8d3b61ec113bb94596599d2568217b22ddfc7baa46c00dec5106cfd4e914b --hash=sha256:bfe0e33aea60da100b214c72c1746cc0194bb8da910004518c185041cc795543 --hash=sha256:c15f0718cbc3986e747d5b0734198dce0ac07d188ec5e063b1e9889ac947f86e --hash=sha256:c56d0ac769bf1f01dbb6ec6b6492849e70cd35bdeeb660e206a70ab43917ae92 --hash=sha256:d396fdb7026986e6d3897bb207cc7d5bc536a82a2e50af806a24b3d254c73bc3 --hash=sha256:d62ab00dea7fa0813fc813a6c848da2eeda5cb71893b892a229d23949de0cecd --hash=sha256:da75e33e185c8be17a82ec4a97f5c75ec05d57e85f8b285f86e2a22484849e4a --hash=sha256:dcbd1fbb540638c9ad9c3a071b392b654f79666a2bc12808080b0e9f674b9a80 --hash=sha256:e7e90bad5466347a3648358e9f437e72d5f6d6025fe741171a88aca8b9d864df --hash=sha256:eae371a663ceeef8f930323a120a9d11e13e1c49903a66ddb4ada4830d5bcb7d --hash=sha256:f290cccc972533a288c2ebc55eb3c0fbe0c6a0d0a9775cb34ce6bfb11fe14a11 --hash=sha256:facb8c588cdd6adc51ae7545f59283565dae8d946c6163e578b70ab6bf161215 --hash=sha256:fb043e45f91634776acdfe4b8dfc96b636c53a458799179041ab633e15c3d833! Will try again.
An error occurred while installing gunicorn==20.0.4 --hash=sha256:1904bb2b8a43658807108d59c3f3d56c2b6121a701161de0ddf9ad140073c626 --hash=sha256:cd4a810dd51bf497552cf3f863b575dabd73d6ad6a91075b65936b151cbf4f9c! Will try again.
An error occurred while installing idna==2.8 --hash=sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407 --hash=sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c! Will try again.
An error occurred while installing importlib-metadata==1.4.0 ; python_version < '3.8' --hash=sha256:bdd9b7c397c273bcc9a11d6629a38487cd07154fa255a467bf704cd2c258e359 --hash=sha256:f17c015735e1a88296994c0697ecea7e11db24290941983b08c9feb30921e6d8! Will try again.
An error occurred while installing inflection==0.3.1 --hash=sha256:18ea7fb7a7d152853386523def08736aa8c32636b047ade55f7578c4edeb16ca! Will try again.
An error occurred while installing itsdangerous==1.1.0 --hash=sha256:321b033d07f2a4136d3ec762eac9f16a10ccd60f53c0c91af90217ace7ba1f19 --hash=sha256:b12271b2047cb23eeb98c8b5622e2e5c5e9abd9784a153e9d8ef9cb4dd09d749! Will try again.
An error occurred while installing jaeger-client==4.3.0 --hash=sha256:7f72c341a21e3dcbc8498d1ed17c93e0eec71c5becc5c9333c4293793d4e6433! Will try again.
An error occurred while installing jinja2==2.10.3 --hash=sha256:74320bb91f31270f9551d46522e33af46a80c3d619f4a4bf42b3164d30b5911f --hash=sha256:9fe95f19286cfefaa917656583d020be14e7859c6b0252588391e47db34527de! Will try again.
An error occurred while installing jsonschema==3.2.0 --hash=sha256:4e5b3cf8216f577bee9ce139cbe72eca3ea4f292ec60928ff24758ce626cd163 --hash=sha256:c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a! Will try again.
An error occurred while installing kubernetes==10.0.1 --hash=sha256:3770a496663396ad1def665eeadb947b3f45217a08b64b10c01a57e981ac8592 --hash=sha256:a6dee02a1b39ea4bb9c4c2cc415ea0ada33d8ea0a920f7d4fb6d166989dcac01! Will try again.
An error occurred while installing markupsafe==1.1.1 --hash=sha256:00bc623926325b26bb9605ae9eae8a215691f33cae5df11ca5424f06f2d1f473 --hash=sha256:09027a7803a62ca78792ad89403b1b7a73a01c8cb65909cd876f7fcebd79b161 --hash=sha256:09c4b7f37d6c648cb13f9230d847adf22f8171b1ccc4d5682398e77f40309235 --hash=sha256:1027c282dad077d0bae18be6794e6b6b8c91d58ed8a8d89a89d59693b9131db5 --hash=sha256:24982cc2533820871eba85ba648cd53d8623687ff11cbb805be4ff7b4c971aff --hash=sha256:29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b --hash=sha256:43a55c2930bbc139570ac2452adf3d70cdbb3cfe5912c71cdce1c2c6bbd9c5d1 --hash=sha256:46c99d2de99945ec5cb54f23c8cd5689f6d7177305ebff350a58ce5f8de1669e --hash=sha256:500d4957e52ddc3351cabf489e79c91c17f6e0899158447047588650b5e69183 --hash=sha256:535f6fc4d397c1563d08b88e485c3496cf5784e927af890fb3c3aac7f933ec66 --hash=sha256:62fe6c95e3ec8a7fad637b7f3d372c15ec1caa01ab47926cfdf7a75b40e0eac1 --hash=sha256:6dd73240d2af64df90aa7c4e7481e23825ea70af4b4922f8ede5b9e35f78a3b1 --hash=sha256:717ba8fe3ae9cc0006d7c451f0bb265ee07739daf76355d06366154ee68d221e --hash=sha256:79855e1c5b8da654cf486b830bd42c06e8780cea587384cf6545b7d9ac013a0b --hash=sha256:7c1699dfe0cf8ff607dbdcc1e9b9af1755371f92a68f706051cc8c37d447c905 --hash=sha256:88e5fcfb52ee7b911e8bb6d6aa2fd21fbecc674eadd44118a9cc3863f938e735 --hash=sha256:8defac2f2ccd6805ebf65f5eeb132adcf2ab57aa11fdf4c0dd5169a004710e7d --hash=sha256:98c7086708b163d425c67c7a91bad6e466bb99d797aa64f965e9d25c12111a5e --hash=sha256:9add70b36c5666a2ed02b43b335fe19002ee5235efd4b8a89bfcf9005bebac0d --hash=sha256:9bf40443012702a1d2070043cb6291650a0841ece432556f784f004937f0f32c --hash=sha256:ade5e387d2ad0d7ebf59146cc00c8044acbd863725f887353a10df825fc8ae21 --hash=sha256:b00c1de48212e4cc9603895652c5c410df699856a2853135b3967591e4beebc2 --hash=sha256:b1282f8c00509d99fef04d8ba936b156d419be841854fe901d8ae224c59f0be5 --hash=sha256:b2051432115498d3562c084a49bba65d97cf251f5a331c64a12ee7e04dacc51b --hash=sha256:ba59edeaa2fc6114428f1637ffff42da1e311e29382d81b339c1817d37ec93c6 --hash=sha256:c8716a48d94b06bb3b2524c2b77e055fb313aeb4ea620c8dd03a105574ba704f --hash=sha256:cd5df75523866410809ca100dc9681e301e3c27567cf498077e8551b6d20e42f --hash=sha256:e249096428b3ae81b08327a63a485ad0878de3fb939049038579ac0ef61e17e7! Will try again.
An error occurred while installing mock==3.0.5 --hash=sha256:83657d894c90d5681d62155c82bda9c1187827525880eda8ff5df4ec813437c3 --hash=sha256:d157e52d4e5b938c550f39eb2fd15610db062441a9c2747d3dbfa9298211d0f8! Will try again.
An error occurred while installing more-itertools==8.1.0 --hash=sha256:1a2a32c72400d365000412fe08eb4a24ebee89997c18d3d147544f70f5403b39 --hash=sha256:c468adec578380b6281a114cb8a5db34eb1116277da92d7c46f904f0b52d3288! Will try again.
An error occurred while installing oauthlib==3.1.0 --hash=sha256:bee41cc35fcca6e988463cacc3bcb8a96224f470ca547e697b604cc697b2f889 --hash=sha256:df884cd6cbe20e32633f1db1072e9356f53638e4361bef4e8b03c9127c9328ea! Will try again.
An error occurred while installing openapi-spec-validator==0.2.8 --hash=sha256:0caacd9829e9e3051e830165367bf58d436d9487b29a09220fa7edb9f47ff81b --hash=sha256:d4da8aef72bf5be40cf0df444abd20009a41baf9048a8e03750c07a934f1bdd8 --hash=sha256:e489c7a273284bc78277ac22791482e8058d323b4a265015e9fcddf6a8045bcd! Will try again.
An error occurred while installing openshift==0.10.1 --hash=sha256:ce7411a5689e6d3831bb5dc08a8c324860d71e3dd5547ba44f4d139cfa57c34b! Will try again.
An error occurred while installing opentracing==2.3.0 --hash=sha256:33b10634917a7496a7e3a18b18b7c055053d0a8da5101e2a95d454783cac9765! Will try again.
An error occurred while installing opentracing-instrumentation==3.2.1 --hash=sha256:918b1f52e3db035002bb26a366bb6cbaea9715d567015ce9f514e08047f84185 --hash=sha256:a8fb8499c6ab71665313c179e327b406bfa09b0277bd7cb02b2941eaa659d8dd! Will try again.
An error occurred while installing prometheus-client==0.7.1 --hash=sha256:71cd24a2b3eb335cb800c7159f423df1bd4dcd5171b234be15e3f31ec9f622da! Will try again.
An error occurred while installing prometheus-flask-exporter==0.12.1 --hash=sha256:ad74d487c6233b78fc51578d1f1e54ee5576dcfc41cb39e4a6b0ca2dc88b2411! Will try again.
An error occurred while installing protobuf==3.11.2 --hash=sha256:0329e86a397db2a83f9dcbe21d9be55a47f963cdabc893c3a24f4d3a8f117c37 --hash=sha256:0a7219254afec0d488211f3d482d8ed57e80ae735394e584a98d8f30a8c88a36 --hash=sha256:14d6ac53df9cb5bb87c4f91b677c1bc5cec9c0fd44327f367a3c9562de2877c4 --hash=sha256:180fc364b42907a1d2afa183ccbeffafe659378c236b1ec3daca524950bb918d --hash=sha256:3d7a7d8d20b4e7a8f63f62de2d192cfd8b7a53c56caba7ece95367ca2b80c574 --hash=sha256:3f509f7e50d806a434fe4a5fbf602516002a0f092889209fff7db82060efffc0 --hash=sha256:4571da974019849201fc1ec6626b9cea54bd11b6bed140f8f737c0a33ea37de5 --hash=sha256:56bd1d84fbf4505c7b73f04de987eef5682e5752c811141b0186a3809bfb396f --hash=sha256:680c668d00b5eff08b86aef9e5ba9a705e621ea05d39071cfea8e28cb2400946 --hash=sha256:6b5b947dc8b3f2aec0eaad65b0b5113fcd642c358c31357c647da6281ee31104 --hash=sha256:6e96dffaf4d0a9a329e528b353ba62fd9ef13599688723d96bc9c165d0b6871e --hash=sha256:919f0d6f6addc836d08658eba3b52be2e92fd3e76da3ce00c325d8e9826d17c7 --hash=sha256:9c7b19c30cf0644afd0e4218b13f637ce54382fdcb1c8f75bf3e84e49a5f6d0a --hash=sha256:a2e6f57114933882ec701807f217df2fb4588d47f71f227c0a163446b930d507 --hash=sha256:a6b970a2eccfcbabe1acf230fbf112face1c4700036c95e195f3554d7bcb04c1 --hash=sha256:bc45641cbcdea068b67438244c926f9fd3e5cbdd824448a4a64370610df7c593 --hash=sha256:d61b14a9090da77fe87e38ba4c6c43d3533dcbeb5d84f5474e7ac63c532dcc9c --hash=sha256:d6faf5dbefb593e127463f58076b62fcfe0784187be8fe1aa9167388f24a22a1! Will try again.
An error occurred while installing pyasn1==0.4.8 --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba! Will try again.
An error occurred while installing pyasn1-modules==0.2.8 --hash=sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e --hash=sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74! Will try again.
An error occurred while installing pyrsistent==0.15.7 --hash=sha256:cdc7b5e3ed77bed61270a47d35434a30617b9becdf2478af76ad2c6ade307280! Will try again.
An error occurred while installing python-dateutil==2.8.1 --hash=sha256:73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c --hash=sha256:75bb3f31ea686f1197762692a9ee6a7550b59fc6ca3a1f4b5d7e32fb98e2da2a! Will try again.
An error occurred while installing python-json-logger==0.1.11 --hash=sha256:b7a31162f2a01965a5efb94453ce69230ed208468b0bbc7fdfc56e6d8df2e281! Will try again.
An error occurred while installing python-string-utils==0.6.0 --hash=sha256:05d24a8d884b629b534af992dc1f35dc4de4c73678ffdffa0efcbe667058af1f! Will try again.
An error occurred while installing pytz==2019.3 --hash=sha256:1c557d7d0e871de1f5ccd5833f60fb2550652da6be2693c1e02300743d21500d --hash=sha256:b02c06db6cf09c12dd25137e563b31700d3b80fcc4ad23abb7a315f2789819be! Will try again.
An error occurred while installing pyyaml==5.3 --hash=sha256:059b2ee3194d718896c0ad077dd8c043e5e909d9180f387ce42012662a4946d6 --hash=sha256:1cf708e2ac57f3aabc87405f04b86354f66799c8e62c28c5fc5f88b5521b2dbf --hash=sha256:24521fa2890642614558b492b473bee0ac1f8057a7263156b02e8b14c88ce6f5 --hash=sha256:4fee71aa5bc6ed9d5f116327c04273e25ae31a3020386916905767ec4fc5317e --hash=sha256:70024e02197337533eef7b85b068212420f950319cc8c580261963aefc75f811 --hash=sha256:74782fbd4d4f87ff04159e986886931456a1894c61229be9eaf4de6f6e44b99e --hash=sha256:940532b111b1952befd7db542c370887a8611660d2b9becff75d39355303d82d --hash=sha256:cb1f2f5e426dc9f07a7681419fe39cee823bb74f723f36f70399123f439e9b20 --hash=sha256:dbbb2379c19ed6042e8f11f2a2c66d39cceb8aeace421bfc29d085d93eda3689 --hash=sha256:e3a057b7a64f1222b56e47bcff5e4b94c4f61faac04c7c4ecb1985e18caa3994 --hash=sha256:e9f45bd5b92c7974e59bcd2dcc8631a6b6cc380a904725fce7bc08872e691615! Will try again.
An error occurred while installing requests==2.22.0 --hash=sha256:11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4 --hash=sha256:9cf5292fcd0f598c671cfc1e0d7d1a7f13bb8085e9a590f48c010551dc6c4b31! Will try again.
An error occurred while installing requests-oauthlib==1.3.0 --hash=sha256:7f71572defaecd16372f9006f33c2ec8c077c3cfa6f5911a9a90202beb513f3d --hash=sha256:b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a! Will try again.
An error occurred while installing rfc5424-logging-handler==1.4.3 --hash=sha256:9ae14073ef6d76d0c730ad6b6e3aeece841a6d413672d282876c0506dc097257 --hash=sha256:eaba528e47fba3e2845d52d559885cbc27a37db42a9d265ea539b3b4452d3057! Will try again.
An error occurred while installing rsa==4.0 --hash=sha256:14ba45700ff1ec9eeb206a2ce76b32814958a98e372006c8fb76ba820211be66 --hash=sha256:1a836406405730121ae9823e19c6e806c62bbad73f890574fff50efa4122c487! Will try again.
An error occurred while installing ruamel.yaml==0.16.6 --hash=sha256:91d6bfe4fce401a00388deb0f5d29e10d2d3683a868c1113ae16bbc351ceb6a4 --hash=sha256:966e5a049eebf011c90424b9ec7dab6358cee8de0907354b27a27f20a8c4c2ec! Will try again.
An error occurred while installing ruamel.yaml.clib==0.2.0 ; platform_python_implementation == 'CPython' and python_version < '3.8' --hash=sha256:1e77424825caba5553bbade750cec2277ef130647d685c2b38f68bc03453bac6 --hash=sha256:392b7c371312abf27fb549ec2d5e0092f7ef6e6c9f767bfb13e83cb903aca0fd --hash=sha256:4d55386129291b96483edcb93b381470f7cd69f97585829b048a3d758d31210a --hash=sha256:550168c02d8de52ee58c3d8a8193d5a8a9491a5e7b2462d27ac5bf63717574c9 --hash=sha256:57933a6986a3036257ad7bf283529e7c19c2810ff24c86f4a0cfeb49d2099919 --hash=sha256:615b0396a7fad02d1f9a0dcf9f01202bf9caefee6265198f252c865f4227fcc6 --hash=sha256:77556a7aa190be9a2bd83b7ee075d3df5f3c5016d395613671487e79b082d784 --hash=sha256:7aee724e1ff424757b5bd8f6c5bbdb033a570b2b4683b17ace4dbe61a99a657b --hash=sha256:8073c8b92b06b572e4057b583c3d01674ceaf32167801fe545a087d7a1e8bf52 --hash=sha256:9c6d040d0396c28d3eaaa6cb20152cb3b2f15adf35a0304f4f40a3cf9f1d2448 --hash=sha256:a0ff786d2a7dbe55f9544b3f6ebbcc495d7e730df92a08434604f6f470b899c5 --hash=sha256:b1b7fcee6aedcdc7e62c3a73f238b3d080c7ba6650cd808bce8d7761ec484070 --hash=sha256:b66832ea8077d9b3f6e311c4a53d06273db5dc2db6e8a908550f3c14d67e718c --hash=sha256:be018933c2f4ee7de55e7bd7d0d801b3dfb09d21dad0cce8a97995fd3e44be30 --hash=sha256:d0d3ac228c9bbab08134b4004d748cf9f8743504875b3603b3afbb97e3472947 --hash=sha256:d10e9dd744cf85c219bf747c75194b624cc7a94f0c80ead624b06bfa9f61d3bc --hash=sha256:ea4362548ee0cbc266949d8a441238d9ad3600ca9910c3fe4e82ee3a50706973 --hash=sha256:ed5b3698a2bb241b7f5cbbe277eaa7fe48b07a58784fba4f75224fd066d253ad --hash=sha256:f9dcc1ae73f36e8059589b601e8e4776b9976effd76c21ad6a855a74318efd6e! Will try again.
An error occurred while installing sentry-sdk[flask]==0.14.0 --hash=sha256:8e2d38dc58dc992280487e553ec3d97a424e4d179f4fad802ef3b08f64ccf4d8 --hash=sha256:9b59e155229ea7d46a52b5c025d8c3c6d591e9dd9bb5f5f47310b2bb430038a8! Will try again.
An error occurred while installing six==1.14.0 --hash=sha256:236bdbdce46e6e6a3d61a337c0f8b763ca1e8717c03b369e87a7ec7ce1319c0a --hash=sha256:8f3cd2e254d8f793e7f3d6d9df77b92252b52637291d0f0da013c76ea2724b6c! Will try again.
An error occurred while installing swagger-ui-bundle==0.0.6 --hash=sha256:49d2e12d60a6499e9d37ea37953b5d700f4e114edc7520fe918bae5eb693a20e --hash=sha256:c5373b683487b1b914dccd23bcd9a3016afa2c2d1cda10f8713c0a9af0f91dd3 --hash=sha256:f776811855092c086dbb08216c8810a84accef8c76c796a135caa13645c5cc68! Will try again.
An error occurred while installing thoth-common==0.9.29 --hash=sha256:74e97d1d1aa8b55ddf58b3cff3783499903b2e870c0a521864e9f09ad49ce4ab --hash=sha256:a18a5eb57fabf3d82a762e4a95e6c050c447a341e28aaf1c8278c9377bcb8367! Will try again.
An error occurred while installing threadloop==1.0.2 --hash=sha256:5c90dbefab6ffbdba26afb4829d2a9df8275d13ac7dc58dccb0e279992679599 --hash=sha256:8b180aac31013de13c2ad5c834819771992d350267bddb854613ae77ef571944! Will try again.
An error occurred while installing thrift==0.13.0 --hash=sha256:9af1c86bf73433afc6010ed376a6c6aca2b54099cc0d61895f640870a9ae7d89! Will try again.
An error occurred while installing toml==0.10.0 --hash=sha256:229f81c57791a41d65e399fc06bf0848bab550a9dfd5ed66df18ce5f05e73d5c --hash=sha256:235682dd292d5899d361a811df37e04a8828a5b1da3115886b73cf81ebc9100e! Will try again.
An error occurred while installing tornado==5.1.1 --hash=sha256:0662d28b1ca9f67108c7e3b77afabfb9c7e87bde174fbda78186ecedc2499a9d --hash=sha256:4e5158d97583502a7e2739951553cbd88a72076f152b4b11b64b9a10c4c49409 --hash=sha256:732e836008c708de2e89a31cb2fa6c0e5a70cb60492bee6f1ea1047500feaf7f --hash=sha256:8154ec22c450df4e06b35f131adc4f2f3a12ec85981a203301d310abf580500f --hash=sha256:8e9d728c4579682e837c92fdd98036bd5cdefa1da2aaf6acf26947e6dd0c01c5 --hash=sha256:d4b3e5329f572f055b587efc57d29bd051589fb5a43ec8898c77a47ec2fa2bbb --hash=sha256:e5f2585afccbff22390cddac29849df463b252b711aa2ce7c5f3f342a5b3b444! Will try again.
An error occurred while installing tzlocal==2.0.0 --hash=sha256:11c9f16e0a633b4b60e1eede97d8a46340d042e67b670b290ca526576e039048 --hash=sha256:949b9dd5ba4be17190a80c0268167d7e6c92c62b30026cf9764caf3e308e5590! Will try again.
An error occurred while installing urllib3==1.25.7 --hash=sha256:a8a318824cc77d1fd4b2bec2ded92646630d7fe8619497b142c84a9e6f5a7293 --hash=sha256:f3c5fd51747d450d4dcf6f923c81f78f811aab8205fda64b0aba34a4e48b0745! Will try again.
An error occurred while installing websocket-client==0.57.0 --hash=sha256:0fc45c961324d79c781bab301359d5a1b00b13ad1b10415a4780229ef71a5549 --hash=sha256:d735b91d6d1692a6a181f2a8c9e0238e5f6373356f561bb9dc4c7af36f452010! Will try again.
An error occurred while installing werkzeug==0.16.0 --hash=sha256:7280924747b5733b246fe23972186c6b348f9ae29724135a6dfc1e53cea433e7 --hash=sha256:e5f4a1f98b52b18a93da705a7458e55afb26f32bff83ff5d19189f92462d65c4! Will try again.
An error occurred while installing wrapt==1.11.2 --hash=sha256:565a021fd19419476b9362b05eeaa094178de64f8361e44468f9e9d7843901e1! Will try again.
An error occurred while installing zipp==2.0.0 --hash=sha256:57147f6b0403b59f33fd357f169f860e031303415aeb7d04ede4839d23905ab8 --hash=sha256:7ae5ccaca427bafa9760ac3cd8f8c244bfc259794b5b6bb9db4dda2241575d09! Will try again.
[pipenv.exceptions.InstallError]:   File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/cli/command.py", line 527, in update
[pipenv.exceptions.InstallError]:       pypi_mirror=state.pypi_mirror,
[pipenv.exceptions.InstallError]:   File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 2611, in do_sync
[pipenv.exceptions.InstallError]:       system=system,
[pipenv.exceptions.InstallError]:   File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]:       pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]:   File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 862, in do_install_dependencies
[pipenv.exceptions.InstallError]:       _cleanup_procs(procs, False, failed_deps_queue, retry=False)
[pipenv.exceptions.InstallError]:   File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: []
[pipenv.exceptions.InstallError]: ['Traceback (most recent call last):', '  File "/tmp/tmpi330i315/.venv/bin/pip", line 10, in <module>', '    sys.exit(main())', '  File "/tmp/tmpi330i315/.venv/lib/python3.6/site-packages/pip/_internal/cli/main.py", line 73, in main', '    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))', '  File "/tmp/tmpi330i315/.venv/lib/python3.6/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command', '    module = importlib.import_module(module_path)', '  File "/tmp/tmpi330i315/.venv/lib64/python3.6/importlib/__init__.py", line 126, in import_module', '    return _bootstrap._gcd_import(name[level:], package, level)', '  File "<frozen importlib._bootstrap>", line 994, in _gcd_import', '  File "<frozen importlib._bootstrap>", line 971, in _find_and_load', '  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked', '  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked', '  File "<frozen importlib._bootstrap_external>", line 678, in exec_module', '  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed', '  File "/tmp/tmpi330i315/.venv/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 24, in <module>', '    from pip._internal.cli.req_command import RequirementCommand', '  File "/tmp/tmpi330i315/.venv/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 20, in <module>', '    from pip._internal.operations.prepare import RequirementPreparer', '  File "/tmp/tmpi330i315/.venv/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 16, in <module>', '    from pip._internal.distributions import (', '  File "/tmp/tmpi330i315/.venv/lib/python3.6/site-packages/pip/_internal/distributions/__init__.py", line 1, in <module>', '    from pip._internal.distributions.source import SourceDistribution', "ImportError: cannot import name 'SourceDistribution'"]
ERROR: ERROR: Package installation failed...

Environment details

Kebechet version: 1.0.0
Python version: 3.6.8
Platform: Linux-3.10.0-957.21.2.el7.x86_64-x86_64-with-redhat-8.1-Ootpa
pipenv version: pipenv, version 2018.11.26


Dependency graph
Unable to obtain dependency graph:

An error occurred while installing requests! Will try again.
An error occurred while installing thoth-common! Will try again.
An error occurred while installing toml! Will try again.
An error occurred while installing prometheus-flask-exporter! Will try again.
An error occurred while installing prometheus-client! Will try again.
An error occurred while installing gunicorn! Will try again.
An error occurred while installing connexion[swagger-ui]! Will try again.
An error occurred while installing flask! Will try again.
An error occurred while installing flask-cors! Will try again.
An error occurred while installing flask-script! Will try again.
An error occurred while installing grpcio! Will try again.
An error occurred while installing grpcio-opentracing! Will try again.
An error occurred while installing grpcio-tools! Will try again.
An error occurred while installing jaeger-client! Will try again.
An error occurred while installing opentracing-instrumentation! Will try again.
An error occurred while installing sentry-sdk[flask]! Will try again.
[pipenv.exceptions.InstallError]:   File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/cli/command.py", line 254, in install
[pipenv.exceptions.InstallError]:       editable_packages=state.installstate.editables,
[pipenv.exceptions.InstallError]:   File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 1874, in do_install
[pipenv.exceptions.InstallError]:       keep_outdated=keep_outdated
[pipenv.exceptions.InstallError]:   File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]:       pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]:   File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 862, in do_install_dependencies
[pipenv.exceptions.InstallError]:       _cleanup_procs(procs, False, failed_deps_queue, retry=False)
[pipenv.exceptions.InstallError]:   File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: []
[pipenv.exceptions.InstallError]: ['Traceback (most recent call last):', '  File "/tmp/tmpi330i315/.venv/bin/pip", line 10, in <module>', '    sys.exit(main())', '  File "/tmp/tmpi330i315/.venv/lib/python3.6/site-packages/pip/_internal/cli/main.py", line 73, in main', '    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))', '  File "/tmp/tmpi330i315/.venv/lib/python3.6/site-packages/pip/_internal/commands/__init__.py", line 96, in create_command', '    module = importlib.import_module(module_path)', '  File "/tmp/tmpi330i315/.venv/lib64/python3.6/importlib/__init__.py", line 126, in import_module', '    return _bootstrap._gcd_import(name[level:], package, level)', '  File "<frozen importlib._bootstrap>", line 994, in _gcd_import', '  File "<frozen importlib._bootstrap>", line 971, in _find_and_load', '  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked', '  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked', '  File "<frozen importlib._bootstrap_external>", line 678, in exec_module', '  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed', '  File "/tmp/tmpi330i315/.venv/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 24, in <module>', '    from pip._internal.cli.req_command import RequirementCommand', '  File "/tmp/tmpi330i315/.venv/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 20, in <module>', '    from pip._internal.operations.prepare import RequirementPreparer', '  File "/tmp/tmpi330i315/.venv/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 16, in <module>', '    from pip._internal.distributions import (', '  File "/tmp/tmpi330i315/.venv/lib/python3.6/site-packages/pip/_internal/distributions/__init__.py", line 1, in <module>', '    from pip._internal.distributions.source import SourceDistribution', "ImportError: cannot import name 'SourceDistribution'"]
ERROR: ERROR: Package installation failed...

Notes

For more information, see Pipfile and Pipfile.lock.

Once this issue is resolved, the issue will be automatically closed by bot.

add X-Thoth-Version header

Is your feature request related to a problem? Please describe.
no

Describe the solution you'd like
Add X-Thoth-Version header to HTTP responses, see also thoth-station/user-api@9044e5a

Describe alternatives you've considered
n/a

Additional context
n/a

Failed to update dependencies to their latest version

Automatic dependency update failed for the current master with SHA 348dd02.

The automatic dependency management cannot continue. Please fix errors reported bellow.

Command
  $ pipenv update --dev
Standard output
Running $ pipenv lock then $ pipenv sync.

Standard error
Creating a virtualenv for this project…
Pipfile: /tmp/tmp9nrcsfes/Pipfile
Using /usr/bin/python3 (3.6.7) to create virtualenv…

⠋ Creating virtual environment...�
⠙ Creating virtual environment...�
⠹ Creating virtual environment...�
⠸ Creating virtual environment...�
⠼ Creating virtual environment...�
⠴ Creating virtual environment...�
⠦ Creating virtual environment...�
⠧ Creating virtual environment...�
⠇ Creating virtual environment...�
⠏ Creating virtual environment...�
⠋ Creating virtual environment...�
⠙ Creating virtual environment...�
⠹ Creating virtual environment...�
⠸ Creating virtual environment...�
⠼ Creating virtual environment...�
⠴ Creating virtual environment...�
⠦ Creating virtual environment...�
⠧ Creating virtual environment...�
⠇ Creating virtual environment...�
⠏ Creating virtual environment...�
⠋ Creating virtual environment...�
⠙ Creating virtual environment...�
⠹ Creating virtual environment...�
⠸ Creating virtual environment...�
⠼ Creating virtual environment...�
⠴ Creating virtual environment...�
⠦ Creating virtual environment...�
⠧ Creating virtual environment...�
⠇ Creating virtual environment...�
⠏ Creating virtual environment...�
⠋ Creating virtual environment...�
⠙ Creating virtual environment...�
⠹ Creating virtual environment...�
⠸ Creating virtual environment...�
⠼ Creating virtual environment...�
⠴ Creating virtual environment...�
⠦ Creating virtual environment...�
⠧ Creating virtual environment...�
⠇ Creating virtual environment...�
⠏ Creating virtual environment...�
⠋ Creating virtual environment...�
⠙ Creating virtual environment...�
⠹ Creating virtual environment...�
⠸ Creating virtual environment...�
⠼ Creating virtual environment...�
⠴ Creating virtual environment...�
⠦ Creating virtual environment...�
⠧ Creating virtual environment...�
⠇ Creating virtual environment...�
⠏ Creating virtual environment...�
⠋ Creating virtual environment...�
⠙ Creating virtual environment...�
⠹ Creating virtual environment...�
⠸ Creating virtual environment...Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /tmp/tmp9nrcsfes/.venv/bin/python3
Also creating executable in /tmp/tmp9nrcsfes/.venv/bin/python
Installing setuptools, pip, wheel...
done.

�✔ Successfully created virtual environment! 
Virtualenv location: /tmp/tmp9nrcsfes/.venv
Locking [dev-packages] dependencies…

⠋ Locking...�
⠙ Locking...�
⠹ Locking...�
⠸ Locking...�
⠼ Locking...�
⠴ Locking...�
⠦ Locking...�
⠧ Locking...�
⠇ Locking...�
⠏ Locking...�
⠋ Locking...�
⠙ Locking...�
⠹ Locking...�
⠸ Locking...�
⠼ Locking...�
⠴ Locking...�
⠦ Locking...�
⠧ Locking...�
⠇ Locking...�
⠏ Locking...�
⠋ Locking...�
⠙ Locking...�
⠹ Locking...�
⠸ Locking...�
⠼ Locking...�
⠴ Locking...�
⠦ Locking...�
⠧ Locking...�
⠇ Locking...�
⠏ Locking...�
⠋ Locking...�
⠙ Locking...�
⠹ Locking...�
⠸ Locking...�
⠼ Locking...�
⠴ Locking...�
⠦ Locking...�
⠧ Locking...�
⠇ Locking...�
⠏ Locking...�
⠋ Locking...�
⠙ Locking...�
⠹ Locking...�
⠸ Locking...�
⠼ Locking...�✔ Success! 
Locking [packages] dependencies…

⠋ Locking...�
⠙ Locking...�
⠹ Locking...�
⠸ Locking...�
⠼ Locking...�
⠴ Locking...�
⠦ Locking...�
⠧ Locking...�
⠇ Locking...�
⠏ Locking...�
⠋ Locking...�
⠙ Locking...�
⠹ Locking...�
⠸ Locking...�
⠼ Locking...�
⠴ Locking...�
⠦ Locking...�
⠧ Locking...�
⠇ Locking...�
⠏ Locking...�
⠋ Locking...�
⠙ Locking...�
⠹ Locking...�
⠸ Locking...�
⠼ Locking...�
⠴ Locking...�
⠦ Locking...�
⠧ Locking...�
⠇ Locking...�
⠏ Locking...�
⠋ Locking...�
⠙ Locking...�
⠹ Locking...�
⠸ Locking...�
⠼ Locking...�
⠴ Locking...�
⠦ Locking...�
⠧ Locking...�
⠇ Locking...�
⠏ Locking...�
⠋ Locking...�
⠙ Locking...�
⠹ Locking...�
⠸ Locking...�
⠼ Locking...�
⠴ Locking...�
⠦ Locking...�
⠧ Locking...�
⠇ Locking...�
⠏ Locking...�
⠋ Locking...�
⠙ Locking...�
⠹ Locking...�
⠸ Locking...�
⠼ Locking...�
⠴ Locking...�
⠦ Locking...�
⠧ Locking...�
⠇ Locking...�
⠏ Locking...�
⠋ Locking...�
⠙ Locking...�
⠹ Locking...�
⠸ Locking...�
⠼ Locking...�
⠴ Locking...�
⠦ Locking...�
⠧ Locking...�
⠇ Locking...�
⠏ Locking...�
⠋ Locking...�
⠙ Locking...�
⠹ Locking...�
⠸ Locking...�
⠼ Locking...�
⠴ Locking...�
⠦ Locking...�
⠧ Locking...�✘ Locking Failed! 
[pipenv.exceptions.ResolutionFailure]:       req_dir=requirements_dir
[pipenv.exceptions.ResolutionFailure]:   File "/usr/local/lib/python3.6/site-packages/pipenv/utils.py", line 726, in resolve_deps
[pipenv.exceptions.ResolutionFailure]:       req_dir=req_dir,
[pipenv.exceptions.ResolutionFailure]:   File "/usr/local/lib/python3.6/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
[pipenv.exceptions.ResolutionFailure]:       resolved_tree = resolver.resolve()
[pipenv.exceptions.ResolutionFailure]:   File "/usr/local/lib/python3.6/site-packages/pipenv/utils.py", line 395, in resolve
[pipenv.exceptions.ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]:       pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches pyyaml>=3.11,>=3.12,>=3.13,>=4.2b1
[pipenv.exceptions.ResolutionFailure]:       Tried: 3.10, 3.10, 3.11, 3.11, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13
[pipenv.exceptions.ResolutionFailure]:       Skipped pre-versions: 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 4.2b1, 4.2b2, 4.2b4, 4.2b4, 4.2b4, 4.2b4, 4.2b4
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
 Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches pyyaml>=3.11,>=3.12,>=3.13,>=4.2b1
Tried: 3.10, 3.10, 3.11, 3.11, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13
Skipped pre-versions: 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 4.2b1, 4.2b2, 4.2b4, 4.2b4, 4.2b4, 4.2b4, 4.2b4
There are incompatible versions in the resolved dependencies.
[pipenv.exceptions.ResolutionFailure]:   File "/usr/local/lib/python3.6/site-packages/pipenv/utils.py", line 726, in resolve_deps
[pipenv.exceptions.ResolutionFailure]:       req_dir=req_dir,
[pipenv.exceptions.ResolutionFailure]:   File "/usr/local/lib/python3.6/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
[pipenv.exceptions.ResolutionFailure]:       resolved_tree = resolver.resolve()
[pipenv.exceptions.ResolutionFailure]:   File "/usr/local/lib/python3.6/site-packages/pipenv/utils.py", line 395, in resolve
[pipenv.exceptions.ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]:       pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches pyyaml>=3.11,>=3.12,>=3.13,>=4.2b1
[pipenv.exceptions.ResolutionFailure]:       Tried: 3.10, 3.10, 3.11, 3.11, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13
[pipenv.exceptions.ResolutionFailure]:       Skipped pre-versions: 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 4.2b1, 4.2b2, 4.2b4, 4.2b4, 4.2b4, 4.2b4, 4.2b4
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
 Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches pyyaml>=3.11,>=3.12,>=3.13,>=4.2b1
Tried: 3.10, 3.10, 3.11, 3.11, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.12, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13, 3.13
Skipped pre-versions: 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13b1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 3.13rc1, 4.2b1, 4.2b2, 4.2b4, 4.2b4, 4.2b4, 4.2b4, 4.2b4
There are incompatible versions in the resolved dependencies.

Environment details

Kebechet version: 1.0.0
Python version: 3.6.7
Platform: Linux-3.10.0-862.9.1.el7.x86_64-x86_64-with-fedora-28-Twenty_Eight
pipenv version: pipenv, version 2018.11.26


Dependency graph
connexion==2.2.0
  - clickclick [required: >=1.2, installed: 1.2.2]
    - click [required: >=4.0, installed: 7.0]
    - PyYAML [required: >=3.11, installed: 3.13]
  - flask [required: >=0.10.1, installed: 1.0.2]
    - click [required: >=5.1, installed: 7.0]
    - itsdangerous [required: >=0.24, installed: 1.1.0]
    - Jinja2 [required: >=2.10, installed: 2.10]
      - MarkupSafe [required: >=0.23, installed: 1.1.1]
    - Werkzeug [required: >=0.14, installed: 0.14.1]
  - inflection [required: >=0.3.1, installed: 0.3.1]
  - jsonschema [required: >=2.5.1,<3.0.0, installed: 2.6.0]
  - openapi-spec-validator [required: >=0.2.4, installed: 0.2.5]
    - jsonschema [required: <3, installed: 2.6.0]
    - PyYAML [required: >=4.2b1, installed: 3.13]
    - six [required: Any, installed: 1.12.0]
  - PyYAML [required: >=3.13, installed: 3.13]
  - requests [required: >=2.9.1, installed: 2.21.0]
    - certifi [required: >=2017.4.17, installed: 2018.11.29]
    - chardet [required: >=3.0.2,<3.1.0, installed: 3.0.4]
    - idna [required: >=2.5,<2.9, installed: 2.8]
    - urllib3 [required: >=1.21.1,<1.25, installed: 1.24.1]
  - six [required: >=1.9, installed: 1.12.0]
Flask-Script==2.0.6
  - Flask [required: Any, installed: 1.0.2]
    - click [required: >=5.1, installed: 7.0]
    - itsdangerous [required: >=0.24, installed: 1.1.0]
    - Jinja2 [required: >=2.10, installed: 2.10]
      - MarkupSafe [required: >=0.23, installed: 1.1.1]
    - Werkzeug [required: >=0.14, installed: 0.14.1]
gunicorn==19.9.0
openshift==0.8.6
  - dictdiffer [required: Any, installed: 0.7.1]
  - jinja2 [required: Any, installed: 2.10]
    - MarkupSafe [required: >=0.23, installed: 1.1.1]
  - kubernetes [required: >=8.0.0,<9.0.0, installed: 8.0.1]
    - adal [required: >=1.0.2, installed: 1.2.1]
      - cryptography [required: >=1.1.0, installed: 2.5]
        - asn1crypto [required: >=0.21.0, installed: 0.24.0]
        - cffi [required: >=1.8,!=1.11.3, installed: 1.12.1]
          - pycparser [required: Any, installed: 2.19]
        - six [required: >=1.4.1, installed: 1.12.0]
      - PyJWT [required: >=1.0.0, installed: 1.7.1]
      - python-dateutil [required: >=2.1.0, installed: 2.8.0]
        - six [required: >=1.5, installed: 1.12.0]
      - requests [required: >=2.0.0, installed: 2.21.0]
        - certifi [required: >=2017.4.17, installed: 2018.11.29]
        - chardet [required: >=3.0.2,<3.1.0, installed: 3.0.4]
        - idna [required: >=2.5,<2.9, installed: 2.8]
        - urllib3 [required: >=1.21.1,<1.25, installed: 1.24.1]
    - certifi [required: >=14.05.14, installed: 2018.11.29]
    - google-auth [required: >=1.0.1, installed: 1.6.3]
      - cachetools [required: >=2.0.0, installed: 3.1.0]
      - pyasn1-modules [required: >=0.2.1, installed: 0.2.4]
        - pyasn1 [required: >=0.4.1,<0.5.0, installed: 0.4.5]
      - rsa [required: >=3.1.4, installed: 4.0]
        - pyasn1 [required: >=0.1.3, installed: 0.4.5]
      - six [required: >=1.9.0, installed: 1.12.0]
    - python-dateutil [required: >=2.5.3, installed: 2.8.0]
      - six [required: >=1.5, installed: 1.12.0]
    - pyyaml [required: >=3.12, installed: 3.13]
    - requests [required: Any, installed: 2.21.0]
      - certifi [required: >=2017.4.17, installed: 2018.11.29]
      - chardet [required: >=3.0.2,<3.1.0, installed: 3.0.4]
      - idna [required: >=2.5,<2.9, installed: 2.8]
      - urllib3 [required: >=1.21.1,<1.25, installed: 1.24.1]
    - requests-oauthlib [required: Any, installed: 1.2.0]
      - oauthlib [required: >=3.0.0, installed: 3.0.1]
      - requests [required: >=2.0.0, installed: 2.21.0]
        - certifi [required: >=2017.4.17, installed: 2018.11.29]
        - chardet [required: >=3.0.2,<3.1.0, installed: 3.0.4]
        - idna [required: >=2.5,<2.9, installed: 2.8]
        - urllib3 [required: >=1.21.1,<1.25, installed: 1.24.1]
    - setuptools [required: >=21.0.0, installed: 40.8.0]
    - six [required: >=1.9.0, installed: 1.12.0]
    - urllib3 [required: >=1.23, installed: 1.24.1]
    - websocket-client [required: >=0.32.0,!=0.42.*,!=0.41.*,!=0.40.0, installed: 0.55.0]
      - six [required: Any, installed: 1.12.0]
  - python-string-utils [required: Any, installed: 0.6.0]
  - ruamel.yaml [required: >=0.15, installed: 0.15.88]
  - six [required: Any, installed: 1.12.0]
prometheus-flask-exporter==0.5.1
  - flask [required: Any, installed: 1.0.2]
    - click [required: >=5.1, installed: 7.0]
    - itsdangerous [required: >=0.24, installed: 1.1.0]
    - Jinja2 [required: >=2.10, installed: 2.10]
      - MarkupSafe [required: >=0.23, installed: 1.1.1]
    - Werkzeug [required: >=0.14, installed: 0.14.1]
  - prometheus-client [required: Any, installed: 0.6.0]
pylint==2.2.2
  - astroid [required: >=2.0.0, installed: 2.1.0]
    - lazy-object-proxy [required: Any, installed: 1.3.1]
    - six [required: Any, installed: 1.12.0]
    - typed-ast [required: Any, installed: 1.3.1]
    - wrapt [required: Any, installed: 1.11.1]
  - isort [required: >=4.2.5, installed: 4.3.4]
  - mccabe [required: Any, installed: 0.6.1]
swagger-ui-bundle==0.0.3
  - Jinja2 [required: >=2.0, installed: 2.10]
    - MarkupSafe [required: >=0.23, installed: 1.1.1]
thoth-common==0.7.1
  - attrs [required: Any, installed: 18.2.0]
  - daiquiri [required: Any, installed: 1.5.0]
  - pyyaml [required: Any, installed: 3.13]
  - requests [required: Any, installed: 2.21.0]
    - certifi [required: >=2017.4.17, installed: 2018.11.29]
    - chardet [required: >=3.0.2,<3.1.0, installed: 3.0.4]
    - idna [required: >=2.5,<2.9, installed: 2.8]
    - urllib3 [required: >=1.21.1,<1.25, installed: 1.24.1]
  - rfc5424-logging-handler [required: Any, installed: 1.4.1]
    - pytz [required: Any, installed: 2018.9]
    - tzlocal [required: Any, installed: 1.5.1]
      - pytz [required: Any, installed: 2018.9]
  - sentry-sdk [required: Any, installed: 0.7.3]
    - certifi [required: Any, installed: 2018.11.29]
    - urllib3 [required: Any, installed: 1.24.1]
toml==0.10.0

Notes

For more information, see Pipfile and Pipfile.lock.

Once this issue is resolved, the issue will be automatically closed by bot.

TypeError: must be str, not function

Sentry Issue: THOTH-1KWM

TypeError: must be str, not function
(8 additional frame(s) were not displayed)
...
  File "connexion/decorators/validation.py", line 172, in wrapper
    response = function(request)
  File "connexion/decorators/parameter.py", line 126, in wrapper
    return function(**kwargs)
  File "amun/api_v1.py", line 90, in post_generate_dockerfile
    dockerfile, error = _do_create_dockerfile(specification)
  File "amun/api_v1.py", line 71, in _do_create_dockerfile
    return create_dockerfile(specification)
  File "amun/dockerfile.py", line 95, in create_dockerfile
    dockerfile += _determine_update_string

Exception on /api/v1/_debug/generate-dockerfile [POST]

escape content

# TODO: escape content
dockerfile += f'RUN CONTENT="{content}" ' + 'echo "${CONTENT}" >' + path + '\n'
# Create workdir only if needed.
if 'python' in specification or 'script' in specification:
dockerfile += f'RUN mkdir -p /home/amun && chmod -R 777 /home/amun\n'


This issue was generated by todo based on a TODO comment in 1e3409c when #1 was merged. cc @fridex.

Failed to update dependencies to their latest version

Automatic dependency update failed for the current master with SHA 483feb7.

The automatic dependency management cannot continue. Please fix errors reported bellow.

Command
  $ pipenv update --dev
Standard output
Running $ pipenv lock then $ pipenv sync.

Standard error
Creating a virtualenv for this project…
Pipfile: /tmp/tmp_9855pqd/Pipfile
Using /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python (3.6.8) to create virtualenv…
Already using interpreter /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python
Using real prefix '/usr'
  No LICENSE.txt / LICENSE found in source
New python executable in /tmp/tmp_9855pqd/.venv/bin/python
Installing setuptools, pip, wheel...
done.
Running virtualenv with interpreter /home/user/.local/share/virtualenvs/user-5PivF_Od/bin/python

Virtualenv location: /tmp/tmp_9855pqd/.venv
Locking [dev-packages] dependencies…
Locking [packages] dependencies…

FAIL
Traceback (most recent call last):
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 126, in <module>
    main()
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 119, in main
    parsed.requirements_dir, parsed.packages)
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 85, in _main
    requirements_dir=requirements_dir,
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 69, in resolve
    req_dir=requirements_dir
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 726, in resolve_deps
    req_dir=req_dir,
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
    resolved_tree = resolver.resolve()
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 385, in resolve
    results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 102, in resolve
    has_changed, best_matches = self._resolve_one_round()
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 206, in _resolve_one_round
    for dep in self._iter_dependencies(best_match):
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 301, in _iter_dependencies
    dependencies = self.repository.get_dependencies(ireq)
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 234, in get_dependencies
    legacy_results = self.get_legacy_dependencies(ireq)
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 419, in get_legacy_dependencies
    os.makedirs(download_dir)
  File "/tmp/tmp_9855pqd/.venv/lib64/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/user/.cache/pipenv/pkgs'
File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 126, in <module>
    main()
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 119, in main
    parsed.requirements_dir, parsed.packages)
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 85, in _main
    requirements_dir=requirements_dir,
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/resolver.py", line 69, in resolve
    req_dir=requirements_dir
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 726, in resolve_deps
    req_dir=req_dir,
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
    resolved_tree = resolver.resolve()
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 385, in resolve
    results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 102, in resolve
    has_changed, best_matches = self._resolve_one_round()
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 206, in _resolve_one_round
    for dep in self._iter_dependencies(best_match):
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/resolver.py", line 301, in _iter_dependencies
    dependencies = self.repository.get_dependencies(ireq)
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 234, in get_dependencies
    legacy_results = self.get_legacy_dependencies(ireq)
  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 419, in get_legacy_dependencies
    os.makedirs(download_dir)
  File "/tmp/tmp_9855pqd/.venv/lib64/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/user/.cache/pipenv/pkgs'

['Traceback (most recent call last):\n', '  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 501, in create_spinner\n    yield sp\n', '  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 649, in venv_resolve_deps\n    c = resolve(cmd, sp)\n', '  File "/home/user/.local/share/virtualenvs/user-5PivF_Od/lib/python3.6/site-packages/pipenv/utils.py", line 539, in resolve\n    sys.exit(c.return_code)\n', 'SystemExit: 1\n']

Environment details

Kebechet version: 1.0.0
Python version: 3.6.8
Platform: Linux-3.10.0-957.21.2.el7.x86_64-x86_64-with-redhat-8.0-Ootpa
pipenv version: pipenv, version 2018.11.26


Dependency graph
connexion==2.4.0
  - clickclick [required: >=1.2, installed: 1.2.2]
    - click [required: >=4.0, installed: 7.0]
    - PyYAML [required: >=3.11, installed: 5.1.2]
  - flask [required: >=1.0.4, installed: 1.1.1]
    - click [required: >=5.1, installed: 7.0]
    - itsdangerous [required: >=0.24, installed: 1.1.0]
    - Jinja2 [required: >=2.10.1, installed: 2.10.3]
      - MarkupSafe [required: >=0.23, installed: 1.1.1]
    - Werkzeug [required: >=0.15, installed: 0.16.0]
  - inflection [required: >=0.3.1, installed: 0.3.1]
  - jsonschema [required: >=2.5.1, installed: 3.1.1]
    - attrs [required: >=17.4.0, installed: 19.3.0]
    - importlib-metadata [required: Any, installed: 0.23]
      - zipp [required: >=0.5, installed: 0.6.0]
        - more-itertools [required: Any, installed: 7.2.0]
    - pyrsistent [required: >=0.14.0, installed: 0.15.4]
      - six [required: Any, installed: 1.12.0]
    - setuptools [required: Any, installed: 41.4.0]
    - six [required: >=1.11.0, installed: 1.12.0]
  - openapi-spec-validator [required: >=0.2.4, installed: 0.2.8]
    - jsonschema [required: Any, installed: 3.1.1]
      - attrs [required: >=17.4.0, installed: 19.3.0]
      - importlib-metadata [required: Any, installed: 0.23]
        - zipp [required: >=0.5, installed: 0.6.0]
          - more-itertools [required: Any, installed: 7.2.0]
      - pyrsistent [required: >=0.14.0, installed: 0.15.4]
        - six [required: Any, installed: 1.12.0]
      - setuptools [required: Any, installed: 41.4.0]
      - six [required: >=1.11.0, installed: 1.12.0]
    - PyYAML [required: >=5.1, installed: 5.1.2]
    - six [required: Any, installed: 1.12.0]
  - PyYAML [required: >=5.1, installed: 5.1.2]
  - requests [required: >=2.9.1, installed: 2.22.0]
    - certifi [required: >=2017.4.17, installed: 2019.9.11]
    - chardet [required: >=3.0.2,<3.1.0, installed: 3.0.4]
    - idna [required: >=2.5,<2.9, installed: 2.8]
    - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.6]
  - six [required: >=1.9, installed: 1.12.0]
Flask-Script==2.0.6
  - Flask [required: Any, installed: 1.1.1]
    - click [required: >=5.1, installed: 7.0]
    - itsdangerous [required: >=0.24, installed: 1.1.0]
    - Jinja2 [required: >=2.10.1, installed: 2.10.3]
      - MarkupSafe [required: >=0.23, installed: 1.1.1]
    - Werkzeug [required: >=0.15, installed: 0.16.0]
grpcio-opentracing==1.1.4
  - grpcio [required: >=1.1.3,<2.0, installed: 1.24.1]
    - six [required: >=1.5.2, installed: 1.12.0]
  - opentracing [required: >=1.2.2, installed: 2.2.0]
  - six [required: >=1.10, installed: 1.12.0]
grpcio-tools==1.24.1
  - grpcio [required: >=1.24.1, installed: 1.24.1]
    - six [required: >=1.5.2, installed: 1.12.0]
  - protobuf [required: >=3.5.0.post1, installed: 3.10.0]
    - setuptools [required: Any, installed: 41.4.0]
    - six [required: >=1.9, installed: 1.12.0]
gunicorn==19.9.0
jaeger-client==4.1.0
  - opentracing [required: >=2.1,<3.0, installed: 2.2.0]
  - threadloop [required: >=1,<2, installed: 1.0.2]
    - tornado [required: Any, installed: 5.1.1]
  - thrift [required: Any, installed: 0.11.0]
    - six [required: >=1.7.2, installed: 1.12.0]
  - tornado [required: >=4.3,<6, installed: 5.1.1]
opentracing-instrumentation==3.2.1
  - contextlib2 [required: Any, installed: 0.6.0.post1]
  - future [required: Any, installed: 0.18.1]
  - opentracing [required: >=2,<3, installed: 2.2.0]
  - six [required: Any, installed: 1.12.0]
  - tornado [required: >=4.1,<6, installed: 5.1.1]
  - wrapt [required: Any, installed: 1.11.2]
prometheus-flask-exporter==0.11.0
  - flask [required: Any, installed: 1.1.1]
    - click [required: >=5.1, installed: 7.0]
    - itsdangerous [required: >=0.24, installed: 1.1.0]
    - Jinja2 [required: >=2.10.1, installed: 2.10.3]
      - MarkupSafe [required: >=0.23, installed: 1.1.1]
    - Werkzeug [required: >=0.15, installed: 0.16.0]
  - prometheus-client [required: Any, installed: 0.7.1]
swagger-ui-bundle==0.0.5
  - Jinja2 [required: >=2.0, installed: 2.10.3]
    - MarkupSafe [required: >=0.23, installed: 1.1.1]
thoth-common==0.9.14
  - attrs [required: Any, installed: 19.3.0]
  - daiquiri [required: Any, installed: 1.6.0]
  - openshift [required: ==0.8.0, installed: 0.8.0]
    - dictdiffer [required: Any, installed: 0.8.0]
    - jinja2 [required: Any, installed: 2.10.3]
      - MarkupSafe [required: >=0.23, installed: 1.1.1]
    - kubernetes [required: >=8.0.0,<9.0.0, installed: 8.0.2]
      - adal [required: >=1.0.2, installed: 1.2.2]
        - cryptography [required: >=1.1.0, installed: 2.8]
          - cffi [required: >=1.8,!=1.11.3, installed: 1.13.0]
            - pycparser [required: Any, installed: 2.19]
          - six [required: >=1.4.1, installed: 1.12.0]
        - PyJWT [required: >=1.0.0, installed: 1.7.1]
        - python-dateutil [required: >=2.1.0, installed: 2.8.0]
          - six [required: >=1.5, installed: 1.12.0]
        - requests [required: >=2.0.0, installed: 2.22.0]
          - certifi [required: >=2017.4.17, installed: 2019.9.11]
          - chardet [required: >=3.0.2,<3.1.0, installed: 3.0.4]
          - idna [required: >=2.5,<2.9, installed: 2.8]
          - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.6]
      - certifi [required: >=14.05.14, installed: 2019.9.11]
      - google-auth [required: >=1.0.1, installed: 1.6.3]
        - cachetools [required: >=2.0.0, installed: 3.1.1]
        - pyasn1-modules [required: >=0.2.1, installed: 0.2.7]
          - pyasn1 [required: >=0.4.6,<0.5.0, installed: 0.4.7]
        - rsa [required: >=3.1.4, installed: 4.0]
          - pyasn1 [required: >=0.1.3, installed: 0.4.7]
        - six [required: >=1.9.0, installed: 1.12.0]
      - python-dateutil [required: >=2.5.3, installed: 2.8.0]
        - six [required: >=1.5, installed: 1.12.0]
      - pyyaml [required: >=3.12, installed: 5.1.2]
      - requests [required: Any, installed: 2.22.0]
        - certifi [required: >=2017.4.17, installed: 2019.9.11]
        - chardet [required: >=3.0.2,<3.1.0, installed: 3.0.4]
        - idna [required: >=2.5,<2.9, installed: 2.8]
        - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.6]
      - requests-oauthlib [required: Any, installed: 1.2.0]
        - oauthlib [required: >=3.0.0, installed: 3.1.0]
        - requests [required: >=2.0.0, installed: 2.22.0]
          - certifi [required: >=2017.4.17, installed: 2019.9.11]
          - chardet [required: >=3.0.2,<3.1.0, installed: 3.0.4]
          - idna [required: >=2.5,<2.9, installed: 2.8]
          - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.6]
      - setuptools [required: >=21.0.0, installed: 41.4.0]
      - six [required: >=1.9.0, installed: 1.12.0]
      - urllib3 [required: >=1.24.2, installed: 1.25.6]
      - websocket-client [required: >=0.32.0,!=0.42.*,!=0.41.*,!=0.40.0, installed: 0.56.0]
        - six [required: Any, installed: 1.12.0]
    - python-string-utils [required: Any, installed: 0.6.0]
    - ruamel.yaml [required: >=0.15, installed: 0.16.5]
      - ruamel.yaml.clib [required: >=0.1.2, installed: 0.2.0]
    - six [required: Any, installed: 1.12.0]
  - pyyaml [required: Any, installed: 5.1.2]
  - requests [required: Any, installed: 2.22.0]
    - certifi [required: >=2017.4.17, installed: 2019.9.11]
    - chardet [required: >=3.0.2,<3.1.0, installed: 3.0.4]
    - idna [required: >=2.5,<2.9, installed: 2.8]
    - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.6]
  - rfc5424-logging-handler [required: Any, installed: 1.4.3]
    - pytz [required: Any, installed: 2019.3]
    - tzlocal [required: Any, installed: 2.0.0]
      - pytz [required: Any, installed: 2019.3]
  - sentry-sdk [required: Any, installed: 0.13.0]
    - certifi [required: Any, installed: 2019.9.11]
    - urllib3 [required: >=1.9, installed: 1.25.6]
toml==0.10.0

Notes

For more information, see Pipfile and Pipfile.lock.

Once this issue is resolved, the issue will be automatically closed by bot.

ImportError: cannot import name 'PerformanceMaskStore'

Sentry Issue: THOTH-V4

ImportError: cannot import name 'PerformanceMaskStore'
(14 additional frame(s) were not displayed)
...
  File "connexion/resolver.py", line 61, in resolve_function_from_operation_id
    return self.function_resolver(operation_id)
  File "connexion/utils.py", line 99, in get_function_from_name
    raise last_import_error
  File "connexion/utils.py", line 87, in get_function_from_name
    module = importlib.import_module(module_name)
  File "__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "isis/api_v1.py", line 27, in <module>
    from thoth.worker.storages import PerformanceMaskStore

Exception in worker process

Correctly handle \n when writing file

We should correctly handle '\n' when writing data into file. When a performance script has "\n" in it for example:

print("Hello, Thoth\n")

The file placed into container image is:

print("Hello, Thoth
")

Which causes syntax errors. We should correctly escape it (see dockerfile.py file).

Inspection job does not run

Describe the bug
Inspection job does not run.

To Reproduce
Steps to reproduce the behavior:

  1. Run inspection

Expected behavior
Start of the inspection job, after build is successful

Screenshots


2019-07-10 12:12:24,863 [1] ERROR    thoth.workload_operator:195: Failed run requested workload for event ResourceInstance[ConfigMap]:
--
  | apiVersion: v1
  | data:
  | run_method_name: run_inspection_job
  | run_method_parameters: '{"registry": null, "infra_namespace": null, "memory_requests":
  | "4Gi", "cpu_requests": "2", "use_hw_template": true, "parameters": {"CPU_FAMILY":
  | 6, "CPU_MODEL": 94, "PHYSICAL_CPUS": 32, "PROCESSOR": "Intel Core Processor (Skylake,
  | IBRS)", "AMUN_INSPECTION_ID": "inspection-4112038c7aed7928"}, "THOTH_INFRA_NAMESPACE":
  | null}'
  | template_method_name: get_inspection_job_template
  | template_method_parameters: '{"use_hw_template": true, "cpu_requests": "2", "memory_requests":
  | "4Gi"}'
  | kind: ConfigMap
  | metadata:
  | creationTimestamp: '2019-07-10T11:27:51Z'
  | labels:
  | app: thoth
  | component: amun-inspection
  | operator: workload
  | name: inspection-4112038c7aed7928
  | namespace: thoth-amun-inspection-stage
  | resourceVersion: '142761528'
  | selfLink: /api/v1/namespaces/thoth-amun-inspection-stage/configmaps/inspection-4112038c7aed7928
  | uid: c0b7c5dc-a305-11e9-a6d2-fa163eda9ab7
  | : run_inspection_job() got an unexpected keyword argument 'registry'
  | Traceback (most recent call last):
  | File "app.py", line 190, in cli
  | method_result = method(**method_parameters, template=template)
  | TypeError: run_inspection_job() got an unexpected keyword argument 'registry'

NameError: name 'namespace' is not defined

Sentry Issue: THOTH-1KEG

NameError: name 'namespace' is not defined
(2 additional frame(s) were not displayed)
...
  File "click/core.py", line 717, in main
    rv = self.invoke(ctx)
  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 401, in cli
    inspection_only_ceph_sync=inspection_only_ceph_sync,
  File "app.py", line 254, in _do_sync
    _METRIC_SECONDS.labels(category=category, namespace=namespace).set(sync_time)

Unable to retrieve logs of jobs

Sentry Issue: THOTH-1KB4

ApiException: (500)
Reason: INTERNAL SERVER ERROR
HTTP response headers: HTTPHeaderDict({'Server': 'gunicorn/19.9.0', 'Date': 'Thu, 25 Jul 2019 08:37:31 GMT', 'Content-Type': 'application/json', 'Content-Length': '177', 'Set-Cookie': '22026b1cd69ee41ec36a423736eda140=58b2d972174c5618cf76044f1eb37bab; path=/; HttpOnly'})
HTTP response body: {"details":{"datetime":"2019-07-25T08:37:31.904612","type":"InternalServerError"},"error":"Internal server error occurred, please contact administrator with provided details."}


(11 additional frame(s) were not displayed)
...
  File "amun/swagger_client/api_client.py", line 329, in call_api
    _preload_content, _request_timeout)
  File "amun/swagger_client/api_client.py", line 160, in __call_api
    _request_timeout=_request_timeout)
  File "amun/swagger_client/api_client.py", line 350, in request
    headers=headers)
  File "amun/swagger_client/rest.py", line 238, in GET
    query_params=query_params)
  File "amun/swagger_client/rest.py", line 228, in request
    raise ApiException(http_resp=r)

Missing templates for inspections in test and stage on PSI

Describe the bug

PSI deployments stage and test have missing inspection templates.

To Reproduce

I've manually added templates for now so no reproducer.

Expected behavior

Templates needed for inspection should be present on fresh deployment.

Required templates are:

  • openshift/inspectBuildConfigWithCPU-template.yaml
  • openshift/inspectImageStream-template.yaml
  • openshift/inspectJob-template.yaml
  • openshift/inspectJobWithCPU-template.yaml

InvalidSpecification: {'description': 'Successful response with insection id.', 'schema': {'$ref': '#/definitions/Inspe...

Sentry Issue: THOTH-EA

InvalidSpecification: {'description': 'Successful response with insection id.', 'schema': {'$ref': '#/definitions/InspectionResponse', 'x-scope': ['']}} is not valid under any of the given schemas

Failed validating 'oneOf' in schema['properties']['paths']['patternProperties']['^/']['properties']['post']['properties']['responses']['patternProperties']['^([0-9]{3})$|^(default)$']:
    {'oneOf': [{'$ref': '#/definitions/response'},
               {'$ref': '#/definitions/jsonReference'}]}

On instance['paths']['/inspect']['post']['responses']['202']:
    {'description': 'Successful response with insection id.',
     'schema': {'$ref': '#/definitions/InspectionResponse',
                'x-scope': ['']}}
(11 additional frame(s) were not displayed)
...
  File "connexion/apis/abstract.py", line 129, in load
    return cls.from_file(spec, arguments=arguments)
  File "connexion/apis/abstract.py", line 100, in from_file
    return cls.from_dict(spec)
  File "connexion/apis/abstract.py", line 123, in from_dict
    return Swagger2Specification(spec)
  File "connexion/apis/abstract.py", line 48, in __init__
    self._validate_spec()
  File "connexion/apis/abstract.py", line 183, in _validate_spec
    raise InvalidSpecification.create_from(e)

Exception in worker process

Failed to update dependencies to their latest version

Automatic dependency update failed for the current master with SHA d0a4268.

The automatic dependency management cannot continue. Please fix errors reported bellow.

Command
  $ pipenv update --dev
Standard output
Running $ pipenv lock then $ pipenv sync.
Installing dependencies from Pipfile.lock (511318)…
Installing initially failed dependencies…

Standard error
Creating a virtualenv for this project…
Pipfile: /tmp/tmphw8cn697/Pipfile
Using /usr/bin/python3 (3.6.8) to create virtualenv…
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
  No LICENSE.txt / LICENSE found in source
New python executable in /tmp/tmphw8cn697/.venv/bin/python3
Also creating executable in /tmp/tmphw8cn697/.venv/bin/python
Installing setuptools, pip, wheel...
done.

Virtualenv location: /tmp/tmphw8cn697/.venv
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (511318)!
An error occurred while installing cffi==1.13.0 --hash=sha256:8fe230f612c18af1df6f348d02d682fe2c28ca0a6c3856c99599cdacae7cf226! Will try again.
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 2611, in do_sync
[pipenv.exceptions.InstallError]:       system=system,
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]:       pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 859, in do_install_dependencies
[pipenv.exceptions.InstallError]:       retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 763, in batch_install
[pipenv.exceptions.InstallError]:       _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry)
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: ['Collecting cffi==1.13.0', '  Using cached https://files.pythonhosted.org/packages/d6/cf/ba7e2df852a2fc807d48b3f7bea46f741830be4f047a0712e6de3e95fb6a/cffi-1.13.0.tar.gz', 'Building wheels for collected packages: cffi', '  Building wheel for cffi (setup.py): started', "  Building wheel for cffi (setup.py): finished with status 'error'", '  Running setup.py clean for cffi', 'Failed to build cffi', 'Installing collected packages: cffi', '    Running setup.py install for cffi: started', "    Running setup.py install for cffi: finished with status 'error'"]
[pipenv.exceptions.InstallError]: ['ERROR: Command errored out with exit status 1:', '   command: /tmp/tmphw8cn697/.venv/bin/python3 -u -c \'import sys, setuptools, tokenize; sys.argv[0] = \'"\'"\'/tmp/pip-install-xico0um2/cffi/setup.py\'"\'"\'; __file__=\'"\'"\'/tmp/pip-install-xico0um2/cffi/setup.py\'"\'"\';f=getattr(tokenize, \'"\'"\'open\'"\'"\', open)(__file__);code=f.read().replace(\'"\'"\'\\r\\n\'"\'"\', \'"\'"\'\\n\'"\'"\');f.close();exec(compile(code, __file__, \'"\'"\'exec\'"\'"\'))\' bdist_wheel -d /tmp/pip-wheel-u400ni6w --python-tag cp36', '       cwd: /tmp/pip-install-xico0um2/cffi/', '  Complete output (58 lines):', '  Package libffi was not found in the pkg-config search path.', "  Perhaps you should add the directory containing `libffi.pc'", '  to the PKG_CONFIG_PATH environment variable', "  Package 'libffi', required by 'virtual:world', not found", '  Package libffi was not found in the pkg-config search path.', "  Perhaps you should add the directory containing `libffi.pc'", '  to the PKG_CONFIG_PATH environment variable', "  Package 'libffi', required by 'virtual:world', not found", '  Package libffi was not found in the pkg-config search path.', "  Perhaps you should add the directory containing `libffi.pc'", '  to the PKG_CONFIG_PATH environment variable', "  Package 'libffi', required by 'virtual:world', not found", '  Package libffi was not found in the pkg-config search path.', "  Perhaps you should add the directory containing `libffi.pc'", '  to the PKG_CONFIG_PATH environment variable', "  Package 'libffi', required by 'virtual:world', not found", '  Package libffi was not found in the pkg-config search path.', "  Perhaps you should add the directory containing `libffi.pc'", '  to the PKG_CONFIG_PATH environment variable', "  Package 'libffi', required by 'virtual:world', not found", '  running bdist_wheel', '  running build', '  running build_py', '  creating build', '  creating build/lib.linux-x86_64-3.6', '  creating build/lib.linux-x86_64-3.6/cffi', '  copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/model.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/commontypes.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/error.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/cparser.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/api.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/lock.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/__init__.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/verifier.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/recompiler.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/_embedding.h -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.6/cffi', '  warning: build_py: byte-compiling is disabled, skipping.', '  ', '  running build_ext', "  building '_cffi_backend' extension", '  creating build/temp.linux-x86_64-3.6', '  creating build/temp.linux-x86_64-3.6/c', '  gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.6m -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.6/c/_cffi_backend.o', '  c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory', '   #include <ffi.h>', '            ^~~~~~~', '  compilation terminated.', "  error: command 'gcc' failed with exit status 1", '  ----------------------------------------', '  ERROR: Failed building wheel for cffi', '    ERROR: Command errored out with exit status 1:', '     command: /tmp/tmphw8cn697/.venv/bin/python3 -u -c \'import sys, setuptools, tokenize; sys.argv[0] = \'"\'"\'/tmp/pip-install-xico0um2/cffi/setup.py\'"\'"\'; __file__=\'"\'"\'/tmp/pip-install-xico0um2/cffi/setup.py\'"\'"\';f=getattr(tokenize, \'"\'"\'open\'"\'"\', open)(__file__);code=f.read().replace(\'"\'"\'\\r\\n\'"\'"\', \'"\'"\'\\n\'"\'"\');f.close();exec(compile(code, __file__, \'"\'"\'exec\'"\'"\'))\' install --record /tmp/pip-record-ncjyv7u7/install-record.txt --single-version-externally-managed --compile --install-headers /tmp/tmphw8cn697/.venv/include/site/python3.6/cffi', '         cwd: /tmp/pip-install-xico0um2/cffi/', '    Complete output (58 lines):', '    Package libffi was not found in the pkg-config search path.', "    Perhaps you should add the directory containing `libffi.pc'", '    to the PKG_CONFIG_PATH environment variable', "    Package 'libffi', required by 'virtual:world', not found", '    Package libffi was not found in the pkg-config search path.', "    Perhaps you should add the directory containing `libffi.pc'", '    to the PKG_CONFIG_PATH environment variable', "    Package 'libffi', required by 'virtual:world', not found", '    Package libffi was not found in the pkg-config search path.', "    Perhaps you should add the directory containing `libffi.pc'", '    to the PKG_CONFIG_PATH environment variable', "    Package 'libffi', required by 'virtual:world', not found", '    Package libffi was not found in the pkg-config search path.', "    Perhaps you should add the directory containing `libffi.pc'", '    to the PKG_CONFIG_PATH environment variable', "    Package 'libffi', required by 'virtual:world', not found", '    Package libffi was not found in the pkg-config search path.', "    Perhaps you should add the directory containing `libffi.pc'", '    to the PKG_CONFIG_PATH environment variable', "    Package 'libffi', required by 'virtual:world', not found", '    running install', '    running build', '    running build_py', '    creating build', '    creating build/lib.linux-x86_64-3.6', '    creating build/lib.linux-x86_64-3.6/cffi', '    copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/model.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/commontypes.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/error.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/cparser.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/api.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/lock.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/__init__.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/verifier.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/recompiler.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/_embedding.h -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.6/cffi', '    warning: build_py: byte-compiling is disabled, skipping.', '    ', '    running build_ext', "    building '_cffi_backend' extension", '    creating build/temp.linux-x86_64-3.6', '    creating build/temp.linux-x86_64-3.6/c', '    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.6m -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.6/c/_cffi_backend.o', '    c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory', '     #include <ffi.h>', '              ^~~~~~~', '    compilation terminated.', "    error: command 'gcc' failed with exit status 1", '    ----------------------------------------', 'ERROR: Command errored out with exit status 1: /tmp/tmphw8cn697/.venv/bin/python3 -u -c \'import sys, setuptools, tokenize; sys.argv[0] = \'"\'"\'/tmp/pip-install-xico0um2/cffi/setup.py\'"\'"\'; __file__=\'"\'"\'/tmp/pip-install-xico0um2/cffi/setup.py\'"\'"\';f=getattr(tokenize, \'"\'"\'open\'"\'"\', open)(__file__);code=f.read().replace(\'"\'"\'\\r\\n\'"\'"\', \'"\'"\'\\n\'"\'"\');f.close();exec(compile(code, __file__, \'"\'"\'exec\'"\'"\'))\' install --record /tmp/pip-record-ncjyv7u7/install-record.txt --single-version-externally-managed --compile --install-headers /tmp/tmphw8cn697/.venv/include/site/python3.6/cffi Check the logs for full command output.']
ERROR: ERROR: Package installation failed...

Environment details

Kebechet version: 1.0.0
Python version: 3.6.8
Platform: Linux-3.10.0-957.21.2.el7.x86_64-x86_64-with-fedora-28-Twenty_Eight
pipenv version: pipenv, version 2018.11.26


Dependency graph
Unable to obtain dependency graph:

An error occurred while installing thoth-common! Will try again.
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 1874, in do_install
[pipenv.exceptions.InstallError]:       keep_outdated=keep_outdated
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]:       pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 859, in do_install_dependencies
[pipenv.exceptions.InstallError]:       retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 763, in batch_install
[pipenv.exceptions.InstallError]:       _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry)
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.6/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: ['Requirement already up-to-date: thoth-common in ./.venv/lib/python3.6/site-packages (0.9.14)', 'Requirement already satisfied, skipping upgrade: rfc5424-logging-handler in ./.venv/lib/python3.6/site-packages (from thoth-common) (1.4.3)', 'Requirement already satisfied, skipping upgrade: attrs in ./.venv/lib/python3.6/site-packages (from thoth-common) (19.3.0)', 'Requirement already satisfied, skipping upgrade: requests in ./.venv/lib/python3.6/site-packages (from thoth-common) (2.22.0)', 'Requirement already satisfied, skipping upgrade: openshift==0.8.0 in ./.venv/lib/python3.6/site-packages (from thoth-common) (0.8.0)', 'Requirement already satisfied, skipping upgrade: sentry-sdk in ./.venv/lib/python3.6/site-packages (from thoth-common) (0.12.3)', 'Requirement already satisfied, skipping upgrade: daiquiri in ./.venv/lib/python3.6/site-packages (from thoth-common) (1.6.0)', 'Requirement already satisfied, skipping upgrade: pyyaml in ./.venv/lib/python3.6/site-packages (from thoth-common) (5.1.2)', 'Requirement already satisfied, skipping upgrade: tzlocal in ./.venv/lib/python3.6/site-packages (from rfc5424-logging-handler->thoth-common) (2.0.0)', 'Requirement already satisfied, skipping upgrade: pytz in ./.venv/lib/python3.6/site-packages (from rfc5424-logging-handler->thoth-common) (2019.3)', 'Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in ./.venv/lib/python3.6/site-packages (from requests->thoth-common) (2019.9.11)', 'Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in ./.venv/lib/python3.6/site-packages (from requests->thoth-common) (3.0.4)', 'Requirement already satisfied, skipping upgrade: idna<2.9,>=2.5 in ./.venv/lib/python3.6/site-packages (from requests->thoth-common) (2.8)', 'Requirement already satisfied, skipping upgrade: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in ./.venv/lib/python3.6/site-packages (from requests->thoth-common) (1.25.6)', 'Requirement already satisfied, skipping upgrade: python-string-utils in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0->thoth-common) (0.6.0)', 'Requirement already satisfied, skipping upgrade: six in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0->thoth-common) (1.12.0)', 'Requirement already satisfied, skipping upgrade: kubernetes<9.0.0,>=8.0.0 in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0->thoth-common) (8.0.2)', 'Requirement already satisfied, skipping upgrade: jinja2 in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0->thoth-common) (2.10.3)', 'Requirement already satisfied, skipping upgrade: dictdiffer in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0->thoth-common) (0.8.0)', 'Requirement already satisfied, skipping upgrade: ruamel.yaml>=0.15 in ./.venv/lib/python3.6/site-packages (from openshift==0.8.0->thoth-common) (0.16.5)', 'Requirement already satisfied, skipping upgrade: python-dateutil>=2.5.3 in ./.venv/lib/python3.6/site-packages (from kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (2.8.0)', 'Requirement already satisfied, skipping upgrade: setuptools>=21.0.0 in ./.venv/lib/python3.6/site-packages (from kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (41.4.0)', 'Requirement already satisfied, skipping upgrade: adal>=1.0.2 in ./.venv/lib/python3.6/site-packages (from kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (1.2.2)', 'Requirement already satisfied, skipping upgrade: google-auth>=1.0.1 in ./.venv/lib/python3.6/site-packages (from kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (1.6.3)', 'Requirement already satisfied, skipping upgrade: requests-oauthlib in ./.venv/lib/python3.6/site-packages (from kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (1.2.0)', 'Requirement already satisfied, skipping upgrade: websocket-client!=0.40.0,!=0.41.*,!=0.42.*,>=0.32.0 in ./.venv/lib/python3.6/site-packages (from kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (0.56.0)', 'Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in ./.venv/lib/python3.6/site-packages (from jinja2->openshift==0.8.0->thoth-common) (1.1.1)', 'Requirement already satisfied, skipping upgrade: ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.8" in ./.venv/lib/python3.6/site-packages (from ruamel.yaml>=0.15->openshift==0.8.0->thoth-common) (0.2.0)', 'Requirement already satisfied, skipping upgrade: cryptography>=1.1.0 in ./.venv/lib/python3.6/site-packages (from adal>=1.0.2->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (2.7)', 'Requirement already satisfied, skipping upgrade: PyJWT>=1.0.0 in ./.venv/lib/python3.6/site-packages (from adal>=1.0.2->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (1.7.1)', 'Requirement already satisfied, skipping upgrade: cachetools>=2.0.0 in ./.venv/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (3.1.1)', 'Requirement already satisfied, skipping upgrade: rsa>=3.1.4 in ./.venv/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (4.0)', 'Requirement already satisfied, skipping upgrade: pyasn1-modules>=0.2.1 in ./.venv/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (0.2.7)', 'Requirement already satisfied, skipping upgrade: oauthlib>=3.0.0 in ./.venv/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (3.1.0)', 'Collecting cffi!=1.11.3,>=1.8', '  Using cached https://files.pythonhosted.org/packages/d6/cf/ba7e2df852a2fc807d48b3f7bea46f741830be4f047a0712e6de3e95fb6a/cffi-1.13.0.tar.gz', 'Requirement already satisfied, skipping upgrade: asn1crypto>=0.21.0 in ./.venv/lib/python3.6/site-packages (from cryptography>=1.1.0->adal>=1.0.2->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (1.1.0)', 'Requirement already satisfied, skipping upgrade: pyasn1>=0.1.3 in ./.venv/lib/python3.6/site-packages (from rsa>=3.1.4->google-auth>=1.0.1->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (0.4.7)', 'Requirement already satisfied, skipping upgrade: pycparser in ./.venv/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.8->cryptography>=1.1.0->adal>=1.0.2->kubernetes<9.0.0,>=8.0.0->openshift==0.8.0->thoth-common) (2.19)', 'Building wheels for collected packages: cffi', '  Building wheel for cffi (setup.py): started', "  Building wheel for cffi (setup.py): finished with status 'error'", '  Running setup.py clean for cffi', 'Failed to build cffi', 'Installing collected packages: cffi', '    Running setup.py install for cffi: started', "    Running setup.py install for cffi: finished with status 'error'"]
[pipenv.exceptions.InstallError]: ['ERROR: Command errored out with exit status 1:', '   command: /tmp/tmphw8cn697/.venv/bin/python3 -u -c \'import sys, setuptools, tokenize; sys.argv[0] = \'"\'"\'/tmp/pip-install-4y1n47x0/cffi/setup.py\'"\'"\'; __file__=\'"\'"\'/tmp/pip-install-4y1n47x0/cffi/setup.py\'"\'"\';f=getattr(tokenize, \'"\'"\'open\'"\'"\', open)(__file__);code=f.read().replace(\'"\'"\'\\r\\n\'"\'"\', \'"\'"\'\\n\'"\'"\');f.close();exec(compile(code, __file__, \'"\'"\'exec\'"\'"\'))\' bdist_wheel -d /tmp/pip-wheel-66_ihutl --python-tag cp36', '       cwd: /tmp/pip-install-4y1n47x0/cffi/', '  Complete output (58 lines):', '  Package libffi was not found in the pkg-config search path.', "  Perhaps you should add the directory containing `libffi.pc'", '  to the PKG_CONFIG_PATH environment variable', "  Package 'libffi', required by 'virtual:world', not found", '  Package libffi was not found in the pkg-config search path.', "  Perhaps you should add the directory containing `libffi.pc'", '  to the PKG_CONFIG_PATH environment variable', "  Package 'libffi', required by 'virtual:world', not found", '  Package libffi was not found in the pkg-config search path.', "  Perhaps you should add the directory containing `libffi.pc'", '  to the PKG_CONFIG_PATH environment variable', "  Package 'libffi', required by 'virtual:world', not found", '  Package libffi was not found in the pkg-config search path.', "  Perhaps you should add the directory containing `libffi.pc'", '  to the PKG_CONFIG_PATH environment variable', "  Package 'libffi', required by 'virtual:world', not found", '  Package libffi was not found in the pkg-config search path.', "  Perhaps you should add the directory containing `libffi.pc'", '  to the PKG_CONFIG_PATH environment variable', "  Package 'libffi', required by 'virtual:world', not found", '  running bdist_wheel', '  running build', '  running build_py', '  creating build', '  creating build/lib.linux-x86_64-3.6', '  creating build/lib.linux-x86_64-3.6/cffi', '  copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/model.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/commontypes.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/error.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/cparser.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/api.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/lock.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/__init__.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/verifier.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/recompiler.py -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/_embedding.h -> build/lib.linux-x86_64-3.6/cffi', '  copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.6/cffi', '  warning: build_py: byte-compiling is disabled, skipping.', '  ', '  running build_ext', "  building '_cffi_backend' extension", '  creating build/temp.linux-x86_64-3.6', '  creating build/temp.linux-x86_64-3.6/c', '  gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.6m -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.6/c/_cffi_backend.o', '  c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory', '   #include <ffi.h>', '            ^~~~~~~', '  compilation terminated.', "  error: command 'gcc' failed with exit status 1", '  ----------------------------------------', '  ERROR: Failed building wheel for cffi', '    ERROR: Command errored out with exit status 1:', '     command: /tmp/tmphw8cn697/.venv/bin/python3 -u -c \'import sys, setuptools, tokenize; sys.argv[0] = \'"\'"\'/tmp/pip-install-4y1n47x0/cffi/setup.py\'"\'"\'; __file__=\'"\'"\'/tmp/pip-install-4y1n47x0/cffi/setup.py\'"\'"\';f=getattr(tokenize, \'"\'"\'open\'"\'"\', open)(__file__);code=f.read().replace(\'"\'"\'\\r\\n\'"\'"\', \'"\'"\'\\n\'"\'"\');f.close();exec(compile(code, __file__, \'"\'"\'exec\'"\'"\'))\' install --record /tmp/pip-record-hjbtnyf2/install-record.txt --single-version-externally-managed --compile --install-headers /tmp/tmphw8cn697/.venv/include/site/python3.6/cffi', '         cwd: /tmp/pip-install-4y1n47x0/cffi/', '    Complete output (58 lines):', '    Package libffi was not found in the pkg-config search path.', "    Perhaps you should add the directory containing `libffi.pc'", '    to the PKG_CONFIG_PATH environment variable', "    Package 'libffi', required by 'virtual:world', not found", '    Package libffi was not found in the pkg-config search path.', "    Perhaps you should add the directory containing `libffi.pc'", '    to the PKG_CONFIG_PATH environment variable', "    Package 'libffi', required by 'virtual:world', not found", '    Package libffi was not found in the pkg-config search path.', "    Perhaps you should add the directory containing `libffi.pc'", '    to the PKG_CONFIG_PATH environment variable', "    Package 'libffi', required by 'virtual:world', not found", '    Package libffi was not found in the pkg-config search path.', "    Perhaps you should add the directory containing `libffi.pc'", '    to the PKG_CONFIG_PATH environment variable', "    Package 'libffi', required by 'virtual:world', not found", '    Package libffi was not found in the pkg-config search path.', "    Perhaps you should add the directory containing `libffi.pc'", '    to the PKG_CONFIG_PATH environment variable', "    Package 'libffi', required by 'virtual:world', not found", '    running install', '    running build', '    running build_py', '    creating build', '    creating build/lib.linux-x86_64-3.6', '    creating build/lib.linux-x86_64-3.6/cffi', '    copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/model.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/commontypes.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/error.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/cparser.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/api.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/lock.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/__init__.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/verifier.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/recompiler.py -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/_embedding.h -> build/lib.linux-x86_64-3.6/cffi', '    copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.6/cffi', '    warning: build_py: byte-compiling is disabled, skipping.', '    ', '    running build_ext', "    building '_cffi_backend' extension", '    creating build/temp.linux-x86_64-3.6', '    creating build/temp.linux-x86_64-3.6/c', '    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.6m -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.6/c/_cffi_backend.o', '    c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory', '     #include <ffi.h>', '              ^~~~~~~', '    compilation terminated.', "    error: command 'gcc' failed with exit status 1", '    ----------------------------------------', 'ERROR: Command errored out with exit status 1: /tmp/tmphw8cn697/.venv/bin/python3 -u -c \'import sys, setuptools, tokenize; sys.argv[0] = \'"\'"\'/tmp/pip-install-4y1n47x0/cffi/setup.py\'"\'"\'; __file__=\'"\'"\'/tmp/pip-install-4y1n47x0/cffi/setup.py\'"\'"\';f=getattr(tokenize, \'"\'"\'open\'"\'"\', open)(__file__);code=f.read().replace(\'"\'"\'\\r\\n\'"\'"\', \'"\'"\'\\n\'"\'"\');f.close();exec(compile(code, __file__, \'"\'"\'exec\'"\'"\'))\' install --record /tmp/pip-record-hjbtnyf2/install-record.txt --single-version-externally-managed --compile --install-headers /tmp/tmphw8cn697/.venv/include/site/python3.6/cffi Check the logs for full command output.']
ERROR: ERROR: Package installation failed...

Notes

For more information, see Pipfile and Pipfile.lock.

Once this issue is resolved, the issue will be automatically closed by bot.

switch query to respect job run

amun-api/amun/api_v1.py

Lines 99 to 104 in 1e3409c

# TODO: switch query to respect job run
log = _OPENSHIFT.get_job_log(inspection_id, Configuration.AMUN_INSPECTION_NAMESPACE)
except NotFoundException:
return {
'error': 'The given inspection id was not found',
'parameters': inspection_id


This issue was generated by todo based on a TODO comment in 1e3409c when #1 was merged. cc @fridex.

Run command requires native packages to be installed.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:
STEPS:
Schedule an inspection using an empty list for specification["packages"], which are the native packages to be installed on the base image.

Pulled 2/6 layers, 36% complete
Pulled 3/6 layers, 66% complete
Pulled 4/6 layers, 75% complete
Pulled 5/6 layers, 97% complete
Pulled 6/6 layers, 100% complete
Extracting
Step 1/18 : FROM quay.io/aicoe/thoth-python36:v0.7.0-ubi8
 ---> ba96ccb141a7
Step 2/18 : ENV "LANG" "en_US.UTF-8" "HOME" "/home/amun/" "PIPENV_CACHE_DIR" "/home/amun/.cache" "PIPENV_COLORBLIND" "1" "PIPENV_HIDE_EMOJIS" "1" "PIPENV_NOSPIN" "1" "PIPENV_VERBOSITY" "1"
 ---> Running in 23e9fac231e1
 ---> e9afee8eb3c4
Removing intermediate container 23e9fac231e1
Step 3/18 : USER root
 ---> Running in ce664e15f670
 ---> e07a8e43777e
Removing intermediate container ce664e15f670
Step 4/18 : RUN { { [ -f '/usr/bin/dnf' ] && INSTALL_CMD='dnf install -y'; } || { [ -f '/usr/bin/yum' ] && INSTALL_CMD='yum install -y'; } || { INSTALL_CMD='apt-get install'; } }; eval $INSTALL_CMD
 ---> Running in 009008f94d1a
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
usage: dnf install [-c [config file]] [-q] [-v] [--version]
                   [--installroot [path]] [--nodocs] [--noplugins]
                   [--enableplugin [plugin]] [--disableplugin [plugin]]
                   [--releasever RELEASEVER] [--setopt SETOPTS]
                   [--skip-broken] [-h] [--allowerasing] [-b | --nobest] [-C]
                   [-R [minutes]] [-d [debug level]] [--debugsolver]
                   [--showduplicates] [-e ERRORLEVEL] [--obsoletes]
                   [--rpmverbosity [debug level name]] [-y] [--assumeno]
                   [--enablerepo [repo]] [--disablerepo [repo] | --repo
                   [repo]] [--enable | --disable] [-x [package]]
                   [--disableexcludes [repo]] [--repofrompath [repo,path]]
                   [--noautoremove] [--nogpgcheck] [--color COLOR] [--refresh]
                   [-4] [-6] [--destdir DESTDIR] [--downloadonly]
                   [--comment COMMENT] [--bugfix] [--enhancement]
                   [--newpackage] [--security] [--advisory ADVISORY]
                   [--bzs BUGZILLA] [--cves CVES]
                   [--sec-severity {Critical,Important,Moderate,Low}]
                   [--forcearch ARCH]
                   PACKAGE [PACKAGE ...]
dnf install: error: the following arguments are required: PACKAGE
Removing intermediate container 009008f94d1a
error: build error: The command '/bin/sh -c { { [ -f '/usr/bin/dnf' ] && INSTALL_CMD='dnf install -y'; } || { [ -f '/usr/bin/yum' ] && INSTALL_CMD='yum install -y'; } || { INSTALL_CMD='apt-get install'; } }; eval $INSTALL_CMD' returned a non-zero code: 2

Expected behavior
No error if the list of native packages is empty.
Therefore, the default case should allow having an empty list of native packages to be installed.

Additional context
Some base images used to run inspections don't require any native package

Create a cleanup job to clean up IS, BC after some time

We should create a clean up job that will be run in AMUN_API_NAMESPACE and will delete unused resources after some time. Resources created by Amun API on a user request are:

  • image stream - this should be deleted by the cleanup job
  • buildconfig - this should be deleted by the cleanup job
  • jobs - these will be automatically deleted by garbage collector in Kubernetes

The job will be similar to the one used in Thoth - https://github.com/thoth-station/cleanup-job

Internal server error if job failed

Sentry Issue: THOTH-1K4B

ApiException: (500)
Reason: INTERNAL SERVER ERROR
HTTP response headers: HTTPHeaderDict({'Server': 'gunicorn/19.9.0', 'Date': 'Thu, 20 Jun 2019 10:17:49 GMT', 'Content-Type': 'application/json', 'Content-Length': '149', 'Set-Cookie': '22026b1cd69ee41ec36a423736eda140=69c3ce914804fd5d994bc21d86c82136; path=/; HttpOnly'})
HTTP response body: {
  "error": "Job failed, please contact administrator for more details",
  "parameters": {
    "inspection_id": "inspection-10af208d138d2c0e"
  }
}


(10 additional frame(s) were not displayed)
...
  File "amun/swagger_client/api_client.py", line 329, in call_api
    _preload_content, _request_timeout)
  File "amun/swagger_client/api_client.py", line 160, in __call_api
    _request_timeout=_request_timeout)
  File "amun/swagger_client/api_client.py", line 350, in request
    headers=headers)
  File "amun/swagger_client/rest.py", line 238, in GET
    query_params=query_params)
  File "amun/swagger_client/rest.py", line 228, in request
    raise ApiException(http_resp=r)

No hardware specific templates installed on provisioning

Describe the bug

After fresh thoth deployment, I cannot see hardware specific templates installed on OpenShift.

To Reproduce
Steps to reproduce the behavior:

  1. Go to newly provisioned thoth-test-core project via oc
  2. oc get templates -l component=amun-inspect
  3. See only one template (the generic one) installed

Expected behavior

There should be installed also template with hardware specific configuration for specific node scheduling in the cluster.

Additional context

At least the following two templates are missing:

ApiException: (403)

Sentry Issue: THOTH-3Z8

ForbiddenError: 403
Reason: Forbidden
HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-store', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'Date': 'Mon, 08 Apr 2019 09:31:54 GMT', 'Content-Length': '527'})
HTTP response body: b'{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"templates.template.openshift.io is forbidden: User \\"system:serviceaccount:thoth-amun-api-stage:amun-inspector-thoth-amun-api-stage\\" cannot list templates.template.openshift.io at the cluster scope: User \\"system:serviceaccount:thoth-amun-api-stage:amun-inspector-thoth-amun-api-stage\\" cannot list all templates.template.openshift.io in the cluster","reason":"Forbidden","details":{"group":"template.openshift.io","kind":"templates"},"code":403}\n'
Original traceback: 
  File "/opt/app-root/lib/python3.6/site-packages/openshift/dynamic/client.py", line 41, in inner
    resp = func(self, resource, *args, **kwargs)

  File "/opt/app-root/lib/python3.6/site-packages/openshift/dynami...
(10 additional frame(s) were not displayed)
...
  File "connexion/decorators/parameter.py", line 126, in wrapper
    return function(**kwargs)
  File "amun/api_v1.py", line 128, in post_inspection
    _OPENSHIFT.create_inspection_imagestream(inspection_id)
  File "/opt/app-root/lib/python3.6/site-packages/thoth/common/openshift.py", line 502, in create_inspection_imagestream
    template = self._get_template("template=amun-inspect-imagestream")
  File "/opt/app-root/lib/python3.6/site-packages/thoth/common/openshift.py", line 481, in _get_template
    ).get(namespace=self.infra_namespace, label_selector=_label_selector)
  File "openshift/dynamic/client.py", line 43, in inner
    raise api_exception(e)

ApiException: (403)
Reason: Forbidden
HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-store', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'Date': 'Mon, 08 Apr 2019 09:31:54 GMT', 'Content-Length': '527'})
HTTP response body: b'{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"templates.template.openshift.io is forbidden: User \\"system:serviceaccount:thoth-amun-api-stage:amun-inspector-thoth-amun-api-stage\\" cannot list templates.template.openshift.io at the cluster scope: User \\"system:serviceaccount:thoth-amun-api-stage:amun-inspector-thoth-amun-api-stage\\" cannot list all templates.template.openshift.io in the cluster","reason":"Forbidden","details":{"group":"template.openshift.io","kind":"templates"},"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)

Exception on /api/v1/inspect [POST]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.