Bug 680520
| Summary: | missing sync id's | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Shannon Hughes <shughes> |
| Component: | z_other | Assignee: | Jason Connor <jconnor> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | CC: | mmccune, skarmark |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | Sprint 22 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 680503 | Environment: | |
| Last Closed: | 2011-08-16 12:09:14 UTC | Type: | --- |
| 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: | 680503 | ||
| Bug Blocks: | 647488, 683939, 684061 | ||
FYI: This is set to depend on https://bugzilla.redhat.com/show_bug.cgi?id=680503 I changed the underlying locking around the task queue storage, I believe that it has addressed the bug, but I wasn't able to reproduce it before or after the fix, so I'm not really sure. Marking as modified anyway and crossing my fingers... Fixed in build 0.163. moving to verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.163-1.fc14.noarch
[root@preethi ~]# curl -k -u admin:admin --request POST --data '{}' --header 'accept: application/json' --header 'content-type: application/json' https://localhost/pulp/api/repositories/f14-original/sync//
{"scheduled_time": {"$date": 1302790191909}, "exception": null, "status_path": "/pulp/api/repositories/f14-original/sync/64a13cee-66c2-11e0-b525-002564a85a58/", "finish_time": null, "start_time": "1302804591", "traceback": null, "method_name": "_sync", "state": "running", "result": null, "progress": null, "id": "64a13cee-66c2-11e0-b525-002564a85a58"}[root@preethi ~]#
[root@preethi ~]#
[root@preethi ~]# curl -k -u admin:admin https://localhost/pulp/api/repositories/f14-original/sync/64a13cee-66c2-11e0-b525-002564a85a58/
{"scheduled_time": {"$date": 1302790191909}, "exception": null, "status_path": "/pulp/api/repositories/f14-original/sync/64a13cee-66c2-11e0-b525-002564a85a58/", "finish_time": null, "start_time": "1302804591", "traceback": null, "method_name": "_sync", "state": "running", "result": null, "progress": {"status": "FINISHED", "num_success": 2773, "size_total": 3273644559, "num_download": 1, "item_name": null, "items_left": 0, "items_total": 2773, "step": "Running Createrepo", "size_left": 0, "details": {"tree_file": {"num_success": 7, "total_count": 7, "items_left": 0, "size_left": 0, "total_size_bytes": 0, "num_error": 0}, "rpm": {"num_success": 2766, "total_count": 2766, "items_left": 0, "size_left": 0, "total_size_bytes": 3273644559, "num_error": 0}}, "error_details": [], "num_error": 0}, "id": "64a13cee-66c2-11e0-b525-002564a85a58"}[root@preethi ~]#
Closing with Community Release 15 pulp-0.0.223-4. Closing with Community Release 15 pulp-0.0.223-4. |
calling the sync api and getting back a sync id then immediately using it in a sync status call and receiving error message that the sync id does not exist: Started GET "/sync_management/status/?_=1298656756138&repo_id=kgems-1234777&sync_id=ed50d051-4108-11e0-89b7-00219b3b5088" for 10.11.11.1 at Fri Feb 25 12:59:03 -0500 2011 Processing by SyncManagementController#status as JSON Parameters: {"repo_id"=>"kgems-1234777", "sync_id"=>"ed50d051-4108-11e0-89b7-00219b3b5088", "_"=>"1298656756138"} Resource GET request: /pulp/api/repositories/kgems-1234777/sync/ed50d051-4108-11e0-89b7-00219b3b5088/ Error parsing the body: 737: unexpected token at '"No sync with id ed50d051-4108-11e0-89b7-00219b3b5088 found"' also, would be nice to have error message return in JSON format