[ovirt-users] webhook

Yair Zaslavsky yzaslavs at redhat.com
Thu Oct 30 21:43:12 UTC 2014



----- Original Message -----
> From: "Barak Azulay" <bazulay at redhat.com>
> To: "Omer Frenkel" <ofrenkel at redhat.com>, "vanoppen koen" <vanoppen.koen at gmail.com>, "Mooli Tayer"
> <mtayer at redhat.com>
> Cc: "Oved Ourfali" <ovedo at redhat.com>, users at ovirt.org
> Sent: Thursday, October 30, 2014 11:10:55 PM
> Subject: Re: [ovirt-users] webhook
> 
> 
> 
> ----- Original Message -----
> > From: "Barak Azulay" <bazulay at redhat.com>
> > To: "Omer Frenkel" <ofrenkel at redhat.com>, "vanoppen koen"
> > <vanoppen.koen at gmail.com>
> > Cc: "Oved Ourfali" <ovedo at redhat.com>, users at ovirt.org
> > Sent: Thursday, October 30, 2014 10:55:56 PM
> > Subject: Re: [ovirt-users] webhook
> > 
> > 
> > 
> > ----- Original Message -----
> > > From: "Omer Frenkel" <ofrenkel at redhat.com>
> > > To: "Oved Ourfali" <ovedo at redhat.com>, "Yair Zaslavsky"
> > > <yzaslavs at redhat.com>
> > > Cc: users at ovirt.org
> > > Sent: Thursday, October 30, 2014 3:54:37 PM
> > > Subject: Re: [ovirt-users] webhook
> > > 
> > > can't the event-notifications be used?
> > > notify some email on delete operation (not sure there is a notification
> > > for
> > > this today..)
> > > and hook on the email to run the script?
> > 
> > I agree that notification sounds like the best option,
> > Although I would use the SNMP traps for that.
> > If you already have a SNMP monitoring system you can catch the trap there
> > and
> > do your foreman magic.
> 
> 
> I assume the relevant notification is USER_REMOVE_VM_FINISHED(113)
> Mooli / Omer please approve .

+1
>From what I saw this is the relevant event.
Which has the textual represenation of "VM ${VmName} was successfully removed"

> 
> > 
> > > 
> > > ----- Original Message -----
> > > > From: "Oved Ourfali" <ovedo at redhat.com>
> > > > To: "Yair Zaslavsky" <yzaslavs at redhat.com>
> > > > Cc: users at ovirt.org
> > > > Sent: Thursday, October 30, 2014 3:10:12 PM
> > > > Subject: Re: [ovirt-users] webhook
> > > > 
> > > > Hi
> > > > 
> > > > CC-ing also Vojtech, the "father" of the UI plugins.
> > > > 
> > > > Anyway, the only way to accomplish that via UI plugins at the moment is
> > > > via
> > > > adding a new "action menu item", that in the background deleted the VM,
> > > > and
> > > > reports to Foreman.
> > > > I would be nice to have a "hook" for different UI action items, but it
> > > > isn't
> > > > available at the moment.
> > > > There are plenty code samples for UI plugins, most of them available
> > > > at:
> > > > http://www.ovirt.org/Features/UIPlugins
> > > > 
> > > > I must say that I'm not sure webhooks are the right approach for that,
> > > > as
> > > > I
> > > > guess it is relevant only in environments in which one doesn't use the
> > > > API/CLI/SDK....
> > > > but.. it will be a cool feature!
> > > > 
> > > > Regards,
> > > > Oved
> > > > 
> > > > ----- Original Message -----
> > > > > From: "Yair Zaslavsky" <yzaslavs at redhat.com>
> > > > > To: "Koen Vanoppen" <vanoppen.koen at gmail.com>
> > > > > Cc: "Oved Ourfali" <ovedo at redhat.com>, users at ovirt.org
> > > > > Sent: Thursday, October 30, 2014 1:44:38 PM
> > > > > Subject: Re: [ovirt-users] webhook
> > > > > 
> > > > > Oved - can we implement something like this using ui-plugins?
> > > > > 
> > > > > 
> > > > > ----- Original Message -----
> > > > > > From: "Koen Vanoppen" <vanoppen.koen at gmail.com>
> > > > > > To: users at ovirt.org
> > > > > > Sent: Monday, October 27, 2014 4:06:40 PM
> > > > > > Subject: [ovirt-users] webhook
> > > > > > 
> > > > > > Hi all,
> > > > > > 
> > > > > > Just a quick question. Is it possible to set a webhook on the
> > > > > > removal
> > > > > > and
> > > > > > creation of a new vm? So we can send to foreman a delete action
> > > > > > when
> > > > > > the
> > > > > > VM
> > > > > > is deleted...
> > > > > > 
> > > > > > Kind regards,
> > > > > > 
> > > > > > Koen
> > > > > > 
> > > > > > _______________________________________________
> > > > > > Users mailing list
> > > > > > Users at ovirt.org
> > > > > > http://lists.ovirt.org/mailman/listinfo/users
> > > > > > 
> > > > > _______________________________________________
> > > > > Users mailing list
> > > > > Users at ovirt.org
> > > > > http://lists.ovirt.org/mailman/listinfo/users
> > > > > 
> > > > _______________________________________________
> > > > Users mailing list
> > > > Users at ovirt.org
> > > > http://lists.ovirt.org/mailman/listinfo/users
> > > > 
> > > _______________________________________________
> > > Users mailing list
> > > Users at ovirt.org
> > > http://lists.ovirt.org/mailman/listinfo/users
> > > 
> > > 
> > > 
> > _______________________________________________
> > Users mailing list
> > Users at ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> > 
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 



More information about the Users mailing list