Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

ResourceNotUniqueError: Multiple matches found for {'api_version': 'template.openshift.io/v1', 'kind': 'Template'}: [<Res... #231

Closed
sentry-io bot opened this issue Dec 1, 2019 · 1 comment · Fixed by thoth-station/common#564
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Dec 1, 2019

Sentry Issue: THOTH-1N44

ResourceNotUniqueError: Multiple matches found for {'api_version': 'template.openshift.io/v1', 'kind': 'Template'}: [<Resource(template.openshift.io/v1/processedtemplates)>, <Resource(template.openshift.io/v1/templates)>]
(1 additional frame(s) were not displayed)
...
  File "</opt/app-root/lib/python3.6/site-packages/decorator.py:decorator-gen-25>", line 2, in get_unsolved_python_packages_count
  File "/opt/app-root/src/thoth/metrics_exporter/jobs/base.py", line 41, in register_metric_job
    method(*args, **kwargs)
  File "/opt/app-root/src/thoth/metrics_exporter/jobs/solver.py", line 49, in get_unsolved_python_packages_count
    for solver_name in cls._OPENSHIFT.get_solver_names():
  File "/opt/app-root/lib/python3.6/site-packages/thoth/common/openshift.py", line 772, in get_solver_names
    api_version="template.openshift.io/v1", kind="Template"
  File "openshift/dynamic/discovery.py", line 215, in get
    raise ResourceNotUniqueError('Multiple matches found for {}: {}'.format(kwargs, results))

Failed to run metrics gathering job SolverMetrics.get_unsolved_python_packages_count
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants