Bug 1348605 - add instance to trigger miqevents from a button
Summary: add instance to trigger miqevents from a button
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.5.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: GA
: 5.7.0
Assignee: Tina Fitzgerald
QA Contact: Milan Falešník
URL:
Whiteboard:
Depends On:
Blocks: 1353255
TreeView+ depends on / blocked
 
Reported: 2016-06-21 14:44 UTC by Josh Carter
Modified: 2019-11-14 08:27 UTC (History)
7 users (show)

Fixed In Version: 5.7.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1353255 (view as bug list)
Environment:
Last Closed: 2017-01-11 20:24:58 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Josh Carter 2016-06-21 14:44:50 UTC
Description of problem:

Steps required to trigger a vm retirement warn via a button. 

Go to automate and copy the Class /ManageIQ/System/Process to your custom domain
Create an instance named MiqEvent with a rel5 of : /System/Event/MiqEvent/Policy/${/#event_type} 

On the custom button provide the following details. 


System/Process/   MiqEvent

Message    create
Request    vm_retire_warn

Attribute

event_type          vm_retire_warn 




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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 CFME Bot 2016-06-22 16:21:59 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/fb5116ab3a3ce1d17c095343be1ed8897ff5633c

commit fb5116ab3a3ce1d17c095343be1ed8897ff5633c
Author:     Tina Fitzgerald <tfitzger>
AuthorDate: Tue Jun 21 16:37:54 2016 -0400
Commit:     Tina Fitzgerald <tfitzger>
CommitDate: Wed Jun 22 11:22:51 2016 -0400

    Automate - Add /System/Process/MiqEvent instance.
    
    The new MiqEvent instance enables a user to create custom buttons for
    our MiqEvents.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1348605

 .../ae_datastore/ManageIQ/System/Process.class/miqevent.yaml | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 db/fixtures/ae_datastore/ManageIQ/System/Process.class/miqevent.yaml

Comment 5 Milan Falešník 2016-10-03 08:57:22 UTC
Verified in 5.7.0.3, the MiqEntry is present and triggering an event works.


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