Bug 1082257

Summary: ifup does not update bonding options for pre-existing bonds
Product: [Fedora] Fedora Reporter: Antoni Segura Puimedon <asegurap>
Component: initscriptsAssignee: Lukáš Nykrýn <lnykryn>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: asegurap, bazulay, danken, jonathan, lnykryn, vpavlin
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: initscripts-9.47-2.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-04 06:26:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Antoni Segura Puimedon 2014-03-29 21:34:14 UTC
Description of problem:
On line 431 of /etc/sysconfig/network-scripts/network-functions there is a check:
    [ -d "/sys/class/net/$1" ] && return 0
That when a bond already exists, will skip the rest of the method 'install_bonding_driver', which is in charge for setting the BONDING_OPTS.

A typical case is setting BONDING_OPTS for bond0 (which is present from the moment the bonding driver is installed).

Version-Release number of selected component (if applicable):
initscripts-9.47-1.fc19.x86_64


How reproducible: 100%


Steps to Reproduce:
1. modprobe bonding
2. write ifcfg-bond0 with BONDING_OPTS="mode=3 miimon=250" and have some ifcfg for the one or two dummy slaves
3. ifup bond0

Actual results:
    cat /sys/class/net/bond0/bonding/mode
and
    cat /sys/class/net/bond0/bonding/miimon

return 0 and 0


Expected results:
the cats above retun 3 and 250

Additional info:

This bug was fixed in F20.

Comment 1 Fedora Update System 2014-10-07 13:13:41 UTC
initscripts-9.47-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/initscripts-9.47-2.fc19

Comment 2 Fedora Update System 2014-10-08 19:13:55 UTC
Package initscripts-9.47-2.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing initscripts-9.47-2.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-12420/initscripts-9.47-2.fc19
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2014-12-04 06:26:13 UTC
initscripts-9.47-2.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.