[Pulp-list] rpm copy between repos based on build_time

Radu Coroi coroi_test at yahoo.com
Thu Dec 31 16:07:08 UTC 2015


Hi All,I'm trying to create a monthly snapshot release process with each new repo/snapshot having all the packages in Oracle Linux Latest repo until the beginning of the each month.
I tried to use the following json:{ "source_repo_id" : "rc_test1",  "criteria": {    "type_ids" : ["rpm"],    "filters" : {      "unit" : { "build_time": {"$lte": "2015-08-01"}}    }  }}
And the following command: curl -k -i -H "Accept: application/json" -X POST --data-binary "@/home/adm_RaduCoroi/ansible/pulp/copy_between_repos_based_on_build_time.json"  https://admin:admin@lab-a-pulp001.test-lab.local//pulp/api/v2/repositories/rc_test1/actions/associate/HTTP/1.1 202 ACCEPTEDDate: Thu, 31 Dec 2015 15:31:46 GMTServer: Apache/2.2.15 (Oracle)Content-Length: 172Connection: closeContent-Type: application/json; charset=utf-8
{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/8846ffdf-9d77-4fb5-93fa-ee417ab1bd05/", "task_id": "8846ffdf-9d77-4fb5-93fa-ee417ab1bd05"}], "result": null, "error": null}
Unfortunately nothing was copied between the test repos as build_time might not be part of the metadata.
I know that if I can create a schedule to get all rpms from the source to the destination but to go back in time without manual parsing of the RPM headers I will like to be able to filter based on build_time or similar info.
Thank you very much,Radu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20151231/61b1f30b/attachment.htm>


More information about the Pulp-list mailing list