<div dir="ltr"><div><div><div><div><div><div><div><br></div>Hey,<br></div>my team is working on adding AoE protocol support to ovirt.<br><br></div>am thus facing following difficulties:<br></div>1 : i wrote the required code using in bash scripting, which i wish to invoke after a click of button in the ovirt-portal. (which does not seem to be possible). can you help on that? which programming language should i use, and how that file should be invoked.<br>
<br></div>2. for ISOs to be available, i need to enable hosts configured in clusters and storage domains of ATA type. (currently NFS, iSCSI and FC are done). which files should i focus on changing for above functionality.<br>
<br></div>3. How do i change the custom layout of the engine? (like adding a few extra buttons.) please specify the files responsible.<br><br></div>4. the above questions stress that am facing difficulty in identifying files responsible for a particular module. is there a better way to do that instead of digging up the entire source code. ( a documentation if available.)<br>
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 17, 2014 at 5:52 PM, Alexander Wels <span dir="ltr"><<a href="mailto:awels@redhat.com" target="_blank">awels@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Aditya,<br>
<br>
That is because that file doesn't exist. We map that name to a servlet in<br>
web.xml. If you want to modify the GWT host page take a look at<br>
GwtDynamicHostPageServlet.java and its sub classes (for user portal and<br>
webadmin). As well as GwtHostPage.jsp. You will find there is almost nothing in<br>
that page as all the HTML is being generated at runtime using GWT.<br>
<br>
Since you are not really explaining what you are trying to do we can't help<br>
you better on the best strategy to achieve what you want.<br>
<span class="HOEnZb"><font color="#888888"><br>
Alexander<br>
</font></span><div class="im HOEnZb"><br>
On Saturday, March 15, 2014 06:00:21 PM Aditya Mamidwar wrote:<br>
> Hey thanks on the previous issue.<br>
> Also is there a way i can access WebAdmin.Html to add custom buttons and<br>
> make few tweaks for personal use? I just cant find that file after using<br>
> git.<br>
><br>
> Aditya Mamidwar<br>
><br>
</div><div class="im HOEnZb">> -----Original Message-----<br>
> From: "Einav Cohen" <<a href="mailto:ecohen@redhat.com">ecohen@redhat.com</a>><br>
> Sent: 14-03-2014 01:21<br>
</div><div class="HOEnZb"><div class="h5">> To: "aditya mamidwar" <<a href="mailto:aditya.mamidwar@gmail.com">aditya.mamidwar@gmail.com</a>>; "Vojtech Szocs"<br>
> <<a href="mailto:vszocs@redhat.com">vszocs@redhat.com</a>> Cc: "<a href="mailto:users@ovirt.org">users@ovirt.org</a>" <<a href="mailto:users@ovirt.org">users@ovirt.org</a>>;<br>
> "<a href="mailto:engine-devel@ovirt.org">engine-devel@ovirt.org</a>" <<a href="mailto:engine-devel@ovirt.org">engine-devel@ovirt.org</a>> Subject: Re: [Users]<br>
> adding scripts<br>
><br>
> if you are trying to hook into UI-specific events, it sounds<br>
> like you will need to write an oVirt UI Plugin [1] in order to<br>
> do that. However, I believe that the oVirt UI Plugins<br>
> infrastructure doesn't support hooking to events such as "tab<br>
> x was selected" and/or "button b was clicked".<br>
> It does allow you to add new (custom) tabs/sub-tabs/buttons of<br>
> your own, and there is a chance that it allows you to hook<br>
> into events such as 'row x was selected in the grid'.<br>
><br>
> @Vojtech will know better. Vojtech?<br>
><br>
> if you are trying to hook into engine events (e.g. you want to<br>
> run a script every time a VM is started in oVirt, no matter if<br>
> the user started it by clicking the 'run' button in the oVirt-<br>
> engine webadmin, or invoked a REST API request, or an SDK<br>
> command), then it will require some sort of an "engine-plugin"<br>
> infrastructure that we don't have at the moment AFAIK.<br>
> there is a chance that for some of the events you will be able<br>
> to utilize the VDSM hooks (at the Host level) [2].<br>
><br>
> ----<br>
> Thanks,<br>
> Einav<br>
><br>
> [1] <a href="http://www.ovirt.org/Features/UIPlugins" target="_blank">http://www.ovirt.org/Features/UIPlugins</a><br>
><br>
> [2] <a href="http://www.ovirt.org/VDSM-Hooks" target="_blank">http://www.ovirt.org/VDSM-Hooks</a><br>
><br>
><br>
> ----- Original Message -----<br>
><br>
> > From: "aditya mamidwar" <<a href="mailto:aditya.mamidwar@gmail.com">aditya.mamidwar@gmail.com</a>><br>
> > To: <a href="mailto:users@ovirt.org">users@ovirt.org</a>, <a href="mailto:engine-devel@ovirt.org">engine-devel@ovirt.org</a><br>
> > Sent: Thursday, March 13, 2014 11:23:35 AM<br>
> > Subject: [Users] adding scripts<br>
> ><br>
> ><br>
> > I want to commit changes to the engine by adding some bash scripts.<br>
> > the scripts should be invoked once a button or tab is selected in the<br>
> > webadmin portal by the user.<br>
> ><br>
> > can someone guide on achieving this.<br>
> ><br>
> > --<br>
> > -Aditya Mamidwar<br>
> ><br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> > <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-Aditya Mamidwar
</div>