Bug 687885 - Spacewalk is unable to sync a huge channel
Summary: Spacewalk is unable to sync a huge channel
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Satellite Synchronization
Version: 541
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Martin Minar
URL:
Whiteboard:
Depends On:
Blocks: sat541-rhel6-sat
TreeView+ depends on / blocked
 
Reported: 2011-03-15 16:26 UTC by Šimon Lukašík
Modified: 2016-07-04 00:56 UTC (History)
6 users (show)

Fixed In Version: spacewalk-backend-1.2.13-46
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-17 02:50:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
snippet from satellite-sync (647 bytes, text/plain)
2011-03-15 16:28 UTC, Šimon Lukašík
no flags Details
the traceback (2.31 KB, text/plain)
2011-03-15 16:29 UTC, Šimon Lukašík
no flags Details

Description Šimon Lukašík 2011-03-15 16:26:32 UTC
Description of problem:
During a satellite-sync of a big channel the session token may expire
and when it happens the underlying code treats it as a fault. In the
following commits the number of tolerated faults was decreased from
5 to 1. And as result satellite-sync crashes after the token expire.

Introduced by:
    24e5386344f061e7c138e2f95b7cd2d31a30686a
    b61515ea3408dc9c04e8e371bb85984c55e180f6
    351fb160a77bd5abc1348a01ab40a5769b4d20bc


Version-Release number of selected component (if applicable):
Spacewalk nightly
rhn-client-tools-1.4.5-1.el5
spacewalk-backend-tools-1.4.19-1.el5

How reproducible:
always, deterministic

Steps to Reproduce:
1. satellite-sync -c rhel-i386-server-5
2.
3.
  
Actual results:
After a while of syncing exception is thrown

Expected results:
Sync whole channel without exceptions.

Additional info:
The related beaker job: j:61626

Comment 1 Šimon Lukašík 2011-03-15 16:28:31 UTC
Created attachment 485544 [details]
snippet from satellite-sync

Comment 2 Šimon Lukašík 2011-03-15 16:29:10 UTC
Created attachment 485546 [details]
the traceback

Comment 3 Šimon Lukašík 2011-03-15 17:14:15 UTC
spacewalk.git: 377f4b439ef8c866c79c8c940bba1c11b1e88bb4

Comment 5 Šimon Lukašík 2011-03-15 17:28:33 UTC
QA: How to test on rhel5:

echo 'networkRetries=1' >> /etc/sysconfig/rhn/up2date
satellite-sync -c rhel-i386-server-5

Comment 6 Miroslav Suchý 2011-04-21 11:31:27 UTC
cherry picked as 3d05614b06013f20f3ecb1f58dd4932688ca5505

Comment 9 Pavel Novotny 2011-06-08 10:25:40 UTC
Moving to RELEASE_PENDING.

Re-verified with spacewalk-backend-1.2.13-52.el6sat.noarch

Used option 'networkRetries=1' in /etc/rhn/rhn.conf.

Sync result (snippet):
======================
13:03:01    Importing *relevant* package metadata: rhel-i386-server-5 (8864)
17:10:12    Retrieving / parsing errata data: rhel-i386-server-5 (1702)
17:11:20    Retrieving / parsing kickstart data: rhel-i386-server-5 (7)
17:11:22    Retrieving / parsing kickstart tree files: rhel-i386-server-5 (866)
17:24:55    Importing *relevant* errata: rhel-i386-server-5 (1702)
17:30:52 Imported kickstartable trees (7)
    Import complete:
        Begin time: Tue Jun  7 08:43:20 2011
        End time:   Tue Jun  7 17:30:52 2011
        Elapsed:    8 hours, 47 minutes, 31 seconds
======================

Comment 10 Clifford Perry 2011-06-17 02:50: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.

https://rhn.redhat.com/errata/RHEA-2011-0875.html


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