Project

Profile

Help

Issue #4662

closed

Few fields returned by task reported by orphans endpoint set as None

Added by kersom over 5 years ago. Updated almost 5 years ago.

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

Description

Task returned by the orphans endpoint as completed, but a few fields ( finished_at, started_at, worker) are set as None.

{'_created': '2018-12-21T00:26:37.278392Z',
 '_href': '/pulp/api/v3/tasks/b963e89c-db1a-4db4-b8c9-5fbca5629113/',
 'created_resources': [],
 'error': None,
 'finished_at': None,
 'name': 'pulpcore.app.tasks.orphan.orphan_cleanup',
 'non_fatal_errors': [],
 'parent': None,
 'progress_reports': [{'done': 3,
                       'message': 'Clean up orphan Content',
                       'state': 'completed',
                       'suffix': '',
                       'task': '/pulp/api/v3/tasks/b963e89c-db1a-4db4-b8c9-5fbca5629113/',
                       'total': 3},
                      {'done': 3,
                       'message': 'Clean up orphan Artifacts',
                       'state': 'completed',
                       'suffix': '',
                       'task': '/pulp/api/v3/tasks/b963e89c-db1a-4db4-b8c9-5fbca5629113/',
                       'total': 3}],
 'spawned_tasks': [],
 'started_at': None,
 'state': 'completed',
 'worker': None}

Pulp 3 installation from source. April/09.


Related issues

Copied to Pulp - Test #5255: Test - Few fields returned by task reported by orphans endpoint set as NoneCLOSED - DUPLICATEActions
Actions #1

Updated by kersom over 5 years ago

  • Description updated (diff)
Actions #2

Updated by amacdona@redhat.com over 5 years ago

  • Sprint/Milestone set to 3.0.0
  • Triaged changed from No to Yes
  • Sprint set to Sprint 51
Actions #3

Updated by rchan over 5 years ago

  • Sprint changed from Sprint 51 to Sprint 52
Actions #4

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3)
Actions #5

Updated by rchan over 5 years ago

  • Sprint changed from Sprint 52 to Sprint 53
Actions #6

Updated by ppicka over 5 years ago

  • Status changed from NEW to ASSIGNED
Actions #7

Updated by ppicka over 5 years ago

  • Status changed from ASSIGNED to NEW

Tried to debug on task level and on a worker but all IDs match.
When debug on task set_running happened but set_completed or set_failed
I am not able to catch (by remote debug). But still task marked as complete.

It happened to me that when debug in orphan.py (the function itself) I am not able to find Task which should be created by Task.objects.filter(pk=progressbar.task_id).

Unassigning from myself.

Actions #8

Updated by amacdona@redhat.com over 5 years ago

  • Sprint changed from Sprint 53 to Sprint 54
Actions #9

Updated by ttereshc over 5 years ago

  • Sprint deleted (Sprint 54)
Actions #10

Updated by ttereshc over 5 years ago

  • Sprint set to Sprint 54
Actions #11

Updated by ttereshc over 5 years ago

  • Sprint changed from Sprint 54 to Sprint 55
Actions #12

Updated by daviddavis over 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to daviddavis
Actions #13

Updated by daviddavis over 5 years ago

  • Status changed from ASSIGNED to POST

Added by daviddavis over 5 years ago

Revision 987193cc | View on GitHub

Set fields on orphan cleanup task

fixes #4662 https://pulp.plan.io/issues/4662

Actions #14

Updated by dkliban@redhat.com over 5 years ago

  • Sprint changed from Sprint 55 to Sprint 56
Actions #15

Updated by daviddavis over 5 years ago

  • Status changed from POST to MODIFIED
Actions #16

Updated by kersom over 5 years ago

  • Copied to Test #5255: Test - Few fields returned by task reported by orphans endpoint set as None added
Actions #17

Updated by bmbouter almost 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF