Bug 1347438

Summary: vds_info.py: KeyError: 'cfg'
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Douglas Schilling Landgraf <dougsland>
Component: GeneralAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED DUPLICATE QA Contact: meital avital <mavital>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 2.0.0CC: bugs, dougsland, fdeutsch, stirabos
Target Milestone: ---Flags: rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-17 16:41:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
appliace-issue-cfg.txt
none
ifcfg-em1 none

Description Douglas Schilling Landgraf 2016-06-16 21:07:50 UTC
Description of problem:

I have beem trying to setup hosted engine ovirt-node-ng-installer-ovirt-4.0-snapshot-2016061604.iso [1] and appliance oVirt-Engine-Appliance-CentOS-x86_64-7-20160615.ova and no success in a dell machine with one single nic interface (em1).

Error:
=============
2016-06-16 18:05:22 DEBUG otopi.context context.dumpEnvironment:774 ENVIRONMENT DUMP - END
2016-06-16 18:05:22 DEBUG otopi.context context._executeMethod:128 Stage validation METHOD otopi.plugins.gr_he_common.engine.ca.Plugin._validation
2016-06-16 18:05:22 DEBUG otopi.context context._executeMethod:134 condition False
2016-06-16 18:05:22 DEBUG otopi.context context._executeMethod:128 Stage validation METHOD otopi.plugins.gr_he_common.network.bridge.Plugin._get_hostname_additional_hosts
2016-06-16 18:05:22 DEBUG otopi.context context._executeMethod:134 condition False
2016-06-16 18:05:22 DEBUG otopi.context context._executeMethod:128 Stage validation METHOD otopi.plugins.gr_he_common.network.bridge.Plugin._get_hostname_from_bridge_if
2016-06-16 18:05:22 DEBUG otopi.context context._executeMethod:142 method exception
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/context.py", line 132, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/gr-he-common/network/bridge.py", line 271, in _get_hostname_from_bridge_if
    ohostedcons.NetworkEnv.BRIDGE_IF
  File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_setup/vds_info.py", line 92, in network
    if 'BOOTPROTO' in port_info['cfg']:
KeyError: 'cfg'

Version-Release number of selected component (if applicable):


How reproducible:

Steps to Reproduce:
1. Install the oVirt-Engine-Appliance-CentOS-x86_64-7-20160615.ova
2. DHCP will be configured to machine, use cockpit interface IP:9090 to setup the ip as static
3. Try top deploy hosted-engine via Cockpit or manually.

Actual results:
Failing

Expected results:
Work out of box.

Additional info:

[1] http://jenkins.ovirt.org/job/ovirt-node-ng_ovirt-4.0-snapshot_build-artifacts-fc22-x86_64/lastSuccessfulBuild/artifact/exported-artifacts/ovirt-node-ng-installer-ovirt-4.0-snapshot-2016061604.iso

[2] http://jenkins.ovirt.org/job/ovirt-appliance_ovirt-4.0-snapshot_build-artifacts-el7-x86_64/lastSuccessfulBuild/artifact/exported-artifacts/oVirt-Engine-Appliance-CentOS-x86_64-7-20160615.ova

Comment 1 Douglas Schilling Landgraf 2016-06-16 21:12:20 UTC
ovirt-hosted-engine-setup-2.0.0.2-0.0.master.20160610150248.git1b82974.el7.centos.noarch

Comment 2 Douglas Schilling Landgraf 2016-06-16 21:28:11 UTC
Created attachment 1168837 [details]
appliace-issue-cfg.txt

Comment 3 Douglas Schilling Landgraf 2016-06-16 21:28:45 UTC
Created attachment 1168839 [details]
ifcfg-em1

Comment 4 Douglas Schilling Landgraf 2016-06-16 22:22:25 UTC
Some additional debug:

Failed to execute stage 'Setup validation': {u'ipv6autoconf': True, u'addr': u'10.18.57.175', u'ipv6gateway': u'fe80:52:0:1238::1fd', u'ipv6addrs': [u'2620:52:0:1238:92b1:1cff:fe90:c2ce/64'], u'mtu': u'1500', u'dhcpv4': False, u'netmask': u'255.255.255.0', u'dhcpv6': True, u'ipv4addrs': [u'10.18.57.175/24'], u'hwaddr': u'90:b1:1c:90:c2:ce', u'speed': 1000, u'gateway': u'10.18.57.1'}

Comment 5 Simone Tiraboschi 2016-06-17 07:22:19 UTC
ifcfg data has been removed in VDSM on master branch by patch https://gerrit.ovirt.org/#/c/58226/ but AFAIK it's still available on ovirt-4.0 branch.

On hosted-engine-setup side this in tracked in https://bugzilla.redhat.com/1313881

I suspect that the issue reported here is on ovirt-node-ng or on repo composition: Douglas can you please check which VDSM version are you including?
4.18.2 is from ovirt-4.0 while 4.18.999 is from master.

Comment 6 Fabian Deutsch 2016-06-17 09:38:54 UTC
I verified that the 4.0-snapshot repo was used, so it really looks like the 4.0-snapshot repo was composed incorrectly.

After the fixes, a build from today or tomorrow should fix it.

Comment 7 Douglas Schilling Landgraf 2016-06-17 16:41:13 UTC

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