Bug 576314 - Auto-update feature schedules errata multiples times for each system
Summary: Auto-update feature schedules errata multiples times for each system
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Other
Version: 530
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Justin Sherrill
QA Contact: Petr Sklenar
URL:
Whiteboard:
Depends On:
Blocks: sat531-blockers
TreeView+ depends on / blocked
 
Reported: 2010-03-23 19:35 UTC by Justin Sherrill
Modified: 2018-10-27 13:59 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-22 14:05:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0498 0 normal SHIPPED_LIVE Red Hat Network Satellite bug fix update 2010-06-22 14:03:13 UTC

Description Justin Sherrill 2010-03-23 19:35:39 UTC
Description of problem:

If the auto-update feature is enabled and there are multiple channels synced that contain the same errata a situation will present in which the errata is scheduled the same number of systems that contain that errata.

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


How reproducible:


Steps to Reproduce:
1. Sync  rhel-i386-server-5  & rhel-x86_64-server-5 
2. Register a system to one of the channels.
3. Wait a few days for an applicable errata to be released and run 'satellite-sync'
4. look and see how many times the errata was scheduled
  
Actual results:
The errata should be scheduled at least twice (once for each channel the errata is in)

Expected results:
The errata should only be scheduled once for the system

Comment 1 Justin Sherrill 2010-03-23 20:06:12 UTC
Need to modify ErrataQueueWorker to take channel_id into consideration for scheduleAutoUpdates()

Comment 2 Justin Sherrill 2010-03-26 20:22:18 UTC
Fixed in spacewalk git 51dc1dc669bc1ac048c9c6af9060b408db0a054d

Comment 8 Petr Sklenar 2010-06-14 16:01:41 UTC
taking qa contact for this bug

Comment 10 Justin Sherrill 2010-06-14 21:29:39 UTC
I think what was happening was that we were running the errata queue task multiple times for each errata (for different channels), so multiple entries were being inserted into rhnErrataNotificationQueue before the emailer could run.  Should be fixed now in master:

a124fd8e3259e3af2f2e0ccaa25062a52d5f4371

Comment 14 Petr Sklenar 2010-06-16 10:44:08 UTC
testing procedure:

1. Sync rhel-i386-server-5  & rhel-x86_64-server-5 
2. Register a system to one of the channels.
3. Wait a few days for an applicable errata to be released and run
'satellite-sync'
4. look and see how many times the errata was scheduled

Works as expected, The errata was scheduled once for the system. 
Verified on rhel55@i386 and rhel55@x86_64 with sat530 upgraded from errata.stage + packages from errata

Moving to Verified

Comment 16 errata-xmlrpc 2010-06-22 14:05:34 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0498.html


Note You need to log in before you can comment on or make changes to this bug.