Bug 1403542

Summary: [RFE] Host Power Operations not supported on RHEV using ipmi API Interfaces for RHV.
Product: Red Hat CloudForms Management Engine Reporter: Ilanit Stein <istein>
Component: ProvidersAssignee: Moran Goldboim <mgoldboi>
Status: CLOSED WONTFIX QA Contact: Ilanit Stein <istein>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7.0CC: agrare, dajohnso, gblomqui, istein, jfrey, jhardy, jocarter, mhild, obarenbo
Target Milestone: GAKeywords: FutureFeature, RFE
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: rhev:host:power
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-08 11:44:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: RHEVM Target Upstream Version:
Attachments:
Description Flags
RHV host power options.png none

Description Ilanit Stein 2016-12-11 07:46:10 UTC
Description of problem:
On CFME-5.7.0.14, All host power operations are available, on UI (see attached "RHV host power options.png"),
but only 'reset', 'power off' options are available.
All the other 4 options, give a message like this: 
"<power option>": not available for <hostname>.

Version-Release number of selected component (if applicable):
CFME-5.7.0.14
RHV-4.0.5

Expected results:
all available Host power options should work.

Additional info:
I added in CFME IPMI details (IPMI IP address, user, pasword) for a host in RHV-4.0.
This host do not have the Power management details defined in the RHV-4.0 env.

It is possible to run Host power off, and then Host reset.
This will end up with having the host in up state.

Also if the Power management is enabled, and defined, on RHV side,
Host should be fenced automatically. 
But in my testing it wasn't enabled on RHV side.

Comment 2 Ilanit Stein 2016-12-11 07:46:43 UTC
Created attachment 1230521 [details]
RHV host power options.png

Comment 3 Marcel Hild 2016-12-21 11:11:25 UTC
I dont think this is RHV specific, as we just execute ipmi commands through ipmitool and therefore it's provider agnostic.

Things to check:
* do we queue those ipmi commands to a worker, so that they are executed in the correct zone / region ?
* is there any way to check for ipmi support on the host?
* is there any way to check for which ipmi commands are supported by the host?

Greg - can you triage this to somebody with knowledge of that matter?

Comment 4 Greg Blomquist 2017-01-03 15:26:26 UTC
I know that ipmi has worked in the field, and that we've seen failures with ipmi in the field as well.

It seems to come down to the specific ipmi support on the host.

Reassigning to Julian.

Ilanit, can you check whether the host supports ipmi commands?  If it does, then please share your environment details with Julian so he can take a look.

Comment 5 Ilanit Stein 2017-01-04 12:40:08 UTC
host supports ipmi commands

this is from bios of that host:

iDRAC Settings > System Summary                                               
BIOS Version                                          2.4.2                  ^
iDRAC Firmware Version                                1.66.65 (Build 7)      *
iDRAC License                                         Enterprise             *
IPMI Version                                          2.00                   *