Bug 1204246

Summary: Sometimes Auto-Errata Updates are not scheduled
Product: [Community] Spacewalk Reporter: Stephen Herr <sherr>
Component: ServerAssignee: Stephen Herr <sherr>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.2   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-14 19:03:06 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:    
Bug Blocks: 1175389, 1205306, 1207293    

Description Stephen Herr 2015-03-20 16:54:33 UTC
A timing window exists where it is possible that Auto-Errata Updates are not scheduled for servers they are applicable to.

The Taskomatic ErrataQueue job is the thing that schedules the update actions for servers that have Auto Errata Updates turned on. However, it depends on the data updated by the ErrataCache job to know which servers the errata are applicable to. Consequently, ErrataQueue will not start processing a channel if ErrataCache is still running on that channel.

However, the ErrataCache worker removes the job from the queue for the channel it's working on before it is finished. This creates a timing window that potentially allows ErrataQueue to process the channel before EC is done and decide (based on the incomplete ErrataCache data) that the errata is not applicable to servers that it actually is applicable to, causing them to not get the errata update action scheduled.

Comment 1 Stephen Herr 2015-03-20 17:30:01 UTC
Committing to Spacewalk master:
80249d8e13919ecc8a6883f93618de9cdec04d5a

Comment 2 Grant Gainey 2015-03-23 16:59:03 UTC
Moving bugs to ON_QA as we move to release Spacewalk 2.3

Comment 3 Stephen Herr 2015-04-02 15:08:47 UTC
A pull request accidentally undid the commit in comment 1, re-doing in Spacewalk master:
746366b3405f9e5a1a6e43651593a9f8126bf715

And cherry-picking into Spacewalk-2.3:
62bd10835d98f3103671c08f0c6c11434ffe94d2

Comment 4 Grant Gainey 2015-04-14 19:03:06 UTC
Spacewalk 2.3 has been released. See

https://fedorahosted.org/spacewalk/wiki/ReleaseNotes23