Adding Custom events


#1

Hi there pals,

There is any (documented) way to add external events on MIQ/Cloudforms?

EG: Detect Tenant Creation on OSP

Best


#2

@jparrill

If you configured notifications for keystone then you can catch this events from miq side like other events such for nova ‘compute.instance.create.end’


#3

Yeah but this one that I said does not exists in the data model of MIQ, How could I add more than already exists?


#4

You mean that keystone-related message does not exist in /System/Event/EmsEvent/OpenStack ?


#5

Correct! :slight_smile:


#6

@jparrill
I have ‘identity.project.created’ on CFME 5.8.1. Maybe this is what you are looking for? In any case, you can create any message that you need by simply adding an instance with the appropriate name.


#7

Wooo, ok, on automation context seem that I was looking for, but how this looks like on Control > Events menu?


#8

Hm, I does not use this peace of MIQ, but may be your task can be solved by automation ?


#9

There’s a brief description on adding non-standard events in the section Extending Automate Event Handling here: https://pemcg.gitbooks.io/mastering-automation-in-cloudforms-4-2-and-manage/content/event_processing/chapter.html

Hope this helps,

pemcg


#10

Thanks Peter and Igor, I think that this will be enough ;).

Have a nice day.

Best