Bug 472481

Summary: BONDING_OPT cause no syntax error, but create R-R bonding
Product: Red Hat Enterprise Linux 5 Reporter: masanari iida <masanari_iida>
Component: initscriptsAssignee: initscripts Maintenance Team <initscripts-maint-list>
Status: CLOSED NOTABUG QA Contact: BaseOS QE <qe-baseos-auto>
Severity: low Docs Contact:
Priority: medium    
Version: 5.2CC: notting
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-11-21 15:00:23 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:

Description masanari iida 2008-11-21 03:14:47 UTC
Description of problem:

When I set "BONDING_OPT="mode=1", 
system configured the bonding as "Round-Robin" 
I know I should have set "BONDING_OPTS".

Expected result would be either 
a) Syntax error while network initialize.
b) Set Active-Backup mode, even though option name 
"BONDING_OPT" is wrong.


FYI, if I set BONDING_OPTS="mode=1", 
the system configure the bonding as "active-backup"
This is expected.

It is because this symptom happen with configuration mistake,
so I don't consider this is a serious bug.
But currently /usr/share/doc/initscript-<version>/sysconfig.txt
doesn't explain what is correct, so we don't know what to do.
I have opened other BZ 472480 for documentation missing.

Version-Release number of selected component (if applicable):
RHEL 5.2
initscripts-8.45.19.EL-1

How reproducible:
Always

Steps to Reproduce:
1. Configure bonding.
Set ifcfg-bond0 as follow. 
 
BONDING_OPT="mode=1 primary=eth0 miimon=200"

2. Restart network.
  
Actual results:
Bonding was set R-R mode.


Expected results:
a) Syntax error 
b) Set Active-Backup mode, even though option name 
"BONDING_OPT" is wrong.



Additional info:

Comment 1 Bill Nottingham 2008-11-21 15:00:23 UTC
That's not how configuration parameters work for initscripts - if you give a parameter the wrong name, it's just ignored. (Such as if you used IPADDRESS rather than IPADDR.)