Open fao89 opened 2 years ago
@markgoddard This isn't necessarily a bug, it could just be that some minor detail about the metadata changed without actually changing the content of the repo. In mirror_complete
mode, it'll download the new metadadata and create a publication with that, but there won't be a new repository version.
I can't immediately rule out that it's definitely not a bug but this is fairly likely to be the reason why. You'd have to compare the metadata before and after.
I'll keep it open though because I just had an idea for improving the heuristic. In the event that you change some detail on the remote from on_demand
to immediate
mode it'll trigger a full sync just like if the metadata changed - and it does need to in order to download the packages - but in doing so it'll probably also trigger the new publication, and it doesn't need to do that.
Probably not relevant to your problem but still something we could improve.
@dralley thanks for the explanation. I suppose that makes sense, assuming that no metadata is stored in the repository version.
So that leads us to a second issue, which is that squeezer is unable to uniquely identify publications when there is more than one for a given repository version. See https://github.com/pulp/squeezer/pull/85#pullrequestreview-803557737
cc @mdellweg
This also means my workaround of simply deleting the new publication is sub-optimal, and I should instead point existing distributions to the new publication before deleting the old one?
Marking as triage-needed to take another look
Author: mgoddard (mgoddard)
Redmine Issue: 9651, https://pulp.plan.io/issues/9651
I have a nightly job that uses Ansible Squeezer modules to synchronise, publish and distribute some repositories. Every few days I hit an error like this:
I have verified that this is the case. There is one publication created after the last successful sync, and another created today for the same version.
I checked the sync task from today, and it completed successfully. However, it lists the new publication as a created resource, but no new repo version.
Comparing with another sync task, I see a repository version listed in the created_resources instead.
Here is one of the affected repos:
And the corresponding remote:
I'm using
policy: immediate
andsync_policy: mirror_complete
when syncing.Versions: