Bug 845944

Summary: bootstrap | RHEVM onboot set to no if onboot of ethX was no
Product: Red Hat Enterprise Linux 6 Reporter: Meni Yakove <myakove>
Component: vdsmAssignee: Dan Kenigsberg <dkenigsb>
Status: CLOSED DUPLICATE QA Contact: Meni Yakove <myakove>
Severity: medium Docs Contact:
Priority: low    
Version: 6.3CC: abaron, bazulay, danken, iheim, lpeer, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-23 20:29:00 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 Meni Yakove 2012-08-06 08:08:54 UTC
Description of problem:
I have host with eth2 that ifcfg-eth2 cfg is:
DEVICE=eth2
ONBOOT=no
BOOTPROTO=dhcp
HWADDR=00:10:18:24:47:F2

I have add the host to RHEVM and install it.
The newly created RHEVM ifcfg file look like this:
DEVICE=rhevm
TYPE=Bridge
ONBOOT=yes
DELAY=0
BOOTPROTO=dhcp
ONBOOT=no

The RHEVM cfg file have two onboot one with yes and one with no, After reboot RHEVM bridge is down.


Version-Release number of selected component (if applicable):
vdsm-4.9-113.2.el6_3.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Host with ethX that have onboot=off
2.Add the host to RHEVM and install it.

  
Actual results:
After reboot RHEVM bridge not up, The hosty is non-operational

Expected results:
After reboot RHEVM bridge is up, shouldn't be onboot=no on RHEVM cfg file.

Comment 2 lpeer 2012-08-06 08:25:42 UTC
In the bootstrap process the management bridge parameters are copied from the nic the bridge is connected to (in this case the ONBOOT=no).

In addition the bootstrap is adding a few parameter of it own (ONBOOT=yes).

We are missing the logic to skip copying the ONBOOT property from the bridge.

Comment 3 Dan Kenigsberg 2012-08-23 20:29:00 UTC
I believe that the root cause for this is that ONBOOT is passed as-is to the internal functions, and not converted to lowercase - just as in bug 847733.
Thus, I think that this should be solved by

http://gerrit.ovirt.org/7390

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