------=_Part_1855115_740317422.1395405184864
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
----- Original Message -----
From: "aditya mamidwar" <aditya.mamidwar(a)gmail.com>
To: awels(a)redhat.com, engine-devel(a)ovirt.org, users(a)ovirt.org
Sent: Friday, March 21, 2014 6:14:01 AM
Subject: Re: [Users] [Engine-devel] adding scripts
Hey,
my team is working on adding AoE protocol support to ovirt.
am thus facing following difficulties:
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.
This needs to be done in Java. You'll need to read up on oVirt's UI Plugin
infrastructure, which Einav and others mentioned below. No, you cannot write a bash script
and have a button click in oVirt invoke that.
<blockquote>
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.
</blockquote>
I've never heard of ATA network storage. Are you referring to ATA hardware technology,
i.e. SATA?
At any rate, adding a custom storage domain technology will difficult. Hopefully someone
else on list can direct you.
<blockquote>
3. How do i change the custom layout of the engine? (like adding a few extra buttons.)
please specify the files responsible.
</blockquote>
Again, you'll need to read up on oVirt's UI Plugin infrastructure.
http://www.ovirt.org/Features/UIPlugins
<blockquote>
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.)
</blockquote>
Other than what we've already mentioned (JavaDoc, architecture docs on the wiki), no.
Greg
<blockquote>
On Mon, Mar 17, 2014 at 5:52 PM, Alexander Wels < awels(a)redhat.com > wrote:
<blockquote>
Aditya,
That is because that file doesn't exist. We map that name to a servlet in
web.xml. If you want to modify the GWT host page take a look at
GwtDynamicHostPageServlet.java and its sub classes (for user portal and
webadmin). As well as GwtHostPage.jsp. You will find there is almost nothing in
that page as all the HTML is being generated at runtime using GWT.
Since you are not really explaining what you are trying to do we can't help
you better on the best strategy to achieve what you want.
Alexander
On Saturday, March 15, 2014 06:00:21 PM Aditya Mamidwar wrote:
Hey thanks on the previous issue.
Also is there a way i can access WebAdmin.Html to add custom buttons and
make few tweaks for personal use? I just cant find that file after using
git.
Aditya Mamidwar
-----Original Message-----
From: "Einav Cohen" < ecohen(a)redhat.com >
Sent: 14-03-2014 01:21
To: "aditya mamidwar" < aditya.mamidwar(a)gmail.com >; "Vojtech
Szocs"
< vszocs(a)redhat.com > Cc: " users(a)ovirt.org " < users(a)ovirt.org >;
" engine-devel(a)ovirt.org " < engine-devel(a)ovirt.org > Subject: Re:
[Users]
adding scripts
if you are trying to hook into UI-specific events, it sounds
like you will need to write an oVirt UI Plugin [1] in order to
do that. However, I believe that the oVirt UI Plugins
infrastructure doesn't support hooking to events such as "tab
x was selected" and/or "button b was clicked".
It does allow you to add new (custom) tabs/sub-tabs/buttons of
your own, and there is a chance that it allows you to hook
into events such as 'row x was selected in the grid'.
@Vojtech will know better. Vojtech?
if you are trying to hook into engine events (e.g. you want to
run a script every time a VM is started in oVirt, no matter if
the user started it by clicking the 'run' button in the oVirt-
engine webadmin, or invoked a REST API request, or an SDK
command), then it will require some sort of an "engine-plugin"
infrastructure that we don't have at the moment AFAIK.
there is a chance that for some of the events you will be able
to utilize the VDSM hooks (at the Host level) [2].
----
Thanks,
Einav
[1]
http://www.ovirt.org/Features/UIPlugins
[2]
http://www.ovirt.org/VDSM-Hooks
----- Original Message -----
> From: "aditya mamidwar" < aditya.mamidwar(a)gmail.com >
> To: users(a)ovirt.org , engine-devel(a)ovirt.org
> Sent: Thursday, March 13, 2014 11:23:35 AM
> Subject: [Users] adding scripts
>
>
> I want to commit changes to the engine by adding some bash scripts.
> the scripts should be invoked once a button or tab is selected in the
> webadmin portal by the user.
>
> can someone guide on achieving this.
>
> --
> -Aditya Mamidwar
>
> _______________________________________________
> Users mailing list
> Users(a)ovirt.org
>
http://lists.ovirt.org/mailman/listinfo/users
</blockquote>
--
-Aditya Mamidwar
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
</blockquote>
------=_Part_1855115_740317422.1395405184864
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html><body><div style=3D"font-family: times new roman, new york,
times, se=
rif; font-size: 12pt; color: #000000"><div><br></div><hr
id=3D"zwchr"><bloc=
kquote style=3D"border-left:2px solid #1010FF;margin-left:5px;padding-left:=
5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;fo=
nt-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From:
</b>"aditya =
mamidwar" &lt;aditya.mamidwar(a)gmail.com&gt;<br><b>To:
</b>awels(a)redhat.com,=
engine-devel(a)ovirt.org, users(a)ovirt.org<br><b>Sent: </b>Friday, March
21, =
2014 6:14:01 AM<br><b>Subject: </b>Re: [Users] [Engine-devel]
adding =
scripts<br><div><br></div><div
dir=3D"ltr"><div><div><div><div><div><div><d=
iv><br></div>Hey,<br></div>my team is working on adding AoE
protocol suppor=
t to ovirt.<br><div><br></div></div>am thus facing following
difficulties:<=
br></div>1 : i wrote the required code using in bash scripting, which i wis=
h to invoke after a click of button in the ovirt-portal. (which does not se=
em to be possible). can you help on that? which programming language should=
i use, and how that file should be
invoked.</div></div></div></div></block=
quote><div>This needs to be done in Java. You'll need to read up on
oVirt's=
UI Plugin infrastructure, which Einav and others mentioned below. No, you =
cannot write a bash script and have a button click in oVirt invoke that.</d=
iv><blockquote style=3D"border-left:2px solid #1010FF;margin-left:5px;paddi=
ng-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration=
:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div
dir=3D"l=
tr"><div><div><div><div><br></div></div>2.
for ISOs to be available, i need=
to enable hosts configured in clusters and storage domains of ATA type. (c=
urrently NFS, iSCSI and FC are done). which files should i focus on changin=
g for above
functionality.</div></div></div></blockquote><div>I've
never he=
ard of ATA network storage. Are you referring to ATA hardware technology, i=
.e. SATA?</div><div><br></div><div>At any rate, adding a
custom storage dom=
ain technology will difficult. Hopefully someone else on list can direct yo=
u.</div><blockquote style=3D"border-left:2px solid
#1010FF;margin-left:5px;=
padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decor=
ation:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir=
=3D"ltr"><div><div><div><br></div></div>3.
How do i change the custom layou=
t of the engine? (like adding a few extra buttons.) please specify the file=
s responsible.</div></div></blockquote><div>Again, you'll need
to read up o=
n oVirt's UI Plugin
infrastructure. http://www.ovirt.org/Features/UIPl=
ugins</div><blockquote style=3D"border-left:2px solid
#1010FF;margin-left:5=
px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-de=
coration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div =
dir=3D"ltr"><div><div><br></div></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.)</div></blockquote><div>Other than
wh=
at we've already mentioned (JavaDoc, architecture docs on the wiki), no.</d=
iv><div><br></div><div>Greg</div><div><br></div><blockquote
style=3D"border=
-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-we=
ight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Ar=
ial,sans-serif;font-size:12pt;"><div
dir=3D"ltr"><br><div><br></div></div><=
div class=3D"gmail_extra"><br><div><br></div><div
class=3D"gmail_quote">On =
Mon, Mar 17, 2014 at 5:52 PM, Alexander Wels <span
dir=3D"ltr"><<a href=
=3D"mailto:awels@redhat.com"
target=3D"_blank">awels(a)redhat.com</a>&gt;</sp=
an> wrote:<br><blockquote class=3D"gmail_quote"
style=3D"margin:0 0 0 .8ex;=
border-left:1px #ccc
solid;padding-left:1ex">Aditya,<br><div><br></div>
That is because that file doesn't exist. We map that name to a servlet in<b=
r>
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 nothin=
g in<br>
that page as all the HTML is being generated at runtime using GWT.<br><div>=
<br></div>
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=3D=
"HOEnZb"><span style=3D"color: #888888;"><br>
Alexander<br>
</span></span><div class=3D"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 a=
nd<br>
> make few tweaks for personal use? I just cant find that file after usi=
ng<br>
> git.<br>
><br>
> Aditya Mamidwar<br>
><br></div><div class=3D"im HOEnZb">>
-----Original Message-----<br>
> From: "Einav Cohen" <<a
href=3D"mailto:ecohen@redhat.com" target=3D=
"_blank">ecohen(a)redhat.com</a>&gt;<br>
> Sent: 14-03-2014 01:21<br></div><div
class=3D"HOEnZb"><div class=3D"h5=
">> To: "aditya mamidwar" <<a
href=3D"mailto:aditya.mamidwar@gmail.co=
m" target=3D"_blank">aditya.mamidwar(a)gmail.com</a>&gt;;
"Vojtech Szocs"<br>
> <<a href=3D"mailto:vszocs@redhat.com"
target=3D"_blank">vszocs@redh=
at.com</a>> Cc: "<a href=3D"mailto:users@ovirt.org"
target=3D"_blank">us=
ers(a)ovirt.org</a>" <<a href=3D"mailto:users@ovirt.org"
target=3D"_blank"=
users(a)ovirt.org</a>&gt;;<br>
>
"<a href=3D"mailto:engine-devel@ovirt.org"
target=3D"_blank">engine-de=
vel(a)ovirt.org</a>" <<a
href=3D"mailto:engine-devel@ovirt.org" target=3D"=
_blank">engine-devel(a)ovirt.org</a>&gt; 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=3D"http://www.ovirt.org/Features/UIPlugins"
target=3D"_bla=
nk">http://www.ovirt.org/Features/UIPlugins</a><br>
><br>
> [2] <a
href=3D"http://www.ovirt.org/VDSM-Hooks"
target=3D"_blank">http=
://www.ovirt.org/VDSM-Hooks</a><br>
><br>
><br>
> ----- Original Message -----<br>
><br>
> > From: "aditya mamidwar" <<a
href=3D"mailto:aditya.mamidwar@gma=
il.com"
target=3D"_blank">aditya.mamidwar(a)gmail.com</a>&gt;<br>
> > To: <a href=3D"mailto:users@ovirt.org"
target=3D"_blank">users@ov=
irt.org</a>, <a href=3D"mailto:engine-devel@ovirt.org"
target=3D"_blank">en=
gine-devel(a)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 script=
s.<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=3D"mailto:Users@ovirt.org"
target=3D"_blank">Users(a)ovirt.=
org</a><br>
> > <a
href=3D"http://lists.ovirt.org/mailman/listinfo/users"
target=
=3D"_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br><div><br><=
/div></div></div></blockquote></div><br><br
clear=3D"all"><br>-- <br>-Adity=
a Mamidwar
</div><br>_______________________________________________<br>Users
mailing =
list<br>Users@ovirt.org<br>http://lists.ovirt.org/mailman/listinfo/users<br=
</blockquote><div><br></div></div></body></html>
------=_Part_1855115_740317422.1395405184864--