Actions
Issue #6776
closedpodman pull by tag returns 500 error
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
May 19 22:18:29 localhost gunicorn[46369]: [2020-05-19 22:18:29 +0000] [46378] [ERROR] Error handling request May 19 22:18:29 localhost gunicorn[46369]: Traceback (most recent call last): May 19 22:18:29 localhost gunicorn[46369]: File "/usr/local/lib/pulp/lib64/python3.7/site-packages/aiohttp/web_protocol.py", line 275, in data_received May 19 22:18:29 localhost gunicorn[46369]: messages, upgraded, tail = self._request_parser.feed_data(data) May 19 22:18:29 localhost gunicorn[46369]: File "aiohttp/_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data May 19 22:18:29 localhost gunicorn[46369]: aiohttp.http_exceptions.BadStatusLine: invalid HTTP method May 19 22:18:29 localhost gunicorn[46369]: 127.0.0.1 [19/May/2020:22:18:29 +0000] "GET /v2/ HTTP/1.1" 200 224 "-" "libpod/1.9.1" May 19 22:18:29 localhost gunicorn[46369]: [2020-05-19 22:18:29 +0000] [46378] [ERROR] Error handling request May 19 22:18:29 localhost gunicorn[46369]: Traceback (most recent call last): May 19 22:18:29 localhost gunicorn[46369]: File "/home/vagrant/devel/pulp_container/pulp_container/app/registry.py", line 225, in dispatch_tag May 19 22:18:29 localhost gunicorn[46369]: artifact = tag._artifacts.get() May 19 22:18:29 localhost gunicorn[46369]: File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/db/models/manager.py", line 82, in manager_method May 19 22:18:29 localhost gunicorn[46369]: return getattr(self.get_queryset(), name)(*args, **kwargs) May 19 22:18:29 localhost gunicorn[46369]: File "/usr/local/lib/pulp/lib64/python3.7/site-packages/django/db/models/query.py", line 408, in get May 19 22:18:29 localhost gunicorn[46369]: self.model._meta.object_name May 19 22:18:29 localhost gunicorn[46369]: pulpcore.app.models.content.Artifact.DoesNotExist: Artifact matching query does not exist. May 19 22:18:29 localhost gunicorn[46369]: During handling of the above exception, another exception occurred: May 19 22:18:29 localhost gunicorn[46369]: Traceback (most recent call last): May 19 22:18:29 localhost gunicorn[46369]: File "/usr/local/lib/pulp/lib64/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start May 19 22:18:29 localhost gunicorn[46369]: resp = await task May 19 22:18:29 localhost gunicorn[46369]: File "/usr/local/lib/pulp/lib64/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle May 19 22:18:29 localhost gunicorn[46369]: resp = await handler(request) May 19 22:18:29 localhost gunicorn[46369]: File "/home/vagrant/devel/pulp_container/pulp_container/app/registry.py", line 204, in get_tag May 19 22:18:29 localhost gunicorn[46369]: return await Registry.dispatch_tag(tag, response_headers) May 19 22:18:29 localhost gunicorn[46369]: File "/home/vagrant/devel/pulp_container/pulp_container/app/registry.py", line 227, in dispatch_tag May 19 22:18:29 localhost gunicorn[46369]: raise ArtifactNotFound(tag.name) May 19 22:18:29 localhost gunicorn[46369]: pulp_container.app.registry.ArtifactNotFound: latest May 19 22:18:29 localhost gunicorn[46369]: 127.0.0.1 [19/May/2020:22:18:29 +0000] "GET /v2/foo/bar/manifests/latest HTTP/1.1" 500 244 "-" "libpod/1.9.1"
Actions
Fixes 500 error when pulling by tag
fixes: #6776 https://pulp.plan.io/issues/6776