Project

Profile

Help

Issue #4662

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

Added by kersom 6 months ago. Updated 3 months ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 56

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 None NEW Actions

Associated revisions

Revision 987193cc View on GitHub
Added by daviddavis 3 months ago

Set fields on orphan cleanup task

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

History

#1 Updated by kersom 6 months ago

  • Description updated (diff)

#2 Updated by amacdona@redhat.com 6 months ago

  • Sprint/Milestone set to 3.0
  • Triaged changed from No to Yes
  • Sprint set to Sprint 51

#3 Updated by rchan 6 months ago

  • Sprint changed from Sprint 51 to Sprint 52

#4 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

#5 Updated by rchan 5 months ago

  • Sprint changed from Sprint 52 to Sprint 53

#6 Updated by ppicka 5 months ago

  • Status changed from NEW to ASSIGNED

#7 Updated by ppicka 5 months 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.

#8 Updated by amacdona@redhat.com 4 months ago

  • Sprint changed from Sprint 53 to Sprint 54

#9 Updated by ttereshc 4 months ago

  • Sprint deleted (Sprint 54)

#10 Updated by ttereshc 4 months ago

  • Sprint set to Sprint 54

#11 Updated by ttereshc 4 months ago

  • Sprint changed from Sprint 54 to Sprint 55

#12 Updated by daviddavis 4 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to daviddavis

#13 Updated by daviddavis 3 months ago

  • Status changed from ASSIGNED to POST

#14 Updated by dkliban@redhat.com 3 months ago

  • Sprint changed from Sprint 55 to Sprint 56

#15 Updated by daviddavis 3 months ago

  • Status changed from POST to MODIFIED

#16 Updated by kersom 2 months ago

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

Please register to edit this issue

Also available in: Atom PDF