RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 842338 - VDSM 3.1 beta1: vdsm doesn't manage to configure bonding mode.
Summary: VDSM 3.1 beta1: vdsm doesn't manage to configure bonding mode.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.3
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: beta
: ---
Assignee: Dan Kenigsberg
QA Contact: Yaniv Kaul
URL:
Whiteboard: network rhev-3.1
: 832758 (view as bug list)
Depends On:
Blocks: 844119
TreeView+ depends on / blocked
 
Reported: 2012-07-23 14:10 UTC by Avi Tal
Modified: 2022-07-09 05:37 UTC (History)
15 users (show)

Fixed In Version: vdsm-4.9.6-24.0
Doc Type: Bug Fix
Doc Text:
Previously, VDSM failed to configure bonding mode until the network was restarted due to a change in the kernel semantics regarding asking for changes in bond mode. Now, the VDSM changes bond mode only when the bonding device is down, meaning the Red Hat Enterprise Virtualization Manager-configured bonding mode takes effect immediately.
Clone Of:
: 844119 (view as bug list)
Environment:
Last Closed: 2012-12-04 19:03:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vdsm 3.0 log (365.88 KB, application/x-compressed-tar)
2012-07-23 14:11 UTC, Avi Tal
no flags Details
vdsm 3.1 log (838.00 KB, application/x-compressed-tar)
2012-07-23 14:12 UTC, Avi Tal
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:1508 0 normal SHIPPED_LIVE Important: rhev-3.1.0 vdsm security, bug fix, and enhancement update 2012-12-04 23:48:05 UTC

Description Avi Tal 2012-07-23 14:10:54 UTC
Description of problem:
Configuring bonding interface via rhevm (vdsm) doesn't actually configure the bonding mode but only adding the slaves.

looks like bonding mode is the latest mode before the current configuration.

Steps to Reproduce:
1. check /proc/net/bonding/bond0
2. write down the "Bonding Mode:"
3. configure new bonding interface mode=4 (or any other mode - different then what exists) on same bond0 
4. check /proc/net/bonding/bond0

  
Actual results:
/proc/net/bonding/bond0 will still contain the old "Bonding Mode:" instead of updating the new mode=4

Expected results:
update mode regarding configuration

Additional info:
** This bug appear also on latest 3.0.z (vdsm-4.9-113.2.el6_3.x86_64)

Comment 1 Avi Tal 2012-07-23 14:11:50 UTC
Created attachment 599788 [details]
vdsm 3.0 log

Comment 2 Avi Tal 2012-07-23 14:12:23 UTC
Created attachment 599789 [details]
vdsm 3.1 log

Comment 3 Avi Tal 2012-07-23 14:14:22 UTC
3.1 details:
kernel 2.6.32-286.el6.x86_64
libvirt-0.9.10-21.el6_3.1.x86_64
vdsm-4.9.6-21.0.el6_3.x86_64


3.0 details:
2.6.32-278.el6.x86_64
vdsm-4.9-113.2.el6_3.x86_64
libvirt-0.9.10-21.el6_3.3.x86_64

Comment 4 Dan Kenigsberg 2012-07-23 15:12:29 UTC
Your 3.1 kernel is older than your 3.0's. There's probably a place for upgrade.

Could you see when this was introduced? I mean, did it work fine with rhel-6.2? Please record initscripts and kernel versions.

The following patch by Mark Wu aims to fix this issue
http://gerrit.ovirt.org/6217

Comment 5 Martin Pavlik 2012-07-24 12:01:02 UTC
On rhel 6.2 with vdsm vdsm-4.9-113.1.el6.x86_64 it works fine. See more details below:

[root@dell-r210ii-08 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.2 (Santiago)

[root@dell-r210ii-08 ~]# uname -a
Linux dell-r210ii-08.rhev.lab.eng.brq.redhat.com 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

root@dell-r210ii-08 ~]# rpm -qa | grep vdsm
vdsm-4.9-113.1.el6.x86_64
vdsm-cli-4.9-113.1.el6.x86_64


[root@dell-r210ii-08 ~]# cat /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)

Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0

802.3ad info
LACP rate: slow
Aggregator selection policy (ad_select): stable
bond bond1 has no active aggregator

Slave Interface: p1p1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 90:e2:ba:04:28:b8
Aggregator ID: N/A
Slave queue ID: 0

Slave Interface: p1p2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 90:e2:ba:04:28:b9
Aggregator ID: N/A
Slave queue ID: 0

[root@dell-r210ii-08 ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond1
DEVICE=bond1
ONBOOT=yes
BOOTPROTO=none
BRIDGE=NET1
BONDING_OPTS=mode=4

Comment 6 Avi Tal 2012-07-24 12:05:14 UTC
Adding to above comment
# rpm -q initscripts
initscripts-9.03.27-1.el6.x86_64

Comment 8 Dan Kenigsberg 2012-07-24 17:36:05 UTC
I'd like to copy Mark's gerrit comment to here:

It turns out that it caused by a recent kernel change as you guessed. So that means this problem could only happen on fedora host, which explains that it's not reported before.

For details, please see the following kernel commit:

$git show 4a8bb7e2
commit 4a8bb7e27fbb68da888b55f26defd2855225b2d5
Author: Veaceslav Falico <vfalico>
Date: Tue Nov 15 06:44:42 2011 +0000

bonding: Don't allow mode change via sysfs with slaves present

When changing mode via bonding's sysfs, the slaves are not initialized
correctly. Forbid to change modes with slaves present to ensure that every
slave is initialized correctly via bond_enslave().

Signed-off-by: Veaceslav Falico <vfalico>
Signed-off-by: Andy Gospodarek <andy>
Acked-by: Nicolas de Pesloüan <nicolas.2p.debian>
Signed-off-by: David S. Miller <davem>

diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c
index 5a20804..4ef7e2f 100644
--- a/drivers/net/bonding/bond_sysfs.c
+++ b/drivers/net/bonding/bond_sysfs.c
@@ -319,6 +319,13 @@ static ssize_t bonding_store_mode(struct device *d,
goto out;
}

+ if (bond->slave_cnt > 0) {
+     pr_err("unable to update mode of %s because it has slaves.\n",
+     bond->dev->name);
+     ret = -EPERM;
+     goto out;
+ }
+
new_value = bond_parse_parm(buf, bond_mode_tbl);
if (new_value < 0) {
pr_err("%s: Ignoring invalid mode value %.*s.\n",
[mark@localhost net]$ git name-rev --tag 4a8bb7e27fbb68da888b55f26defd2855225b2d5
4a8bb7e27fbb68da888b55f26defd2855225b2d5 tags/v3.2-rc3~25^2~4

Comment 9 Igor Lvovsky 2012-07-30 17:17:26 UTC
*** Bug 832758 has been marked as a duplicate of this bug. ***

Comment 10 Avi Tal 2012-07-31 09:10:10 UTC
verify on vdsm-4.9.6-24.0.el6_3.x86_64 - PASS
i have configured all supported bond 1,2,4,5 and mode was updated.

Comment 13 errata-xmlrpc 2012-12-04 19:03:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-1508.html


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