Actions
Issue #3255
closedpulp-consumer does not remove binding if repo is no longer available on server
Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.14.0
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
Hi,
as per documentation at https://docs.pulpproject.org/user-guide/consumer-client/bind.html#unbind
the 'pulp-consumer rpm unbind --force --repo-id=foo' should remove the binding on client without any interaction with the server. But pulp-consumer still connects to server and checks for existance.
Environment:
RHEL 7.4
pulp-server-2.14.3-1.el7.noarch
pulp-consumer-client-2.14.3-1.el7.noarch
Expected result:
# pulp-consumer rpm unbind --repo-id=foobar
Unbind tasks successfully created:
Task Id: d8cab7f5-c2a6-4425-a70d-465bc1388f07
Actual result:
# pulp-consumer -vvv rpm unbind --repo-id=foobar
2018-01-08 15:19:21,669 - DEBUG - sending DELETE request to /pulp/api/v2/consumers/pulpserver/bindings/foobar/yum_distributor/
2018-01-08 15:19:21,713 - INFO - DELETE request to /pulp/api/v2/consumers/pulpserver/bindings/foobar/yum_distributor/ with parameters {"force": false}
2018-01-08 15:19:21,713 - INFO - Response status : 404
2018-01-08 15:19:21,713 - INFO - Response body :
{
"exception": null,
"traceback": null,
"_href": "/pulp/api/v2/consumers/pulpserver/bindings/foobar/yum_distributor/",
"error_message": "Missing resource(s): repo_id=foobar, distributor_id=yum_distributor",
"http_request_method": "DELETE",
"http_status": 404,
"error": {
"code": "PLP0009",
"data": {
"resources": {
"repo_id": "foobar",
"distributor_id": "yum_distributor"
}
},
"description": "Missing resource(s): repo_id=foobar, distributor_id=yum_distributor",
"sub_errors": []
},
"resources": {
"repo_id": "foobar",
"distributor_id": "yum_distributor"
}
}
Repository [foobar] does not exist on the server
Thanks.
Actions