Bug 1698183 - [RFE] RedHat Domain vmware_best_placement_with_scope Automate method error "not an eligible resource for this provisioning instance".
Summary: [RFE] RedHat Domain vmware_best_placement_with_scope Automate method error "n...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning
Version: 5.10.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.12.0
Assignee: Patrik Kománek
QA Contact: Jaroslav Henner
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks: 1784535
TreeView+ depends on / blocked
 
Reported: 2019-04-09 18:29 UTC by Tina Fitzgerald
Modified: 2023-09-07 19:54 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1784535 (view as bug list)
Environment:
Last Closed: 2020-03-20 15:38:00 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.