Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1411515 - [RFE] Ability to control which custom buttons / button groups get displayed on Instances/VMs
[RFE] Ability to control which custom buttons / button groups get displayed o...
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: User Experience (Show other bugs)
5.7.0
Unspecified Unspecified
high Severity medium
: GA
: 5.9.0
Assigned To: John Hardy
Yadnyawalk Tale
: FutureFeature, RFE
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-01-09 16:23 EST by Jerome Marc
Modified: 2018-03-01 08:08 EST (History)
6 users (show)

See Also:
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 08:08:54 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0380 normal SHIPPED_LIVE Moderate: Red Hat CloudForms security, bug fix, and enhancement update 2018-03-01 13:37:12 EST

  None (edit)
Description Jerome Marc 2017-01-09 16:23:01 EST
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 12:22:10 EST
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 11:56:43 EDT
This is not limited to VMs/instances. All custom buttons should have a scope.
Comment 6 Allen W 2017-05-10 14:07:59 EDT
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 10:50:49 EDT
Already verified Custom Button Expression Editor in https://bugzilla.redhat.com/show_bug.cgi?id=1389660
Comment 11 errata-xmlrpc 2018-03-01 08:08:54 EST
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

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