Bug 1469800

Summary: package profile task runs profile update and generate applicability at the same time
Product: Red Hat Satellite Reporter: Eric Helms <ehelms>
Component: Errata ManagementAssignee: Eric Helms <ehelms>
Status: CLOSED ERRATA QA Contact: jcallaha
Severity: high Docs Contact:
Priority: high    
Version: 6.2.0CC: abalakht, bbuckingham, egolov, ehelms, hyu, jbhatia, jcallaha, jjansky, jsherril, ktordeur, lzap, mmccune, mmithaiw, ramsingh, smane, tprinz, wpinheir, zhunting
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-katello-3.0.0.157-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1499936 (view as bug list) Environment:
Last Closed: 2017-10-12 17:43:41 UTC Type: ---
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: 1499936    
Attachments:
Description Flags
6.2.11 patch
none
screenshot 1
none
screenshot 2
none
screenshot 3
none
verification screenshot none

Description Eric Helms 2017-07-11 21:01:07 UTC
Currently Actions::KatellO::Host::UploadPackageProfile  is running purely concurrently, meaning that the profile update and the kickoff of the applicability generation could occur in the wrong order

Comment 1 Eric Helms 2017-07-11 21:01:10 UTC
Created from redmine issue http://projects.theforeman.org/issues/20280

Comment 2 Eric Helms 2017-07-11 21:01:16 UTC
Upstream bug assigned to ehelms

Comment 4 Satellite Program 2017-07-13 02:15:09 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20280 has been resolved.

Comment 5 Satellite Program 2017-08-03 22:18:12 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20280 has been resolved.

Comment 6 Justin Sherrill 2017-09-12 19:17:07 UTC
Created attachment 1325001 [details]
6.2.11 patch

Comment 7 Brad Buckingham 2017-09-20 21:10:23 UTC
*** Bug 1490924 has been marked as a duplicate of this bug. ***

Comment 8 Lukas Zapletal 2017-09-21 15:14:16 UTC
Thanks, super annoying :-)

Comment 9 Brad Buckingham 2017-09-28 20:43:32 UTC
*** Bug 1494908 has been marked as a duplicate of this bug. ***

Comment 11 jcallaha 2017-10-10 18:52:35 UTC
Verified in Satellite 6.2.12 Snap 6.

Registered a RHEL 7.2 system which initially showed 22 sec, 11 bug, and 17 enhancement errata (screenshot 1). 
I then applied 3 bug fix errata (screenshot 2). 
After that successfully completed, I then navigated back to the details page for the content host and refreshed the page. The errata count was successfully updated with the correct results (screenshot 3).

'verification screenshot' shows the upload package profile starting and completing before the generate applicability task is kicked off.

Comment 12 jcallaha 2017-10-10 18:53:12 UTC
Created attachment 1336880 [details]
screenshot 1

Comment 13 jcallaha 2017-10-10 18:53:34 UTC
Created attachment 1336881 [details]
screenshot 2

Comment 14 jcallaha 2017-10-10 18:53:56 UTC
Created attachment 1336882 [details]
screenshot 3

Comment 15 jcallaha 2017-10-10 18:54:56 UTC
Created attachment 1336883 [details]
verification screenshot

Comment 16 Lukas Zapletal 2017-10-11 07:16:27 UTC
This bug was aligned into 6.2.13 why are we testing 6.2.12 snap? Is this going to be released in 6.2.12 then? Thanks.

Comment 20 errata-xmlrpc 2017-10-12 17:43:41 UTC
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/RHBA-2017:2887