Bug 1370283

Summary: [RFE] Best host resource wise should be used to deploy VM's
Product: Red Hat Quickstart Cloud Installer Reporter: James Olin Oden <joden>
Component: Installation - CloudFormsAssignee: John Matthews <jmatthew>
Status: NEW --- QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact: Dan Macpherson <dmacpher>
Priority: unspecified    
Version: 1.0CC: bthurber, tsanders
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description James Olin Oden 2016-08-25 19:47:53 UTC
Description of problem:
I was doing a deployment of:

   RHV(self hosted, 4 hosts) + OSE(3 nodes) + CFME

It got through the RHV and OSE deployment but failed in the CFME deployment with the following error:

CFME Launch failed with error ["Failed to power up a compute thistimeitwillwork-RHEV (RHEV) instance thistimeitwillwork-cfme.b.b: Cannot run VM. There is no host that satisfies current scheduling constraints. See below for details:, The host hosted_engine_1 did not satisfy internal filter Memory because its available memory is too low (3083.000000 MB) to run the VM., The host hosted_engine_1 did not satisfy internal filter Memory because its available memory is too low (3083.000000 MB) to run the VM., The host hosted_engine_1 did not satisfy internal filter Memory because its available memory is too low (3083.000000 MB) to run the VM., The host hosted_engine_1 did not satisfy internal filter Memory because its available memory is too low (3083.000000 MB) to run the VM."]

I actually could login into the CFME and found that the guest for the CFME 
did not exist according to itself and RHV (however it was running), and their
was a host with 3083 MB of memory left, and the other three hosts had 7244 MB left.   All the hosts had 16GB of memory each.

Version-Release number of selected component (if applicable):
QCI-1.0-RHEL-7-20160824.t.1

How reproducible:
I think always

Steps to Reproduce:
1.  Do a RHV + OSE + CFME deployment where there is not quite enough memory 
    left on the first RHV host.

Actual results:
It fails with the error above.

Expected results:
It to pick one of the RHV VM's that had enough storage.