Bug 554693

Summary: networkRetries = nonsense runs unlimited, set some default
Product: Red Hat Enterprise Linux 5 Reporter: Petr Sklenar <psklenar>
Component: rhn-client-toolsAssignee: Michael Mráka <mmraka>
Status: CLOSED ERRATA QA Contact: Pavel Novotny <pnovotny>
Severity: medium Docs Contact:
Priority: low    
Version: 5.4CC: jhutar, mmraka, pnovotny
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rhn-client-tools-0.4.20-40.el5 Doc Type: Bug Fix
Doc Text:
When the "networkRetries" configuration option was not set to a valid integer value, network operation did not time out at all. With this update, invalid values are now interpreted as a single attempt, and network operations time out as expected.
Story Points: ---
Clone Of:
: 625791 (view as bug list) Environment:
Last Closed: 2011-01-14 00:09:57 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: 625791    

Description Petr Sklenar 2010-01-12 12:25:12 UTC
Description of problem:
when you set 'networkRetries=A' which is nonsense it runs unlimited, it doesn't end

Version-Release number of selected component (if applicable):
rhn-client-tools-0.4.20-14.el5

How reproducible:
always

Steps to Reproduce:
1. iptables -I OUTPUT 1 -p tcp --dport 443 -o eth0 -j DROP
2. # grep networkRetries /etc/sysconfig/rhn/up2date 
networkRetries=A
3. rhnreg_ks -vvv --username=****** --password=***** --force --server=https://xmlrpc.rhn.redhat.com/XMLRPC 
  
Actual results:
many and many attempts

Expected results:
there is some default, for ex 5 attempts

Additional info:

Comment 1 Michael Mráka 2010-08-20 10:18:04 UTC
Fixed in upstream (spacewalk master) by
commit 4764a50696a20b3ac0282a43f2fd144edd04ef6c
    554693 - networkRetries should be positive number

Comment 2 Michael Mráka 2010-08-30 11:53:51 UTC
Fixed in svn
r195422 | mmraka | 2010-08-20 14:46:04 +0200 (Fri, 20 Aug 2010) | 6 lines

554693 - networkRetries should be positive number

Comment 5 Jaromir Hradilek 2010-11-30 12:31:22 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
When the "networkRetries" configuration option was not set to a valid integer value, network operation did not time out at all. With this update, invalid values are now interpreted as a single attempt, and network operations time out as expected.

Comment 7 errata-xmlrpc 2011-01-14 00:09:57 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/RHEA-2011-0112.html