Actions
Issue #1582
closedTask Group ID status returning 404
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Master
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
Get the zoo5 repo from -> https://github.com/Katello/runcible/tree/master/test/fixtures/repositories/zoo5
Steps below will assume file:///var/www/repositories/zoo5 is the destination
$ pulp-admin rpm repo create --repo-id=ideate --feed=file:///var/www/repositories/zoo5
$ pulp-admin rpm repo sync run --repo-id=ideate
$ echo '{"repo_criteria":{"filters":{"id":{"$in":["ideate"]}}}}' |http --json --verify no --auth admin:admin POST "https://localhost/pulp/api/v2/repositories/actions/content/regenerate_applicability/"
HTTP/1.1 202 ACCEPTED
Connection: close
Content-Length: 127
Content-Type: application/json; charset=utf-8
Date: Tue, 26 Jan 2016 06:08:00 GMT
Server: Apache/2.4.6 (CentOS)
{
"_href": "/pulp/api/v2/task_groups/e1def059-1d83-4ff2-9b3d-25df70b98d5a/",
"group_id": "e1def059-1d83-4ff2-9b3d-25df70b98d5a"
}
$ http --json --verify no --auth admin:admin GET "https://localhost/pulp/api/v2/task_groups/e1def059-1d83-4ff2-9b3d-25df70b98d5a/state_summary/"
HTTP/1.1 404 NOT FOUND
Connection: close
Content-Encoding: utf-8
Content-Length: 553
Content-Type: application/json; charset=utf-8
Date: Tue, 26 Jan 2016 06:09:19 GMT
Server: Apache/2.4.6 (CentOS)
{
"_href": "/pulp/api/v2/task_groups/e1def059-1d83-4ff2-9b3d-25df70b98d5a/state_summary/",
"error": {
"code": "PLP0009",
"data": {
"resources": {
"resource_id": "e1def059-1d83-4ff2-9b3d-25df70b98d5a"
}
},
"description": "Missing resource(s): resource_id=e1def059-1d83-4ff2-9b3d-25df70b98d5a",
"sub_errors": []
},
"error_message": "Missing resource(s): resource_id=e1def059-1d83-4ff2-9b3d-25df70b98d5a",
"exception": null,
"http_request_method": "GET",
"http_status": 404,
"resources": {
"resource_id": "e1def059-1d83-4ff2-9b3d-25df70b98d5a"
},
"traceback": null
}
Actions
Sends back a group call report for summary of task group with 0 tasks
Originally we wanted to return a 404 when querying for a task group that has no tasks associated with it. However, we always return a task group id when kicking off the applicability regeneration task. User should be able to see that 0 tasks were dispatched as part of that task group.
https://pulp.plan.io/issues/1582 closes #1582