Bug 554693 - networkRetries = nonsense runs unlimited, set some default
Summary: networkRetries = nonsense runs unlimited, set some default
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rhn-client-tools
Version: 5.4
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Michael Mráka
QA Contact: Pavel Novotny
URL:
Whiteboard:
Depends On:
Blocks: 625791
TreeView+ depends on / blocked
 
Reported: 2010-01-12 12:25 UTC by Petr Sklenar
Modified: 2011-01-14 00:09 UTC (History)
3 users (show)

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.
Clone Of:
: 625791 (view as bug list)
Environment:
Last Closed: 2011-01-14 00:09:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0112 0 normal SHIPPED_LIVE yum-rhn-plugin and rhn-client-tools bug fix and enhancement update 2011-01-12 17:29:05 UTC

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


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