Bug #18920
closedPossible race condition when sync multiple puppet repos at the same time
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1421594
Description of problem:
Puppet repo sync has the following steps:
1) Unassociate all puppet modules from the repo
2) Sync the Repo
3) Remove all Orphans
Lets say we are syncing 'Repo 1' and 'Repo 2' at the same time. 'Module A' is only associated to 'Repo 1'
Unassociate 'Module A' from 'Repo 1' will make it an orphan, so the 'Repo 1' sync task will assume 'Module A' is still in Pulp and will not try to re-download it again. At the same time, 'Repo 2' sync task reaches the 'Remove all orphans step' and remove 'Module A' from Pulp. This will cause the 'Repo 1' sync to fail with the following error:
IOError: [Errno 2] No such file or directory: u'/var/lib/pulp/content/units/puppet_module/1f/37902b7b8dd30cd2f0a2a99914f703c1b1459bc905504b8c23225cee4b728b/mweetman-hosts-0.1.0.tar.gz'
How reproducible:
This issue is hard to reproduce, because this issue will only be triggered in a very specific timing.
Updated by John Mitsch over 7 years ago
- Category changed from 91 to Repositories
- Assignee set to Andrew Kofink
- Translation missing: en.field_release set to 228
Updated by Brad Buckingham over 7 years ago
- Target version changed from 187 to 193
Updated by Justin Sherrill over 7 years ago
- Has duplicate Bug #19284: "Sync Repository on Capsules" regularly fails for Puppet Modules added
Updated by Justin Sherrill over 7 years ago
- Assignee deleted (
Andrew Kofink) - Translation missing: en.field_release changed from 228 to 258
Updated by Brad Buckingham over 7 years ago
- Target version changed from 193 to 196
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6829 added
Updated by Eric Helms over 7 years ago
- Translation missing: en.field_release changed from 258 to 267
Updated by Brad Buckingham over 7 years ago
- Target version changed from 196 to 202
Updated by Andrew Kofink over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|f1e8c1581441d4b41849e843ed5e6fac711d3ec0.
Updated by Eric Helms over 7 years ago
- Translation missing: en.field_release changed from 267 to 281
Updated by Andrew Kofink almost 7 years ago
- Related to Bug #20540: Duplicate Unit Names in Smart-Proxy Sync after 3.4.4 upgrade added