Project

Profile

Help

Issue #420

closed

Task failure is not raised when unit unassociation performed on non existent repo

Added by ipanova@redhat.com about 9 years ago. Updated almost 5 years ago.

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

Description

Description of problem:

$ curl H "Accept: application/json" -X POST -k -u admin:admin -d '{"criteria": {"type_ids": ["rpm"], "filters": {"unit": {"name": "cat"}}}}' 'https://example.com/pulp/api/v2/repositories/invalidrepo/actions/unassociate/'| python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 245 100 172 100 73 110 46 0:00:01 0:00:01 -
:--:-- 110
{
"error": null,
"result": null,
"spawned_tasks": [
{
"_href": "/pulp/api/v2/tasks/610fff11-3076-4528-83a4-fa150ea66239/",
"task_id": "610fff11-3076-4528-83a4-fa150ea66239"
}
]
}
$ curl H "Accept: application/json" -X GET -k -u admin:admin 'https://example.com/pulp/api/v2/tasks/610fff11-3076-4528-83a4-fa150ea66239/'|python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 552 100 552 0 0 609 0 -
:--:-- --:--:-- --:--:-- 609
{
"_href": "/pulp/api/v2/tasks/610fff11-3076-4528-83a4-fa150ea66239/",
"_id": {
"$oid": "535f6e46c5fd8d1e2c4b8793"
},
"_ns": "task_status",
"finish_time": "2014-04-29T09:17:58Z",
"queue": "",
"result": [],
"spawned_tasks": [],
"start_time": "2014-04-29T09:17:58Z",
"state": "finished",
"tags": [
"pulp:repository:invalidrepo",
"pulp:action:unassociate"
],
"task_id": "610fff11-3076-4528-83a4-fa150ea66239",
"task_type": "pulp.server.managers.repo.unit_association.unassociate_by_criteria"
}

Version-Release number of selected component (if applicable):
2.4.0-0.10.beta

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:
no error raised

Expected results:

task state should be 'error' + "Missing resource(s): repo_id=invalidrepo"
Additional info:

+ This bug was cloned from Bugzilla Bug #1092424 +


Related issues

Blocked by Pulp - Issue #419: Unassociation of units from non existent repo should return 404CLOSED - WONTFIXActions
Actions #1

Updated by ipanova@redhat.com about 9 years ago

There are some intersections with https://bugzilla.redhat.com/show_bug.cgi?id=1092417, so depends how the first will be fixed.

+ This comment was cloned from Bugzilla #1092424 comment 1 +

Actions #2

Updated by bmbouter about 9 years ago

  • Related to Issue #419: Unassociation of units from non existent repo should return 404 added
Actions #3

Updated by bmbouter about 9 years ago

  • Related to deleted (Issue #419: Unassociation of units from non existent repo should return 404)
Actions #4

Updated by bmbouter about 9 years ago

  • Blocked by Issue #419: Unassociation of units from non existent repo should return 404 added
Actions #5

Updated by bmbouter about 9 years ago

  • Severity changed from Low to 1. Low
Actions #6

Updated by bmbouter almost 5 years ago

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

Updated by bmbouter almost 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 #8

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF