Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1105227

Summary: Hosted-engine setup not identify lowercase parameters in network-scripts
Product: Red Hat Enterprise Virtualization Manager Reporter: Artyom <alukiano>
Component: ovirt-hosted-engine-setupAssignee: Lev Veyde <lveyde>
Status: CLOSED NOTABUG QA Contact: Leonid Natapov <lnatapov>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: asegurap, gklein, iheim, mavital, sbonazzo
Target Milestone: ---   
Target Release: 3.4.1   
Hardware: x86_64   
OS: Linux   
Whiteboard: integration
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-11 12:31:59 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:
Attachments:
Description Flags
hosted-engine-setup.log none

Description Artyom 2014-06-05 15:58:53 UTC
Created attachment 902585 [details]
hosted-engine-setup.log

Description of problem:
Hosted-engine setup not identify lowercase parameters in network-scripts(for example 'bootproto'), so when deployment process coming to 'Configuring the management bridge' stage, this kind or error can appear:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/network/bridge.py", line 227, in _misc
    boot_proto = caps['cfg']['BOOTPROTO']
KeyError: 'BOOTPROTO'

And deployment interrupt

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-setup-1.1.2-5.el6ev.noarch

How reproducible:
Always

Steps to Reproduce:
1. Change in network-script(ifcfg-ethX) vi /etc/sysconfig/network-scripts/ifcfg-eth0 from BOOTPROTO to bootproto
2. Run hosted-engine --deploy
3.

Actual results:
Traceback appear and deployment interrupt

Expected results:
No traceback, and deployment success to configure rhevm bridge

Additional info:

Comment 1 Antoni Segura Puimedon 2014-06-11 12:30:47 UTC
IIUC this is about having an ifcfg file with bootproto defined in lowercase. I don't think we need to support wrong ifcfg files. initscripts is case sensitive for variable names, so the boot protocol would not have been applied.

Comment 2 Sandro Bonazzola 2014-06-11 12:31:59 UTC
(In reply to Antoni Segura Puimedon from comment #1)
> IIUC this is about having an ifcfg file with bootproto defined in lowercase.
> I don't think we need to support wrong ifcfg files. initscripts is case
> sensitive for variable names, so the boot protocol would not have been
> applied.

Closing as per comment #1