Actions
Story #1268
closedAs a user, orphan content delete reports how many units were deleted
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
2.12.0
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Pulp 2
Sprint:
Sprint 13
Quarter:
Description
The API DELETE /pulp/api/v2/content/orphans/ will spawn a task to delete content.
These tasks don't seem to report what they actually deleted. As a user it is useful to know what was deleted so the user can validate changes made to the filesystem and storage.
The task should report how many units it deleted of each type.
For example, the task status report could look like this to show that 32 rpms were removed:
{
"exception": null,
"task_type": "pulp.server.managers.content.orphan.delete_all_orphans",
"_href": "/pulp/api/v2/tasks/7b2405ed-ae44-48e7-9d16-6fdcdc0af3f0/",
"task_id": "7b2405ed-ae44-48e7-9d16-6fdcdc0af3f0",
"tags": [
"pulp:content_unit:orphans"
],
"finish_time": "2016-11-04T18:18:46Z",
"_ns": "task_status",
"start_time": "2016-11-04T18:18:46Z",
"traceback": null,
"spawned_tasks": [],
"progress_report": {},
"queue": "celery.dq",
"state": "finished",
"worker_name": "celery",
"result": {
"rpm": 32
},
"error": null,
"_id": {
"$oid": "581cd103e96cb59365cf1133"
},
"id": "581cd103e96cb59365cf1133"
}
Related issues
Actions
As a user, orphan content delete reports how many units were deleted
Track the counts of units being deleted when orphan remove all is executed and store the result indexed by content type id on the task.
fixes #1268 https://pulp.plan.io/issues/1268