Bug 692172

Summary: task history persists thru repo delete
Product: [Retired] Pulp Reporter: dgao
Component: user-experienceAssignee: Jason Connor <jconnor>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jason.dobies, mmccune, pkilambi, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-09 17:08:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description dgao 2011-03-30 15:48:36 UTC
[dgao@zhongyong ~]$ curl -k -u "admin:admin" --request POST --data '{"id":"api_test_repo","arch":"noarch","name":"api_test_repo","feed":"yum:http://10.16.76.78/pub/updates"}' https://pulp-nightly.usersys.redhat.com/pulp/api/repositories/
{"use_symlinks": false, "feed_key": null, "package_count": 0, "distributionid": [], "consumer_cert": null, "consumer_ca": null, "filters": [], "id": "api_test_repo", "repomd_xml_path": "/var/lib/pulp//repos/pub/updates/repodata/repomd.xml", "group_gz_xml_path": "", "group_xml_path": "", "publish": true, "source": {"url": "http://10.16.76.78/pub/updates", "type": "yum", "supported_types": ["yum", "local", "rhn"]}, "groupid": [], "consumer_key": null, "packagegroups": {}, "files": [], "relative_path": "pub/updates", "sync_schedule": null, "packages": [], "arch": "noarch", "feed_cert": null, "name": "api_test_repo", "feed_ca": null, "last_sync": null, "clone_ids": [], "packagegroupcategories": {}, "_ns": "repos", "release": null, "checksum_type": "sha256", "_id": "api_test_repo", "errata": {}, "uri_ref": "/pulp/api/repositories/api_test_repo/"}[dgao@zhongyong ~]$ 
[dgao@zhongyong ~]$ 
[dgao@zhongyong ~]$ curl -k -u "admin:admin" https://pulp-nightly.usersys.redhat.com/pulp/api/repositories/api_test_repo/sync/
[{"scheduled_time": 0, "exception": null, "status_path": "/pulp/api/repositories/api_test_repo/sync/02e245ab-5ae4-11e0-9e56-5452004fdd6d/", "finish_time": "1301499622", "start_time": "1301499621", "traceback": null, "method_name": "_sync", "state": "finished", "result": null, "progress": {"status": "FINISHED", "num_success": 7, "size_total": 3170837, "num_download": 0, "item_name": null, "items_left": 0, "items_total": 7, "step": "Finished", "size_left": 0, "details": {"rpm": {"num_success": 7, "total_count": 7, "items_left": 0, "size_left": 0, "total_size_bytes": 3170837, "num_error": 0}}, "error_details": [], "num_error": 0}, "id": "02e245ab-5ae4-11e0-9e56-5452004fdd6d"}, {"scheduled_time": 0, "exception": null, "status_path": "/pulp/api/repositories/api_test_repo/sync/00444f82-5ae4-11e0-8d2f-5452004fdd6d/", "finish_time": "1301499613", "start_time": "1301499612", "traceback": null, "method_name": "_sync", "state": "finished", "result": null, "progress": {"status": "FINISHED", "num_success": 7, "size_total": 3170837, "num_download": 7, "item_name": null, "items_left": 0, "items_total": 7, "step": "Finished", "size_left": 0, "details": {"rpm": {"num_success": 7, "total_count": 7, "items_left": 0, "size_left": 0, "total_size_bytes": 3170837, "num_error": 0}}, "error_details": [], "num_error": 0}, "id": "00444f82-5ae4-11e0-8d2f-5452004fdd6d"}][dgao@zhongyong ~]$ 
[dgao@zhongyong ~]$ 
[dgao@zhongyong ~]$ 
[dgao@zhongyong ~]$ curl -k -u "admin:admin" --request POST --data '{}' --header 'accept: application/json' --header 'content-type: application/json'  https://pulp-nightly.usersys.redhat.com/pulp/api/repositories/api_test_repo/sync/

{"scheduled_time": 0, "exception": null, "status_path": "/pulp/api/repositories/api_test_repo/sync/45edd207-5ae4-11e0-95b9-5452004fdd6d/", "finish_time": null, "start_time": null, "traceback": null, "method_name": "_sync", "state": "waiting", "result": null, "progress": null, "id": "45edd207-5ae4-11e0-95b9-5452004fdd6d"}[dgao@zhongyong ~]$ 
[dgao@zhongyong ~]$ 
[dgao@zhongyong ~]$ curl -k -u "admin:admin" --request DELETE https://pulp-nightly.usersys.redhat.com/pulp/api/repositories/api_test_repo/ 

[dgao@zhongyong ~]$ curl -k -u "admin:admin" --request POST --data '{"id":"api_test_repo","arch":"noarch","name":"api_test_repo","feed":"yum:http://10.16.76.78/pub/updates"}' https://pulp-nightly.usersys.redhat.com/pulp/api/repositories/
{"use_symlinks": false, "feed_key": null, "package_count": 0, "distributionid": [], "consumer_cert": null, "consumer_ca": null, "filters": [], "id": "api_test_repo", "repomd_xml_path": "/var/lib/pulp//repos/pub/updates/repodata/repomd.xml", "group_gz_xml_path": "", "group_xml_path": "", "publish": true, "source": {"url": "http://10.16.76.78/pub/updates", "type": "yum", "supported_types": ["yum", "local", "rhn"]}, "groupid": [], "consumer_key": null, "packagegroups": {}, "files": [], "relative_path": "pub/updates", "sync_schedule": null, "packages": [], "arch": "noarch", "feed_cert": null, "name": "api_test_repo", "feed_ca": null, "last_sync": null, "clone_ids": [], "packagegroupcategories": {}, "_ns": "repos", "release": null, "checksum_type": "sha256", "_id": "api_test_repo", "errata": {}, "uri_ref": "/pulp/api/repositories/api_test_repo/"}[dgao@zhongyong ~]$ 
[dgao@zhongyong ~]$ 
[dgao@zhongyong ~]$ curl -k -u "admin:admin" https://pulp-nightly.usersys.redhat.com/pulp/api/repositories/api_test_repo/sync/[{"scheduled_time": 0, "exception": null, "status_path": "/pulp/api/repositories/api_test_repo/sync/906aa71c-5ae4-11e0-bde2-5452004fdd6d/", "finish_time": "1301499855", "start_time": "1301499854", "traceback": null, "method_name": "_sync", "state": "finished", "result": null, "progress": {"status": "FINISHED", "num_success": 7, "size_total": 3170837, "num_download": 7, "item_name": null, "items_left": 0, "items_total": 7, "step": "Finished", "size_left": 0, "details": {"rpm": {"num_success": 7, "total_count": 7, "items_left": 0, "size_left": 0, "total_size_bytes": 3170837, "num_error": 0}}, "error_details": [], "num_error": 0}, "id": "906aa71c-5ae4-11e0-bde2-5452004fdd6d"}, {"scheduled_time": 0, "exception": null, "status_path": "/pulp/api/repositories/api_test_repo/sync/45edd207-5ae4-11e0-95b9-5452004fdd6d/", "finish_time": "1301499730", "start_time": "1301499729", "traceback": null, "method_name": "_sync", "state": "finished", "result": null, "progress": {"status": "FINISHED", "num_success": 7, "size_total": 3170837, "num_download": 7, "item_name": null, "items_left": 0, "items_total": 7, "step": "Finished", "size_left": 0, "details": {"rpm": {"num_success": 7, "total_count": 7, "items_left": 0, "size_left": 0, "total_size_bytes": 3170837, "num_error": 0}}, "error_details": [], "num_error": 0}, "id": "45edd207-5ae4-11e0-95b9-5452004fdd6d"}, {"scheduled_time": 0, "exception": null, "status_path": "/pulp/api/repositories/api_test_repo/sync/02e245ab-5ae4-11e0-9e56-5452004fdd6d/", "finish_time": "1301499622", "start_time": "1301499621", "traceback": null, "method_name": "_sync", "state": "finished", "result": null, "progress": {"status": "FINISHED", "num_success": 7, "size_total": 3170837, "num_download": 0, "item_name": null, "items_left": 0, "items_total": 7, "step": "Finished", "size_left": 0, "details": {"rpm": {"num_success": 7, "total_count": 7, "items_left": 0, "size_left": 0, "total_size_bytes": 3170837, "num_error": 0}}, "error_details": [], "num_error": 0}, "id": "02e245ab-5ae4-11e0-9e56-5452004fdd6d"}, {"scheduled_time": 0, "exception": null, "status_path": "/pulp/api/repositories/api_test_repo/sync/00444f82-5ae4-11e0-8d2f-5452004fdd6d/", "finish_time": "1301499613", "start_time": "1301499612", "traceback": null, "method_name": "_sync", "state": "finished", "result": null, "progress": {"status": "FINISHED", "num_success": 7, "size_total": 3170837, "num_download": 7, "item_name": null, "items_left": 0, "items_total": 7, "step": "Finished", "size_left": 0, "details": {"rpm": {"num_success": 7, "total_count": 7, "items_left": 0, "size_left": 0, "total_size_bytes": 3170837, "num_error": 0}}, "error_details": [], "num_error": 0}, "id": "00444f82-5ae4-11e0-8d2f-5452004fdd6d"}][dgao@zhongyong ~]$

Comment 1 dgao 2011-03-30 15:51:05 UTC
Ugh..just noticed how ugly my previous comment is.

Basically test steps using curl are:
1) Create test repo 
2) Check sync history
3) Sync test repo
4) Delete test repo
5) Recreate test repo w/ the same name
6) Check sync history and you'll see the history from the previous deleted repo.

Comment 2 Jay Dobies 2012-07-11 19:20:43 UTC
Should be resolved in v2.

Comment 3 Preethi Thomas 2012-11-07 21:26:34 UTC
verified

Comment 4 Preethi Thomas 2012-11-07 21:27:43 UTC
verified with info from comment#2 in v2 build 335

Comment 5 Preethi Thomas 2013-01-09 17:08:46 UTC
Pulp v2.0 released