Project

Profile

Help

Issue #1410

closed

Missing profile causes applicability calculation to fail

Added by mhrivnak over 8 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.6.5
Platform Release:
OS:
RHEL 6
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

The following exception occurred on a user's install of pulp 2.6. Presumably while the task was running, a profile was deleted, and the code [0] does not guard against that possibility. Note that pymongo's "find_one" call returns None if the document is not found, which appears to be what happened here.

[0] https://github.com/pulp/pulp/blob/pulp-2.6.5-1/server/pulp/server/managers/consumer/applicability.py#L205

Dec  7 08:56:13 somehost pulp: celery.worker.job:ERROR: (29533-53888) Task pulp.server.managers.consumer.applicability.regenerate_applicability_for_consumers[f51f7f40-aa3c-4cd4-af9c-61dbe81f3866] raised unexpected: TypeError("'NoneType' object is unsubscriptable",)
Dec  7 08:56:13 somehost pulp: celery.worker.job:ERROR: (29533-53888) Traceback (most recent call last):
Dec  7 08:56:13 somehost pulp: celery.worker.job:ERROR: (29533-53888)   File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 240, in trace_task
Dec  7 08:56:13 somehost pulp: celery.worker.job:ERROR: (29533-53888)     R = retval = fun(*args, **kwargs)
Dec  7 08:56:13 somehost pulp: celery.worker.job:ERROR: (29533-53888)   File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", line 328, in __call__
Dec  7 08:56:13 somehost pulp: celery.worker.job:ERROR: (29533-53888)     return super(Task, self).__call__(*args, **kwargs)
Dec  7 08:56:13 somehost pulp: celery.worker.job:ERROR: (29533-53888)   File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 437, in __protected_call__
Dec  7 08:56:13 somehost pulp: celery.worker.job:ERROR: (29533-53888)     return self.run(*args, **kwargs)
Dec  7 08:56:13 somehost pulp: celery.worker.job:ERROR: (29533-53888)   File "/usr/lib/python2.6/site-packages/pulp/server/managers/consumer/applicability.py", line 117, in regenerate_applicability_for_consumersDec  7 08:56:13 somehost pulp: celery.worker.job:ERROR: (29533-53888)     manager.regenerate_applicability(profile_hash, content_type, profile_id, repo_id)
Dec  7 08:56:13 somehost pulp: celery.worker.job:ERROR: (29533-53888)   File "/usr/lib/python2.6/site-packages/pulp/server/managers/consumer/applicability.py", line 205, in regenerate_applicability
Dec  7 08:56:13 somehost pulp: celery.worker.job:ERROR: (29533-53888)     profile = unit_profile['profile']
Dec  7 08:56:13 somehost pulp: celery.worker.job:ERROR: (29533-53888) TypeError: 'NoneType' object is unsubscriptable
Actions #1

Updated by mhrivnak over 8 years ago

  • Triaged changed from No to Yes
Actions #2

Updated by bmbouter about 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #3

Updated by bmbouter about 5 years ago

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #4

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF