-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate key value violates unique constraint when syncing multiple Ubuntu distributions #611
Comments
This seems to generate a conflict on |
I have not yet tried to reproduce this, since I expect I will need to deploy a "large disk size test environment" to do so. But yes, looking again, this error is probably on the publish. I had not considered this possibility since I sometimes stupidly forget that |
With autopublish a sync in pulp might also get there. I was just trying to narrow it down. |
I have the same kind of error after I created a single repository for Bionic, Focal and Jammy (as having 3 separate repos for each distro was bugging me).
When I tried to create a single Jammy repository (jammy, jammy-updates, jammy-security: main restricted universe multiverse), it seemed to work ok. Looking at it in Dynflow, the run tab shows everything as green except "Actions::Pulp3::Repository::CreatePublication" and "Actions::Pulp3::Repository::SavePublication". This is with Foreman 3.3.0-1, Katello-4.5.0-1, python39-pulp-deb-2.18.0-3. EDIT: The above is quite a small repo (compared to an OS), and if you try and have puppet7 and puppet-tools in the same Repo in foreman it errors with:
|
Version
Describe the bug
Originally reported here: https://community.theforeman.org/t/duplicate-key-value-violates-unique-constrain-when-synchronizing-product-published-deb-file/29872
Error message:
It looks like the package
pool/all/f/flashrom/libflashrom-dev_1.2-5_amd64.deb
exists in multiple distributions and there is a race condition to create the one DB entry during sync.To Reproduce
Synchronize some combination of
focal forcal-updates focal-backports focal-security
in a single sync.Expected behavior
The duplicate package is created once, and is included in both sets of metadata without error.
Workaround
It is possible to work around this issue, by syncing the affected APT distributions into a single Pulp repository each. (Rather than multiple APT distributions into a single Pulp repository).
Possibly related
The text was updated successfully, but these errors were encountered: