Bug 1454880

Summary: Maintenance mode flag not being set on SCVMM hosts.
Product: Red Hat CloudForms Management Engine Reporter: Jeff Teehan <jteehan>
Component: UI - OPSAssignee: Dan Clarizio <dclarizi>
Status: CLOSED CURRENTRELEASE QA Contact: Leo Khomenko <lkhomenk>
Severity: medium Docs Contact:
Priority: high    
Version: 5.8.0CC: agrare, dajohnso, dberger, dclarizi, hkataria, jfrey, jhardy, lkhomenk, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: provider:scvmm:inventory
Fixed In Version: 5.9.0.12 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1461535 (view as bug list) Environment:
Last Closed: 2018-03-06 15:19:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1452823, 1461535    

Description Jeff Teehan 2017-05-23 16:49:43 UTC
Description of problem:
 get_inventory.ps is checking HyperVStateString instead of OverallState

Name                                                  OverallState HyperVStateString
----                                                  ------------ -----------------
hyperv16d.cfme-qe-vmm-ad.rhq.lab.eng.bos.redhat.com NeedsAttention Unknown
hyperv16a.cfme-qe-vmm-ad.rhq.lab.eng.bos.redhat.com             OK Running
hyperv16c.cfme-qe-vmm-ad.rhq.lab.eng.bos.redhat.com             OK Running

Need to set mainenance flag to true if OK else false.

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

How reproducible:
All versions, all the time.

Steps to Reproduce:
1.  Attempt to provision onto a host in maintenance mode.
2.  https://bugzilla.redhat.com/show_bug.cgi?id=1452823
3.

Actual results:
Fails with error

Expected results:
Code implemented below should check that.

Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=1452823

Comment 2 Daniel Berger 2017-05-23 16:51:53 UTC
https://github.com/ManageIQ/manageiq/pull/15202

Comment 15 Adam Grare 2017-12-05 13:16:00 UTC
Leo this should have been fixed by https://bugzilla.redhat.com/show_bug.cgi?id=1514986, moving to POST