Project

Profile

Help

Issue #4373

closed

Applicability Exception: Repository matching query does not exist.

Added by ttereshc almost 6 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.16.4
Platform Release:
2.19.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 48
Quarter:

Description

If a repository no longer exists, but applicability has been triggered for it before it's been removed, the following exception occurs:

Jan 31 21:07:48 pulp2.dev pulp[26536]: pulp.server.async.tasks:INFO: [112d2ca7] Task failed : [112d2ca7-5ec8-4ffb-83a3-1c7bf5f58884]
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536) Task pulp.server.managers.consumer.applicability.regenerate_applicability_for_consumers[112d2ca7-5ec8-4ffb-83a3-1c7bf5f58884] raised unexpected: DoesNotExist('Repository matching query does not exist.',)
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536) Traceback (most recent call last):
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536)   File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 367, in trace_task
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536)     R = retval = fun(*args, **kwargs)
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536)   File "/home/vagrant/devel/pulp/server/pulp/server/async/tasks.py", line 529, in __call__
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536)     return super(Task, self).__call__(*args, **kwargs)
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536)   File "/home/vagrant/devel/pulp/server/pulp/server/async/tasks.py", line 107, in __call__
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536)     return super(PulpTask, self).__call__(*args, **kwargs)
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536)   File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 622, in __protected_call__
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536)     return self.run(*args, **kwargs)
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536)   File "/home/vagrant/devel/pulp/server/pulp/server/managers/consumer/applicability.py", line 108, in regenerate_applicability_for_consumers
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536)     manager.regenerate_applicability(profile_hash, content_type, profile_id, repo_id)
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536)   File "/home/vagrant/devel/pulp/server/pulp/server/managers/consumer/applicability.py", line 241, in regenerate_applicability
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536)     bound_repo_id)
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536)   File "/home/vagrant/devel/pulp/server/pulp/server/managers/consumer/applicability.py", line 298, in _get_existing_repo_content_types
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536)     repo_obj = model.Repository.objects.get(repo_id=repo_id)
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536)   File "/usr/lib/python2.7/site-packages/mongoengine/queryset/base.py", line 276, in get
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536)     raise queryset._document.DoesNotExist(msg)
Jan 31 21:07:48 pulp2.dev pulp[26536]: celery.app.trace:ERROR: [112d2ca7] (26536-85536) Exception: Repository matching query does not exist.

Also available in: Atom PDF