Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1151035

Summary: Repo Sync and Content View Publish simultanously cause Content View Publish not to complete before Sync is complete/cancelled.
Product: Red Hat Satellite Reporter: Harald Jensås <hjensas>
Component: Content ViewsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Jameer Pathan <jpathan>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.4CC: ahumbe, bbuckingham, cwelton, djuran
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-05 19:32:41 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: 1139277    
Attachments:
Description Flags
Forman Debug info none

Description Harald Jensås 2014-10-09 13:06:31 UTC
Created attachment 945306 [details]
Forman Debug info

Description of problem:
When publishing a new version of a Content View while multiple large sync jobs are running simultanously the Content View Publish job get "stuck" most likely it is on the queue waiting for someone to pick the task and complete it. Seems like all the workers are busy doing sync, and the Content View publish task is left in the queue until there are available workers.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Start syncronization of some large repos. Examples:
 Red Hat Enterprise Linux 6 Server - Optional RPMs x86_64 6Server
 Red Hat Enterprise Linux 6 Server - Supplementary RPMs x86_64 6Server
  etc.
2. Make change to a Content View.
3. Publish new version of Content View.

Actual results:
Content View Publish task starts, but is stuck on copy rpms step.
If Sync jobs are cancelled, Content View Publish Task continues.

Expected results:
Content View Publish Task completes in a few minutes, as it does when no sync is on-going. 

Additional info:

Comment 1 RHEL Program Management 2014-10-09 13:13:15 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Corey Welton 2014-10-09 13:25:04 UTC
Possibly a dupe, will look.

Comment 4 Ashish Humbe 2015-05-01 10:38:55 UTC
(In reply to Corey Welton from comment #3)
> Possibly a dupe, will look.

Looks like a duplicate ​of https://bugzilla.redhat.com/show_bug.cgi?id=1136213 and it seems that it is considered for satellite v 6.1 release.

Comment 6 Brad Buckingham 2016-08-05 19:32:41 UTC
I have tested this on Satellite 6.2 GA and am unable to reproduce the behavior described.  There have been numerous improvements in this area, since the bug was initially created; therefore, I am going to close it out.  If you re-encounter this issue on Satellite 6.2, please open a new bugzilla and attach updated foreman-debug with full details.  Thanks!