Bug 1434025

Summary: [VMWARE]Auto_placement provision fails due to selecting Host in Maintenance state
Product: Red Hat CloudForms Management Engine Reporter: Leo Khomenko <lkhomenk>
Component: ProvisioningAssignee: William Fitzgerald <wfitzger>
Status: CLOSED CURRENTRELEASE QA Contact: Alex Newman <anewman>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7.0CC: gblomqui, gmccullo, greartes, jfrey, jhardy, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: vmware:provision
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1438865 1438866 1452820 (view as bug list) Environment:
Last Closed: 2018-03-06 15:17:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: VMware Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1438865, 1438866, 1452820    

Description Leo Khomenko 2017-03-20 15:03:06 UTC
Description of problem:Environment setup - best fitting Host in Maintenance mode (lowest amount of VM is 0) and other Hosts should have at least 1 VM


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


How reproducible:100%


Steps to Reproduce:
1.Prepare env
2.Provision VM with auto_placement

Actual results: Provision fails due to Provider failure - 
"Message [Error: Cannot complete file creation operation.]"


Expected results: "Maintenance" Host should not be selected


Additional info: Manual provision to such Host also fails with the same error.

Comment 4 Greg McCullough 2017-03-23 14:45:08 UTC
Host already contains a "maintenance" column, the best-fit logic for all infra providers should skip hosts that are in maintenance mode.

Comment 5 William Fitzgerald 2017-03-30 13:54:13 UTC
Recreated problem and working on a fix

Comment 6 William Fitzgerald 2017-04-04 12:33:08 UTC
https://github.com/ManageIQ/manageiq-content/pull/81