Bug 1805979

Summary: Use eligible storage methods in placement methods.
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: AutomateAssignee: Tina Fitzgerald <tfitzger>
Status: CLOSED ERRATA QA Contact: Ganesh Hubale <ghubale>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.11.2CC: dmetzger, gmccullo, jhenner, mkanoor, mshriver, obarenbo, pkomanek, tfitzger
Target Milestone: GAKeywords: ZStream
Target Release: 5.11.4Flags: pm-rhel: cfme-5.11.z+
simaishi: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.4.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1791390 Environment:
Last Closed: 2020-03-17 13:11:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1791390    
Bug Blocks:    

Comment 2 CFME Bot 2020-02-21 21:30:51 UTC
New commit detected on ManageIQ/manageiq-content/ivanchuk:

https://github.com/ManageIQ/manageiq-content/commit/267b4786c5231afd17a445ba4aafa0f0670de38f
commit 267b4786c5231afd17a445ba4aafa0f0670de38f
Author:     Greg McCullough <gmccullo>
AuthorDate: Thu Oct 10 14:08:17 2019 +0000
Commit:     Greg McCullough <gmccullo>
CommitDate: Thu Oct 10 14:08:17 2019 +0000

    Merge pull request #578 from pkomanek/eligible_storages_for_vmware_best_fit_least_utilized

    Eligible storages for placement methods

    (cherry picked from commit 957bbd973e3d0856c426004b8adb99eeb3d82659)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1805979

 content/automate/ManageIQ/Infrastructure/VM/Provisioning/Placement.class/__methods__/microsoft_best_fit_least_utilized.rb | 12 +-
 content/automate/ManageIQ/Infrastructure/VM/Provisioning/Placement.class/__methods__/vmware_best_fit_least_utilized.rb | 12 +-
 spec/automation/unit/method_validation/scvmm_microsoft_best_fit_least_utilized_spec.rb | 19 +-
 spec/content/automate/ManageIQ/Infrastructure/VM/Provisioning/Placement.class/__methods__/vmware_best_fit_least_utilized_spec.rb | 67 +-
 4 files changed, 46 insertions(+), 64 deletions(-)

Comment 3 Ganesh Hubale 2020-02-27 13:20:11 UTC
@Tina

Please help me to verify this BZ by providing testSteps and expectedResults.

Comment 5 Tina Fitzgerald 2020-02-27 17:48:21 UTC
Hi Jaroslav,

Patrik is working with Ganesh on validation steps for this issue.

Thanks,
Tina

Comment 8 Ganesh Hubale 2020-03-04 12:44:26 UTC
Discussed offline :)

With updates from Patrik, I can able to reproduce the issue and got this error in automation logs:

[----] E, [2020-03-04T06:56:11.019909 #7259:2b1b21c6f090] ERROR -- : Q-task_id([r4_miq_provision_4]) MiqAeServiceModelBase.ar_method raised: <RuntimeError>: <Resource <Storage> <8:env-esxi67-ims-h02_localdisk> is not an eligible resource for this provisioning instance.>


Hence verifying this BZ.

Thank you so much for help @Patrik

Comment 11 errata-xmlrpc 2020-03-17 13:11:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:0867