It looks like greenwave is not able to cope well with failures to find a build in koji.
This happens in staging since greenwave is listening to message from resultsdb in staging which itself is listening to the production bus. So we are getting in staging test results from production, which means when greenwave tries to look further into these test results it doesn't find the underlying builds in koji.
Here is the corresponding stacktrace:
[root ERROR] Failed to retrieve policies for 'perl-Inline-Files-0.71-1.fc30' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/greenwave/policies.py", line 377, in matches sub_policies = self._get_sub_policies(policy, subject_identifier) File "/usr/local/lib/python3.7/site-packages/greenwave/policies.py", line 325, in _get_sub_policies subject_identifier) File "/usr/local/lib/python3.7/site-packages/greenwave/cache.py", line 17, in wrapper return decorator(fn)(*args) File "/usr/lib/python3.7/site-packages/dogpile/cache/region.py", line 1270, in decorate should_cache_fn) File "/usr/lib/python3.7/site-packages/dogpile/cache/region.py", line 864, in get_or_create async_creator) as value: File "/usr/lib/python3.7/site-packages/dogpile/lock.py", line 186, in __enter__ return self._enter() File "/usr/lib/python3.7/site-packages/dogpile/lock.py", line 93, in _enter generated = self._enter_create(value, createdtime) File "/usr/lib/python3.7/site-packages/dogpile/lock.py", line 179, in _enter_create return self.creator() File "/usr/lib/python3.7/site-packages/dogpile/cache/region.py", line 831, in gen_value created_value = creator() File "/usr/lib/python3.7/site-packages/dogpile/cache/region.py", line 1266, in creator return fn(*arg, **kw) File "/usr/local/lib/python3.7/site-packages/greenwave/utils.py", line 132, in inner return function(*args, **kwargs) File "/usr/local/lib/python3.7/site-packages/greenwave/resources.py", line 145, in retrieve_scm_from_koji return retrieve_scm_from_koji_build(nvr, build, koji_url) File "/usr/local/lib/python3.7/site-packages/greenwave/resources.py", line 151, in retrieve_scm_from_koji_build 'Failed to find Koji build for "{}" at "{}"'.format(nvr, koji_url)) werkzeug.exceptions.BadGateway: 502 Bad Gateway: Failed to find Koji build for "perl-Inline-Files-0.71-1.fc30" at "https://koji.stg.fedoraproject.org/kojihub "
Yup, looks like duplicate of #415 .
This happens in staging since greenwave is listening to message from resultsdb in staging which itself is listening to the production bus. So we are getting in staging test results from production,[...]
Why is that?
Forgive me if I am missing something, but shouldn't staging resultsdb listen to staging bus and not production?
This one's a duplicate of #415. Closing this for now. If you don't think this is right, please feel free to re-open it.
Metadata Update from @yashn: - Issue close_status updated to: Duplicate - Issue status updated to: Closed (was: Open)