We are planning to sync all repos everyday and would prefer the version doesn't increment if repo content are the same. Just wondering how we can compare the remote content with pulp repo content so we run sync only if the remote content is changed?
Thanks From: [email protected] At: 10/24/19 05:47:56To: Bin Li (BLOOMBERG/ 120 PARK ) Cc: [email protected] Subject: Re: [Pulp-list] pulp3 repository version keep increasing This is an expected behavior. See https://pulp.plan.io/issues/3308. Feel free to comment with any thoughts you have. David On Wed, Oct 23, 2019 at 8:58 PM Bin Li (BLOOMBERG/ 120 PARK) <[email protected]> wrote: Any idea why repository version keep increasing even nothing was updated in the repo? I synced the repo from the same remote repo which always has the same content. The repo version increment every times I run sync. Below is output from version href. It shows nothing was added to repo and the total number of packages is the same. "results": [ { "base_version": null, "content_summary": { "added": {}, "present": { "rpm.package": { "count": 819, "href": "/pulp/api/v3/content/rpm/packages/?repository_version=/pulp/api/v3/repositories/7f1bc351-a1bd-4bf7-b7ee-0fc9fca592c7/versions/4/" } }, "removed": {} }, "number": 4, "pulp_created": "2019-10-23T18:16:31.331868Z", "pulp_href": "/pulp/api/v3/repositories/7f1bc351-a1bd-4bf7-b7ee-0fc9fca592c7/versions/4/" }, { "base_version": null, "content_summary": { "added": {}, "present": { "rpm.package": { "count": 819, "href": "/pulp/api/v3/content/rpm/packages/?repository_version=/pulp/api/v3/repositories/7f1bc351-a1bd-4bf7-b7ee-0fc9fca592c7/versions/3/" } }, "removed": {} }, "number": 3, "pulp_created": "2019-10-23T18:15:24.285845Z", "pulp_href": "/pulp/api/v3/repositories/7f1bc351-a1bd-4bf7-b7ee-0fc9fca592c7/versions/3/" }, Thanks_______________________________________________ Pulp-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/pulp-list
_______________________________________________ Pulp-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/pulp-list
