Bug 1515195
Summary: | generate errata applicability task occasionally raises duplicatekey error [6.2.z] | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> | |
Component: | Pulp | Assignee: | satellite6-bugs <satellite6-bugs> | |
Status: | CLOSED ERRATA | QA Contact: | Roman Plevka <rplevka> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 6.3.0 | CC: | aagrawal, adprice, andrew.schofield, anerurka, bbuckingham, ben.argyle, bkearney, bmbouter, brubisch, cduryee, daviddavis, dkaylor, dkliban, dzhukous, egolov, emarquez, ggainey, ggatward, ipanova, jcallaha, jturel, lzap, mhrivnak, mmccune, nitthoma, oshtaier, pcreech, pdwyer, phess, pmoravec, rbeyel, rchan, riehecky, rplevka, satellite6-bugs, sghai, smane, sramacha, sthirugn, ttereshc, val.baranov, xdmoon | |
Target Milestone: | Unspecified | Keywords: | Triaged | |
Target Release: | Unused | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | pulp-2.8.7.18-1 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | 1468022 | |||
: | 1530687 (view as bug list) | Environment: | ||
Last Closed: | 2018-02-05 13:55:32 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 1468022 | |||
Bug Blocks: | 1122832 |
Comment 1
Sachin Ghai
2017-11-20 11:32:10 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug. The Pulp upstream bug priority is at High. Updating the external tracker on this bug. All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST. VERIFIED on sat6.2.14-1 - the duplicate key error is now handled properly - prepare 2 consumers (register them to a sat, have some repos with packages and errata) - possibly tweak the pulp server.managers.consumer.applicability code to add some time.sleep() just after the regenerate_applicability function call that would make your opportunity window wider. - also add some _logger.info() messages into the `expect DuplicateKeyError` branch in order to make sure, you're replicated the behavior correctly (you might need to tweak pulp.server.logs to whitelist the logger) - now send out a package profile for a host1 (that would contain package version, triggering the errata status) - while you're hooked on the sleep(), trigger package profile upload from the other host - after the sleep() from the first package profile request expires, pulp should create an Applicability Object. - after the sleep() from the second package profile request expires, it should follow the same route of creating the applicability object, however it should raise the DuplicateKeyError, due this one already exists. However, the error is properly caught and handled. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:0273 |