Bug 1243959

Summary: Duplicate Actions::Candlepin::ListenOnCandlepinEvents tasks
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: CandlepinAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: Jitendra Yejare <jyejare>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bbuckingham, cwelton, jyejare, sthirugn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/11166
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 16:04:17 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: 1190823    
Attachments:
Description Flags
screenshot
none
Verified Screenshot none

Description Mike McCune 2015-07-16 17:03:13 UTC
In certain situations the user can end up with large lists of this task running or stuck in paused:pending state and can't be mass resumed.

See attached screenshot.

We need to ensure there is only one of these tasks running at a time and we don't spam the tasks list with multiple tasks that can't be mass resumed.

Comment 1 Mike McCune 2015-07-16 17:03:48 UTC
Created attachment 1052753 [details]
screenshot

Comment 3 Justin Sherrill 2015-07-16 17:36:00 UTC
Reproducer steps:

1.  Verify no Pending ListenOnCandlepinEvents tasks exist  under Monitor > Tasks (or if they do count the # that do)
2.  Shut down qpidd
3.  Restart foreman-tasks and wait ~60 seconds
4.  Restart foreman-tasks again and wait ~60 seconds
5.  start qpidd
6.  Restart foreman-tasks once more


Result:  

Under Monitor > Tasks you will see one or more tasks stuck in 'pending'/.

Comment 4 Justin Sherrill 2015-07-20 21:40:12 UTC
Created redmine issue http://projects.theforeman.org/issues/11166 from this bug

Comment 5 Justin Sherrill 2015-07-21 15:53:17 UTC
Downstream PR: 
https://gitlab.sat.lab.tlv.redhat.com/satellite6/katello/merge_requests/89/

Comment 6 Jitendra Yejare 2015-07-23 09:50:23 UTC
Verified this bug on latest Satellite GA Snap 14 as per the steps mentioned in comment 3. 

The bug is no more reproducible and has been fixed.

Scrrenshot attached.

Comment 7 Jitendra Yejare 2015-07-23 09:51:37 UTC
Created attachment 1055270 [details]
Verified Screenshot

Comment 8 Brad Buckingham 2015-08-11 18:15:08 UTC
*** Bug 1241983 has been marked as a duplicate of this bug. ***

Comment 9 Bryan Kearney 2015-08-12 16:04:17 UTC
This bug was fixed in Satellite 6.1.1 which was delivered on 12 August, 2015.