Bug 1524170

Summary: Wrong CPU type is passed during the HE wizard installation deploy and hosted engine failing
Product: [oVirt] cockpit-ovirt Reporter: Michael Burman <mburman>
Component: Hosted EngineAssignee: Phillip Bailey <phbailey>
Status: CLOSED DUPLICATE QA Contact: dguo
Severity: urgent Docs Contact:
Priority: unspecified    
Version: ---CC: bugs, cshao, didi
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-11 02:10:01 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
hosted engine setup none

Description Michael Burman 2017-12-10 13:14:18 UTC
Description of problem:
Wrong CPU type is passed during the HE wizard installation deploy and hosted engine failing. 

Expecting to get model_Conroe , but sending Conroe

hosted-engine failed to deploy because wrong CPU type are passed - 

2017-12-10 14:45:49,426+0200 DEBUG otopi.plugins.gr_he_setup.vdsmd.cpu cpu._customization:178 Compatible CPU models are: [u'model_Conroe', u'model_coreduo', u'model_core2duo', u'model_Penryn', u'model_n270']
2017-12-10 14:45:49,427+0200 DEBUG otopi.plugins.otopi.dialog.machine dialog.__logString:204 DIALOG:SEND       ### The following CPU types are supported by this host:
2017-12-10 14:45:49,427+0200 DEBUG otopi.plugins.otopi.dialog.machine dialog.__logString:204 DIALOG:SEND       ###       - model_Penryn: Intel Penryn Family
2017-12-10 14:45:49,428+0200 DEBUG otopi.plugins.otopi.dialog.machine dialog.__logString:204 DIALOG:SEND       ###       - model_Conroe: Intel Conroe Family
2017-12-10 14:45:49,429+0200 DEBUG otopi.context context._executeMethod:143 method exception
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/context.py", line 133, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/gr-he-setup/vdsmd/cpu.py", line 233, in _customization
    ohostedcons.VDSMEnv.VDSM_CPU
RuntimeError: Invalid CPU type specified: Conroe

- The type that passed is Conroe, but expecting to get model_Conroe

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-setup-2.2.0-0.4.master.git0b67c21.el7ev.noarch
cockpit-151-1.el7.x86_64

How reproducible:
100

Steps to Reproduce:
1. Try to deploy HE via cockpit wizard installation

Actual results:
Failed with CPU type invalid type

Expected results:
Must work and correct value should pass

Comment 1 Michael Burman 2017-12-10 13:15:43 UTC
Created attachment 1365588 [details]
hosted engine setup

Comment 2 Phillip Bailey 2017-12-11 02:05:19 UTC
A patch [1] was already merged that fixed this issue. I'll have to check to make sure that it made it into the version you're testing. 

[1] https://gerrit.ovirt.org/#/c/84521/

Comment 3 Phillip Bailey 2017-12-11 02:10:01 UTC

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