Actions
Issue #4373
closedApplicability Exception: Repository matching query does not exist.
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.
Updated by ttereshc almost 6 years ago
- Status changed from NEW to POST
- Assignee set to ttereshc
Updated by CodeHeeler almost 6 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 48
Added by ttereshc almost 6 years ago
Updated by ttereshc almost 6 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp:pulp|6c23b2901f08598ed31b32e93cebb11741e112a8.
Updated by kersom over 5 years ago
Attempt to recreate this by using Pulp-Smash, but not being able to create the race condition.
No regression was introduced after the merge of this one. test_content_applicability
Updated by ttereshc over 5 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Actions
Handle non-existent repo case when checking types for applicability
closes #4373 https://pulp.plan.io/issues/4373