Bug 1698183

Summary: [RFE] RedHat Domain vmware_best_placement_with_scope Automate method error "not an eligible resource for this provisioning instance".
Product: Red Hat CloudForms Management Engine Reporter: Tina Fitzgerald <tfitzger>
Component: ProvisioningAssignee: Patrik Kománek <pkomanek>
Status: CLOSED NOTABUG QA Contact: Jaroslav Henner <jhenner>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.10.0CC: dmetzger, gekis, jhardy, jhenner, jocarter, mshriver, obarenbo, pkomanek, sigbjorn, smallamp
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1784535 (view as bug list) Environment:
Last Closed: 2020-03-20 15:38:00 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: 1784535    

Description Tina Fitzgerald 2019-04-09 18:29:09 UTC
Description of problem:
The RedHat domain /Infrastructure/VM/Provisioning/Placement/redhat_best_placement_with_scope
method does not use the RBACed eligible methods which can cause an error when setting the storage(prov.set_storage) if the storage is not available using the RBAC filter.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
Setting storage results in log message "not an eligible resource for this provisioning instance"

Expected results:
Selected storage should be RBAC enabled.


Additional info:

Comment 2 Tina Fitzgerald 2019-04-09 18:30:38 UTC
This ticket opened as a result of discussions here: https://bugzilla.redhat.com/show_bug.cgi?id=1684472

Comment 3 Tina Fitzgerald 2019-04-09 18:38:22 UTC
Automate methods are not RBAC enabled by default. 

The Redhat domain vmware_best_placement_with_scope placement method iterates through the hosts and storages and could potentially select a host and/or storage that is not available due to RBAC filtering.
The method does a prov.set_storage on the selected storage, and an error is issued if the storage is not eligible due to the RBAC filtering.

The workaround is to enable/disable RBAC in the placement method as shown in this example:
https://github.com/ManageIQ/manageiq-content/issues/297#issuecomment-389914285

Comment 4 Dave Johnson 2019-04-09 20:01:16 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 6 dmetzger 2019-09-25 13:11:44 UTC
Based on comment #3 should this ticket be closed "working as designed" and/or converted into an RFE?

Comment 7 Tina Fitzgerald 2019-10-01 17:36:13 UTC
Hi Dennis,

Converting the ticket to an RFE.

Thanks,
Tina

Comment 11 Tina Fitzgerald 2020-01-31 15:38:27 UTC
Thank you Jaroslav for working with Patrik to validate this issue.