Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 541262

Summary: rhn-client-tools: networkRetries option 0 does not work
Product: [Community] Spacewalk Reporter: Milan Zázrivec <mzazrivec>
Component: ClientsAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.6CC: jhutar
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 526450 Environment:
Last Closed: 2010-02-16 12:56:19 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: 543511    

Description Milan Zázrivec 2009-11-25 12:34:15 UTC
+++ This bug was initially created as a clone of Bug #526450 +++

networkRetries option from /etc/sysconfig/rhn/up2date allows user to
specify number of retry attempts when contacting server. This option
if not honored by client code when it's set to 0.

Version-Release number of selected component (if applicable):
rhn-client-tools-0.4.20-9.el5 / <= RHEL 5.4

How reproducible:
Always

Steps to Reproduce:
1. Install RHEL5, set networkRetries option in /etc/sysconfig/rhn/up2date
to zero.
2. block connection to your RHN / Satellite / Spacewalk server by iptables
3. tail -f /var/log/up2date
4. run rhnreg_ks
5. Watch number of attempts your client makes to the server

Actual results:
Client makes five connection attempts

Expected results:
Client makes zero retry attempts

Additional information:
N/A

Comment 1 Milan Zázrivec 2009-11-25 13:42:55 UTC
spacewalk.git master: dd9ffb1e6bc62bb1c8bb80da110ebeeedb722986

Comment 2 Milan Zázrivec 2009-11-26 20:14:19 UTC
Revised networkRetries logic:

* treat all values less or equal to zero as: make exactly one connection
attempt
* treat all values greater than zero as: make exactly that many connection
attempts

According to this specifying one or zero will have the same effect
(i.e. exactly one connection attempt).

spacewalk.git master: 116344e5a23cc1fe7da54f3fb07607de03b1b803

Comment 3 Milan Zázrivec 2010-02-05 12:50:54 UTC
rhn-client-tools-0.8.2-1.el5

Comment 4 Michael Mráka 2010-02-16 12:59:31 UTC
Spacewalk 0.8 has been released