Hide Forgot
[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 ~]$
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.
Should be resolved in v2.
verified
verified with info from comment#2 in v2 build 335
Pulp v2.0 released