Bug 1411515

Summary: [RFE] Ability to control which custom buttons / button groups get displayed on Instances/VMs
Product: Red Hat CloudForms Management Engine Reporter: Jerome Marc <jmarc>
Component: User ExperienceAssignee: John Hardy <jhardy>
Status: CLOSED ERRATA QA Contact: Yadnyawalk Tale <ytale>
Severity: medium Docs Contact:
Priority: high    
Version: 5.7.0CC: awight, brant.evans, jhardy, kkulkarn, lpichler, simaishi
Target Milestone: GAKeywords: FutureFeature, RFE
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-01 13:08:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jerome Marc 2017-01-09 21:23:01 UTC
Description of problem:
Custom buttons on instances & VMs are used more and more, especially since the integration of Ansible Tower into CloudForms.  They allow operators to define actions that users can perform on the hosts.  Today, all actions defined as custom buttons or groups are presented to all instances/VMs.  We need to be able to limit on which type of instances/VMs these buttons/groups are displayed.

For example, I have Ansible playbooks for Linux and Windows, I want to make Linux playbooks available to Linux VMs as a button, and Windows playbooks available to Windows VMs, but Linux VMs should not see Windows playbooks, and vice versa. Today it is impossible to implement this basic use case.


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

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Jerome Marc 2017-02-17 17:22:10 UTC
A solution could be to add the MIQ expression editor on the button definition screen (same than reporting and control), so that ops can add conditions around displaying buttons & button groups in the UI.

Comment 4 Jerome Marc 2017-05-10 15:56:43 UTC
This is not limited to VMs/instances. All custom buttons should have a scope.

Comment 6 Allen W 2017-05-10 18:07:59 UTC
So custom actions returned should only ever represent those things which can be done on the item of concern.  For documentation on custom actions for services see http://manageiq.org/docs/reference/latest/api/reference/service_custom_actions

Moving forward, I would imagine this would true for custom actions on vms, only those actions that are valid for the item of concern would be returned by the api given an appropriate request.

Comment 8 Kedar Kulkarni 2017-10-12 14:50:49 UTC
Already verified Custom Button Expression Editor in https://bugzilla.redhat.com/show_bug.cgi?id=1389660

Comment 11 errata-xmlrpc 2018-03-01 13:08:54 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/RHSA-2018:0380