Bug 1080642
Summary: | Cannot retrieve bindings between repo and consumer after repo deletion | |||
---|---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Ina Panova <ipanova> | |
Component: | API/integration | Assignee: | Sayli Karmarkar <skarmark> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ina Panova <ipanova> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | high | |||
Version: | unspecified | CC: | cperry, mhrivnak, skarmark | |
Target Milestone: | --- | Keywords: | Triaged | |
Target Release: | 2.4.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1130153 (view as bug list) | Environment: | ||
Last Closed: | 2014-08-09 06:54:42 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1130153 |
Description
Ina Panova
2014-03-25 20:36:56 UTC
Updated consumer bind to mark binding as deleted before notifying the agent. https://github.com/pulp/pulp/pull/871 build: 2.4.0-0.7.beta Tested in pulp-server-2.4.0-0.8.beta.fc20.noarch 1)retrieve bindings $ curl -H "Accept: application/json" -X GET -k -u admin:admin 'https://example.com/pulp/api/v2/consumers/a1/bindings/'| python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1224 100 1170 100 54 1042 48 0:00:01 0:00:01 --:--:-- 1258 [ { "_href": "/pulp/api/v2/consumers/a1/bindings/test1/yum_distributor/", "_id": { "$oid": "5347ed581f6ea802323e40b2" }, "_ns": "consumer_bindings", "binding_config": {}, "consumer_actions": [], "consumer_id": "a1", "deleted": false, "details": { "ca_cert": null, "client_cert": null, "gpg_keys": [], "protocols": [ "https" ], "relative_path": "/pulp/repos/test1", "repo_name": "test1", "server_name": "ip-10-35-136-99.eu-west-1.compute.internal" }, "distributor_id": "yum_distributor", "id": "5347ed581f6ea802323e40b2", "notify_agent": true, "repo_id": "test1", "type_id": "yum_distributor" }, { "_href": "/pulp/api/v2/consumers/a1/bindings/test2/yum_distributor/", "_id": { "$oid": "5347ed611f6ea80231583012" }, "_ns": "consumer_bindings", "binding_config": {}, "consumer_actions": [], "consumer_id": "a1", "deleted": false, "details": { "ca_cert": null, "client_cert": null, "gpg_keys": [], "protocols": [ "https" ], "relative_path": "/pulp/repos/test2", "repo_name": "test2", "server_name": "ip-10-35-136-99.eu-west-1.compute.internal" }, "distributor_id": "yum_distributor", "id": "5347ed611f6ea80231583012", "notify_agent": true, "repo_id": "test2", "type_id": "yum_distributor" } ] 2) delete repo $ curl -H "Accept: application/json" -X DELETE -k -u admin:admin 'https://example.com/pulp/api/v2/repositories/test1/'| python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 172 100 172 0 0 104 0 0:00:01 0:00:01 --:--:-- 119 { "error": null, "result": null, "spawned_tasks": [ { "_href": "/pulp/api/v2/tasks/13083685-daea-4842-a920-5e46b738c7c4/", "task_id": "13083685-daea-4842-a920-5e46b738c7c4" } ] } 3) retrieve bindings again $ curl -H "Accept: application/json" -X GET -k -u admin:admin 'https://example.com/pulp/api/v2/consumers/a1/bindings/'| python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 639 100 585 100 54 640 59 --:--:-- --:--:-- --:--:-- 817 [ { "_href": "/pulp/api/v2/consumers/a1/bindings/test2/yum_distributor/", "_id": { "$oid": "5347ed611f6ea80231583012" }, "_ns": "consumer_bindings", "binding_config": {}, "consumer_actions": [], "consumer_id": "a1", "deleted": false, "details": { "ca_cert": null, "client_cert": null, "gpg_keys": [], "protocols": [ "https" ], "relative_path": "/pulp/repos/test2", "repo_name": "test2", "server_name": "ip-10-35-136-99.eu-west-1.compute.internal" }, "distributor_id": "yum_distributor", "id": "5347ed611f6ea80231583012", "notify_agent": true, "repo_id": "test2", "type_id": "yum_distributor" } ] Moving to Verified. This has been fixed in Pulp 2.4.0-1. |