Bug 832758

Summary: SetupNetwrks | Can't create BOND without attached network
Product: Red Hat Enterprise Linux 6 Reporter: Meni Yakove <myakove>
Component: vdsmAssignee: Dan Kenigsberg <dkenigsb>
Status: CLOSED DUPLICATE QA Contact: Meni Yakove <myakove>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.4CC: abaron, acathrow, bazulay, danken, dyasny, iheim, ilvovsky, lpeer, mkolesni, mpavlik, Rhev-m-bugs, yeylon, ykaul
Target Milestone: rc   
Target Release: 6.4   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: vdsm-4.9.6-25.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-30 17:17:25 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:
Bug Depends On:    
Bug Blocks: 840699    
Attachments:
Description Flags
vdsm.log
none
engine.log
none
logs none

Description Meni Yakove 2012-06-17 08:06:09 UTC
Description of problem:
When creating BOND interface without attached network the GUI stack and the BOND interface not created.  

Version-Release number of selected component (if applicable):
vdsm-4.9.6-16.0.el6.x86_64
rhevm-3.1.0_0001-14.el6ev.noarch

How reproducible:
Always

Steps to Reproduce:
1.Open SetupNetwork and create BOND (Do not attach any network to the BOND)
2.Apply
  
Actual results:
BOND not created and GUI stack (Need to refresh)

Expected results:
BOND should be created.

Comment 1 Meni Yakove 2012-06-17 08:07:36 UTC
Created attachment 592389 [details]
vdsm.log

Comment 2 Meni Yakove 2012-06-17 08:08:08 UTC
Created attachment 592390 [details]
engine.log

Comment 3 Itamar Heim 2012-06-17 08:15:21 UTC
logical networks or physical networks.
assuming the latter, i'd say correct behavior is to not allow creating the bond without specifying at least two physical networks it bonds.

Comment 5 Meni Yakove 2012-06-17 08:43:20 UTC
(In reply to comment #3)
> logical networks or physical networks.
> assuming the latter, i'd say correct behavior is to not allow creating the
> bond without specifying at least two physical networks it bonds.

Create BOND using physical networks and do not attached logical networks to it.
If we must attached logical network to the BOND the 'OK' button should be grayed out if we didn't attached any logical network to the BOND.

Comment 6 Mike Kolesnik 2012-07-02 09:14:46 UTC
(In reply to comment #5)
> Create BOND using physical networks and do not attached logical networks to
> it.
> If we must attached logical network to the BOND the 'OK' button should be
> grayed out if we didn't attached any logical network to the BOND.

No need to gray out, this is a VDSM side bug so please update product/component.

Comment 7 Mike Kolesnik 2012-07-02 09:15:24 UTC
Additionally, it might've been fixed already. Igor can you comment please?

Comment 8 Yaniv Kaul 2012-07-02 09:31:04 UTC
(In reply to comment #6)
> No need to gray out, this is a VDSM side bug so please update
> product/component.

Mike, I fully trust your ability to do it

Comment 11 Dan Kenigsberg 2012-07-04 07:03:04 UTC
I believe this has been fixed by http://gerrit.ovirt.org/5487 of vdsm-4.9.6-17.0. Please verify.

Comment 13 Martin Pavlik 2012-07-11 09:53:24 UTC
all important files is attached in attached logs.tar.gz

With vdsm-4.9.6-17.0.el6.x86_64 it is possible to create empty bond. However the bond is started in wrong mode. I selected bond mode1 (active-backup), but bond starts with mode0 (round-robin).

in vdsm.log it is visible that bondmode=1 is sent

Thread-62::DEBUG::2012-07-11 11:27:32,047::BindingXMLRPC::864::vds::(wrapper) client [10.34.63.65]::call setupNetworks with ({}, {'bond1': {'nics': ['p1p1', 'p1p2'], 'options': 'mode=1 miimon=100'}}, {'connectivityCheck': 'true', 'connectivityTimeout': 60000}) {} flowID [1472104]

ifcfg file is created correctly

[root@dell-r210ii-05 ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond1 
DEVICE=bond1
ONBOOT=yes
BOOTPROTO=none
BONDING_OPTS='mode=1 miimon=100'
NM_CONTROLLED=no


but bond is running in mode 0 (roun-robin)

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

Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: p1p1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: 90:e2:ba:04:2d:74
Slave queue ID: 0

Slave Interface: p1p2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: 90:e2:ba:04:2d:75
Slave queue ID: 0


Maybe this is related to following WARNING from vdsm.log 

MainProcess|Thread-62::WARNING::2012-07-11 11:27:32,508::configNetwork::83::root::(ifup) /etc/sysconfig/network-scripts/ifup-eth: line 136: echo: write error: Operation not permitted

Comment 14 Martin Pavlik 2012-07-11 09:54:00 UTC
Created attachment 597519 [details]
logs

Comment 15 Igor Lvovsky 2012-07-30 17:17:25 UTC

*** This bug has been marked as a duplicate of bug 842338 ***