Fwd: Integration of ovirt-engine GUI with the CLI

It is designed in javascript/HTML. We had initially designed some feature using CLI. But now we just want to execute command when we hit the button/tab. -Nikita i On Tue, Nov 4, 2014 at 4:09 PM, Itamar Heim <iheim@redhat.com> wrote:
On 11/04/2014 06:30 AM, Nikita Kodkani wrote:
Hi,
I have the CLI designed for the RHEV-M. I have also designed some GUI in ovirt-engine. Now I am stuckup with the integration. Could you suggest how to connect the ovirt-engine GUI with the backend CLI commands?
which language is your gui? why use the CLI instead of the python or java SDKs (or ruby or javascript ones)

On 11/04/2014 11:47 AM, Nikita Kodkani wrote:
It is designed in javascript/HTML. We had initially designed some feature using CLI. But now we just want to execute command when we hit the button/tab.
vojtech - sounds like ovirt.js could be the best fit here?
-Nikita
i
On Tue, Nov 4, 2014 at 4:09 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com>> wrote:
On 11/04/2014 06:30 AM, Nikita Kodkani wrote:
Hi,
I have the CLI designed for the RHEV-M. I have also designed some GUI in ovirt-engine. Now I am stuckup with the integration. Could you suggest how to connect the ovirt-engine GUI with the backend CLI commands?
which language is your gui? why use the CLI instead of the python or java SDKs (or ruby or javascript ones)

Hi, To add further... I read it somewhere on google, that to execute the shell commands in the JavaScript we have to use node.js at the backend. We don't want to spend time on learning the technology in this time frame. -Does ovirt-engine provide API's for executing the shell commands? Thanks, Nikita Nikita Kodkani On Tue, Nov 4, 2014 at 4:20 PM, Itamar Heim <iheim@redhat.com> wrote:
On 11/04/2014 11:47 AM, Nikita Kodkani wrote:
It is designed in javascript/HTML. We had initially designed some feature using CLI. But now we just want to execute command when we hit the button/tab.
vojtech - sounds like ovirt.js could be the best fit here?
-Nikita
i
On Tue, Nov 4, 2014 at 4:09 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com>> wrote:
On 11/04/2014 06:30 AM, Nikita Kodkani wrote:
Hi,
I have the CLI designed for the RHEV-M. I have also designed some GUI in ovirt-engine. Now I am stuckup with the integration. Could you suggest how to connect the ovirt-engine GUI with the backend CLI commands?
which language is your gui? why use the CLI instead of the python or java SDKs (or ruby or javascript ones)

On 11/04/2014 01:54 PM, Nikita Kodkani wrote:
Hi,
To add further... I read it somewhere on google, that to execute the shell commands in the JavaScript we have to use node.js at the backend.
We don't want to spend time on learning the technology in this time frame.
-Does ovirt-engine provide API's for executing the shell commands?
its the other way around - the cli/shell commands are using the engine python-sdk, which uses the engine REST API. if your solution is html/javascript based, i think using ovirt.js (which wraps calling to the engine rest api 'nicely', vs. you doing it yourself from your code) is the way to go. http://lists.ovirt.org/pipermail/users/2014-June/025198.html http://www.ovirt.org/Features/Design/Using_REST_API_In_Web_UI http://lists.ovirt.org/pipermail/devel/2014-August/008502.html http://lists.ovirt.org/pipermail/devel/attachments/20140819/a35caa44/attachm...
Thanks, Nikita
Nikita Kodkani
On Tue, Nov 4, 2014 at 4:20 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com>> wrote:
On 11/04/2014 11:47 AM, Nikita Kodkani wrote:
It is designed in javascript/HTML. We had initially designed some feature using CLI. But now we just want to execute command when we hit the button/tab.
vojtech - sounds like ovirt.js could be the best fit here?
-Nikita
i
On Tue, Nov 4, 2014 at 4:09 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com> <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>> wrote:
On 11/04/2014 06:30 AM, Nikita Kodkani wrote:
Hi,
I have the CLI designed for the RHEV-M. I have also designed some GUI in ovirt-engine. Now I am stuckup with the integration. Could you suggest how to connect the ovirt-engine GUI with the backend CLI commands?
which language is your gui? why use the CLI instead of the python or java SDKs (or ruby or javascript ones)

----- Original Message -----
From: "Itamar Heim" <iheim@redhat.com> To: "Nikita Kodkani" <nikita.kodkani@gmail.com> Cc: "users" <Users@ovirt.org>, "Vojtech Szocs" <vszocs@redhat.com> Sent: Wednesday, November 5, 2014 12:37:21 AM Subject: Re: Fwd: [ovirt-users] Integration of ovirt-engine GUI with the CLI
On 11/04/2014 01:54 PM, Nikita Kodkani wrote:
Hi,
To add further... I read it somewhere on google, that to execute the shell commands in the JavaScript we have to use node.js at the backend.
We don't want to spend time on learning the technology in this time frame.
-Does ovirt-engine provide API's for executing the shell commands?
its the other way around - the cli/shell commands are using the engine python-sdk, which uses the engine REST API.
if your solution is html/javascript based, i think using ovirt.js (which wraps calling to the engine rest api 'nicely', vs. you doing it yourself from your code) is the way to go.
Exactly, the main use case for oVirtJS is to allow working with Engine from within a JavaScript environment. HTML/JS web application is the primary use case, we also plan to support "server-side JS code running on Node.js" as another use case, so that people can potentially write custom server-side JS to work with Engine.
http://lists.ovirt.org/pipermail/users/2014-June/025198.html http://www.ovirt.org/Features/Design/Using_REST_API_In_Web_UI http://lists.ovirt.org/pipermail/devel/2014-August/008502.html http://lists.ovirt.org/pipermail/devel/attachments/20140819/a35caa44/attachm...
Thanks, Nikita
Nikita Kodkani
On Tue, Nov 4, 2014 at 4:20 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com>> wrote:
On 11/04/2014 11:47 AM, Nikita Kodkani wrote:
It is designed in javascript/HTML. We had initially designed some feature using CLI. But now we just want to execute command when we hit the button/tab.
vojtech - sounds like ovirt.js could be the best fit here?
-Nikita
i
On Tue, Nov 4, 2014 at 4:09 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com> <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>> wrote:
On 11/04/2014 06:30 AM, Nikita Kodkani wrote:
Hi,
I have the CLI designed for the RHEV-M. I have also designed some GUI in ovirt-engine. Now I am stuckup with the integration. Could you suggest how to connect the ovirt-engine GUI with the backend CLI commands?
which language is your gui? why use the CLI instead of the python or java SDKs (or ruby or javascript ones)

I got the use case of ovirt.js. But I don't think so it can be used in my case. I have to instead use CGI/php. My aim is to run the command from the rhevm manager bash prompt with dynamic attributes and then returns the success/failure result. E.g `rhevmcommand -lrt -p password ` Rhevmcommand is written in bash script, which internally calls REST api using curl. Password is similar that of rhevm manager database. Now I want something like <snip> Var result=`rhevmcommand -lrt` <> in HTML/java/...web UI. -Nikita On 06/11/2014 6:29 pm, "Vojtech Szocs" <vszocs@redhat.com> wrote:
From: "Itamar Heim" <iheim@redhat.com> To: "Nikita Kodkani" <nikita.kodkani@gmail.com> Cc: "users" <Users@ovirt.org>, "Vojtech Szocs" <vszocs@redhat.com> Sent: Wednesday, November 5, 2014 12:37:21 AM Subject: Re: Fwd: [ovirt-users] Integration of ovirt-engine GUI with the CLI
On 11/04/2014 01:54 PM, Nikita Kodkani wrote:
Hi,
To add further... I read it somewhere on google, that to execute the shell commands in
JavaScript we have to use node.js at the backend.
We don't want to spend time on learning the technology in this time
----- Original Message ----- the frame.
-Does ovirt-engine provide API's for executing the shell commands?
its the other way around - the cli/shell commands are using the engine python-sdk, which uses the engine REST API.
if your solution is html/javascript based, i think using ovirt.js (which wraps calling to the engine rest api 'nicely', vs. you doing it yourself from your code) is the way to go.
Exactly, the main use case for oVirtJS is to allow working with Engine from within a JavaScript environment. HTML/JS web application is the primary use case, we also plan to support "server-side JS code running on Node.js" as another use case, so that people can potentially write custom server-side JS to work with Engine.
http://lists.ovirt.org/pipermail/users/2014-June/025198.html http://www.ovirt.org/Features/Design/Using_REST_API_In_Web_UI http://lists.ovirt.org/pipermail/devel/2014-August/008502.html
http://lists.ovirt.org/pipermail/devel/attachments/20140819/a35caa44/attachm...
Thanks, Nikita
Nikita Kodkani
On Tue, Nov 4, 2014 at 4:20 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com>> wrote:
On 11/04/2014 11:47 AM, Nikita Kodkani wrote:
It is designed in javascript/HTML. We had initially designed
some
feature using CLI. But now we just want to execute command when we hit the button/tab.
vojtech - sounds like ovirt.js could be the best fit here?
-Nikita
i
On Tue, Nov 4, 2014 at 4:09 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com> <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>> wrote:
On 11/04/2014 06:30 AM, Nikita Kodkani wrote:
Hi,
I have the CLI designed for the RHEV-M. I have also designed some GUI in ovirt-engine. Now I am stuckup with the integration. Could you suggest how to connect the ovirt-engine GUI with the backend CLI commands?
which language is your gui? why use the CLI instead of the python or java SDKs (or ruby or javascript ones)

On 07/11/14 03:46, Nikita Kodkani wrote:
Rhevmcommand is written in bash script, which internally calls REST api using curl.
Why don't you call the rest api directly from php? -- Mit freundlichen Grüßen / Regards Sven Kieske Systemadministrator Mittwald CM Service GmbH & Co. KG Königsberger Straße 6 32339 Espelkamp T: +49-5772-293-100 F: +49-5772-293-333 https://www.mittwald.de Geschäftsführer: Robert Meyer St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen

On 11/07/2014 09:25 AM, Sven Kieske wrote:
On 07/11/14 03:46, Nikita Kodkani wrote:
Rhevmcommand is written in bash script, which internally calls REST api using curl.
Why don't you call the rest api directly from php?
That would certainly be the best way. I would also suggest to take a look at the sample portals written by Shahar Havivi: http://www.ovirt.org/Sample_user_portals There examples written in Java, Python and Ruby. They can probably inspire you to write a PHP or CGI+Shell equivalent. Would be great if you can contribute it, by the way. -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.

On 11/07/2014 04:46 AM, Nikita Kodkani wrote:
I got the use case of ovirt.js. But I don't think so it can be used in my case. I have to instead use CGI/php. My aim is to run the command from the rhevm manager bash prompt with dynamic attributes and then returns the success/failure result.
E.g `rhevmcommand -lrt -p password `
Rhevmcommand is written in bash script, which internally calls REST api using curl.
Password is similar that of rhevm manager database.
Now I want something like <snip> Var result=`rhevmcommand -lrt` <> in HTML/java/...web UI.
can you please explain why you would prefer to web-->gateway-->cli-->REST, rather than just web-->REST ?
-Nikita
On 06/11/2014 6:29 pm, "Vojtech Szocs" <vszocs@redhat.com <mailto:vszocs@redhat.com>> wrote:
----- Original Message ----- > From: "Itamar Heim" <iheim@redhat.com <mailto:iheim@redhat.com>> > To: "Nikita Kodkani" <nikita.kodkani@gmail.com <mailto:nikita.kodkani@gmail.com>> > Cc: "users" <Users@ovirt.org <mailto:Users@ovirt.org>>, "Vojtech Szocs" <vszocs@redhat.com <mailto:vszocs@redhat.com>> > Sent: Wednesday, November 5, 2014 12:37:21 AM > Subject: Re: Fwd: [ovirt-users] Integration of ovirt-engine GUI with the CLI > > On 11/04/2014 01:54 PM, Nikita Kodkani wrote: > > Hi, > > > > To add further... > > I read it somewhere on google, that to execute the shell commands in the > > JavaScript we have to use node.js at the backend. > > > > We don't want to spend time on learning the technology in this time frame. > > > > -Does ovirt-engine provide API's for executing the shell commands? > > its the other way around - the cli/shell commands are using the engine > python-sdk, which uses the engine REST API. > > if your solution is html/javascript based, i think using ovirt.js (which > wraps calling to the engine rest api 'nicely', vs. you doing it yourself > from your code) is the way to go.
Exactly, the main use case for oVirtJS is to allow working with Engine from within a JavaScript environment. HTML/JS web application is the primary use case, we also plan to support "server-side JS code running on Node.js" as another use case, so that people can potentially write custom server-side JS to work with Engine.
> > http://lists.ovirt.org/pipermail/users/2014-June/025198.html > http://www.ovirt.org/Features/Design/Using_REST_API_In_Web_UI > http://lists.ovirt.org/pipermail/devel/2014-August/008502.html > http://lists.ovirt.org/pipermail/devel/attachments/20140819/a35caa44/attachm... > > > > > > > > Thanks, > > Nikita > > > > Nikita Kodkani > > > > > > On Tue, Nov 4, 2014 at 4:20 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com> > > <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>> wrote: > > > > On 11/04/2014 11:47 AM, Nikita Kodkani wrote: > > > > It is designed in javascript/HTML. We had initially designed some > > feature using CLI. But now we just want to execute command when > > we hit > > the button/tab. > > > > > > vojtech - sounds like ovirt.js could be the best fit here? > > > > -Nikita > > > > i > > > > > > On Tue, Nov 4, 2014 at 4:09 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com> > > <mailto:iheim@redhat.com <mailto:iheim@redhat.com>> > > <mailto:iheim@redhat.com <mailto:iheim@redhat.com> <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>>> wrote: > > > > On 11/04/2014 06:30 AM, Nikita Kodkani wrote: > > > > Hi, > > > > I have the CLI designed for the RHEV-M. I have also > > designed > > some GUI in > > ovirt-engine. > > Now I am stuckup with the integration. Could you > > suggest how to > > connect > > the ovirt-engine GUI with the backend CLI commands? > > > > > > which language is your gui? > > why use the CLI instead of the python or java SDKs > > (or ruby or javascript ones) > > > > > > > > > > > >

On 11/06/2014 02:59 PM, Vojtech Szocs wrote:
----- Original Message -----
From: "Itamar Heim" <iheim@redhat.com> To: "Nikita Kodkani" <nikita.kodkani@gmail.com> Cc: "users" <Users@ovirt.org>, "Vojtech Szocs" <vszocs@redhat.com> Sent: Wednesday, November 5, 2014 12:37:21 AM Subject: Re: Fwd: [ovirt-users] Integration of ovirt-engine GUI with the CLI
On 11/04/2014 01:54 PM, Nikita Kodkani wrote:
Hi,
To add further... I read it somewhere on google, that to execute the shell commands in the JavaScript we have to use node.js at the backend.
We don't want to spend time on learning the technology in this time frame.
-Does ovirt-engine provide API's for executing the shell commands?
its the other way around - the cli/shell commands are using the engine python-sdk, which uses the engine REST API.
if your solution is html/javascript based, i think using ovirt.js (which wraps calling to the engine rest api 'nicely', vs. you doing it yourself from your code) is the way to go.
Exactly, the main use case for oVirtJS is to allow working with Engine from within a JavaScript environment. HTML/JS web application is the primary use case, we also plan to support "server-side JS code running on Node.js" as another use case, so that people can potentially write custom server-side JS to work with Engine.
vojtech - how about adding a very simple "samples-portals" with it to the repo?
http://lists.ovirt.org/pipermail/users/2014-June/025198.html http://www.ovirt.org/Features/Design/Using_REST_API_In_Web_UI http://lists.ovirt.org/pipermail/devel/2014-August/008502.html http://lists.ovirt.org/pipermail/devel/attachments/20140819/a35caa44/attachm...
Thanks, Nikita
Nikita Kodkani
On Tue, Nov 4, 2014 at 4:20 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com>> wrote:
On 11/04/2014 11:47 AM, Nikita Kodkani wrote:
It is designed in javascript/HTML. We had initially designed some feature using CLI. But now we just want to execute command when we hit the button/tab.
vojtech - sounds like ovirt.js could be the best fit here?
-Nikita
i
On Tue, Nov 4, 2014 at 4:09 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com> <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>> wrote:
On 11/04/2014 06:30 AM, Nikita Kodkani wrote:
Hi,
I have the CLI designed for the RHEV-M. I have also designed some GUI in ovirt-engine. Now I am stuckup with the integration. Could you suggest how to connect the ovirt-engine GUI with the backend CLI commands?
which language is your gui? why use the CLI instead of the python or java SDKs (or ruby or javascript ones)

----- Original Message -----
From: "Itamar Heim" <iheim@redhat.com> To: "Vojtech Szocs" <vszocs@redhat.com> Cc: "Nikita Kodkani" <nikita.kodkani@gmail.com>, "users" <Users@ovirt.org> Sent: Wednesday, November 12, 2014 11:03:37 PM Subject: Re: [ovirt-users] Integration of ovirt-engine GUI with the CLI
On 11/06/2014 02:59 PM, Vojtech Szocs wrote:
----- Original Message -----
From: "Itamar Heim" <iheim@redhat.com> To: "Nikita Kodkani" <nikita.kodkani@gmail.com> Cc: "users" <Users@ovirt.org>, "Vojtech Szocs" <vszocs@redhat.com> Sent: Wednesday, November 5, 2014 12:37:21 AM Subject: Re: Fwd: [ovirt-users] Integration of ovirt-engine GUI with the CLI
On 11/04/2014 01:54 PM, Nikita Kodkani wrote:
Hi,
To add further... I read it somewhere on google, that to execute the shell commands in the JavaScript we have to use node.js at the backend.
We don't want to spend time on learning the technology in this time frame.
-Does ovirt-engine provide API's for executing the shell commands?
its the other way around - the cli/shell commands are using the engine python-sdk, which uses the engine REST API.
if your solution is html/javascript based, i think using ovirt.js (which wraps calling to the engine rest api 'nicely', vs. you doing it yourself from your code) is the way to go.
Exactly, the main use case for oVirtJS is to allow working with Engine from within a JavaScript environment. HTML/JS web application is the primary use case, we also plan to support "server-side JS code running on Node.js" as another use case, so that people can potentially write custom server-side JS to work with Engine.
vojtech - how about adding a very simple "samples-portals" with it to the repo?
Sure, sounds good! The only major issue I see with oVirtJS vs Engine 3.5 is the need to authenticate against REST endpoint via HTTP basic auth mechanism. HTTP basic auth is not appropriate auth mechanism for JS/web apps that live inside web browser. I hope that 3.6 will improve this.
http://lists.ovirt.org/pipermail/users/2014-June/025198.html http://www.ovirt.org/Features/Design/Using_REST_API_In_Web_UI http://lists.ovirt.org/pipermail/devel/2014-August/008502.html http://lists.ovirt.org/pipermail/devel/attachments/20140819/a35caa44/attachm...
Thanks, Nikita
Nikita Kodkani
On Tue, Nov 4, 2014 at 4:20 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com>> wrote:
On 11/04/2014 11:47 AM, Nikita Kodkani wrote:
It is designed in javascript/HTML. We had initially designed some feature using CLI. But now we just want to execute command when we hit the button/tab.
vojtech - sounds like ovirt.js could be the best fit here?
-Nikita
i
On Tue, Nov 4, 2014 at 4:09 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com> <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>> wrote:
On 11/04/2014 06:30 AM, Nikita Kodkani wrote:
Hi,
I have the CLI designed for the RHEV-M. I have also designed some GUI in ovirt-engine. Now I am stuckup with the integration. Could you suggest how to connect the ovirt-engine GUI with the backend CLI commands?
which language is your gui? why use the CLI instead of the python or java SDKs (or ruby or javascript ones)

vojtech - how about adding a very simple "samples-portals" with it to the repo?
I believe that Jenny is already working on a ovirt.js-based portal? @Jenny: sounds like your work may be a good fit for our "Sample User Portals" repository (more details in [1])? [1] http://www.ovirt.org/Sample_user_portals
----- Original Message ----- From: "Itamar Heim" <iheim@redhat.com> Sent: Wednesday, November 12, 2014 5:03:37 PM
On 11/06/2014 02:59 PM, Vojtech Szocs wrote:
----- Original Message -----
From: "Itamar Heim" <iheim@redhat.com> To: "Nikita Kodkani" <nikita.kodkani@gmail.com> Cc: "users" <Users@ovirt.org>, "Vojtech Szocs" <vszocs@redhat.com> Sent: Wednesday, November 5, 2014 12:37:21 AM Subject: Re: Fwd: [ovirt-users] Integration of ovirt-engine GUI with the CLI
On 11/04/2014 01:54 PM, Nikita Kodkani wrote:
Hi,
To add further... I read it somewhere on google, that to execute the shell commands in the JavaScript we have to use node.js at the backend.
We don't want to spend time on learning the technology in this time frame.
-Does ovirt-engine provide API's for executing the shell commands?
its the other way around - the cli/shell commands are using the engine python-sdk, which uses the engine REST API.
if your solution is html/javascript based, i think using ovirt.js (which wraps calling to the engine rest api 'nicely', vs. you doing it yourself from your code) is the way to go.
Exactly, the main use case for oVirtJS is to allow working with Engine from within a JavaScript environment. HTML/JS web application is the primary use case, we also plan to support "server-side JS code running on Node.js" as another use case, so that people can potentially write custom server-side JS to work with Engine.
vojtech - how about adding a very simple "samples-portals" with it to the repo?
http://lists.ovirt.org/pipermail/users/2014-June/025198.html http://www.ovirt.org/Features/Design/Using_REST_API_In_Web_UI http://lists.ovirt.org/pipermail/devel/2014-August/008502.html http://lists.ovirt.org/pipermail/devel/attachments/20140819/a35caa44/attachm...
Thanks, Nikita
Nikita Kodkani
On Tue, Nov 4, 2014 at 4:20 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com>> wrote:
On 11/04/2014 11:47 AM, Nikita Kodkani wrote:
It is designed in javascript/HTML. We had initially designed some feature using CLI. But now we just want to execute command when we hit the button/tab.
vojtech - sounds like ovirt.js could be the best fit here?
-Nikita
i
On Tue, Nov 4, 2014 at 4:09 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com> <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>> wrote:
On 11/04/2014 06:30 AM, Nikita Kodkani wrote:
Hi,
I have the CLI designed for the RHEV-M. I have also designed some GUI in ovirt-engine. Now I am stuckup with the integration. Could you suggest how to connect the ovirt-engine GUI with the backend CLI commands?
which language is your gui? why use the CLI instead of the python or java SDKs (or ruby or javascript ones)
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

----- Original Message -----
From: "Einav Cohen" <ecohen@redhat.com> To: "Itamar Heim" <iheim@redhat.com>, jennykang95@gmail.com, "Greg Sheremeta" <gshereme@redhat.com> Cc: "Vojtech Szocs" <vszocs@redhat.com>, "Nikita Kodkani" <nikita.kodkani@gmail.com>, "users" <Users@ovirt.org> Sent: Tuesday, November 25, 2014 9:56:49 PM Subject: Re: [ovirt-users] Integration of ovirt-engine GUI with the CLI
vojtech - how about adding a very simple "samples-portals" with it to the repo?
I believe that Jenny is already working on a ovirt.js-based portal?
Yes, AFAIK Jenny is already working on UserPortal-like web application based on oVirtJS.
@Jenny: sounds like your work may be a good fit for our "Sample User Portals" repository (more details in [1])?
+1
[1] http://www.ovirt.org/Sample_user_portals
----- Original Message ----- From: "Itamar Heim" <iheim@redhat.com> Sent: Wednesday, November 12, 2014 5:03:37 PM
On 11/06/2014 02:59 PM, Vojtech Szocs wrote:
----- Original Message -----
From: "Itamar Heim" <iheim@redhat.com> To: "Nikita Kodkani" <nikita.kodkani@gmail.com> Cc: "users" <Users@ovirt.org>, "Vojtech Szocs" <vszocs@redhat.com> Sent: Wednesday, November 5, 2014 12:37:21 AM Subject: Re: Fwd: [ovirt-users] Integration of ovirt-engine GUI with the CLI
On 11/04/2014 01:54 PM, Nikita Kodkani wrote:
Hi,
To add further... I read it somewhere on google, that to execute the shell commands in the JavaScript we have to use node.js at the backend.
We don't want to spend time on learning the technology in this time frame.
-Does ovirt-engine provide API's for executing the shell commands?
its the other way around - the cli/shell commands are using the engine python-sdk, which uses the engine REST API.
if your solution is html/javascript based, i think using ovirt.js (which wraps calling to the engine rest api 'nicely', vs. you doing it yourself from your code) is the way to go.
Exactly, the main use case for oVirtJS is to allow working with Engine from within a JavaScript environment. HTML/JS web application is the primary use case, we also plan to support "server-side JS code running on Node.js" as another use case, so that people can potentially write custom server-side JS to work with Engine.
vojtech - how about adding a very simple "samples-portals" with it to the repo?
http://lists.ovirt.org/pipermail/users/2014-June/025198.html http://www.ovirt.org/Features/Design/Using_REST_API_In_Web_UI http://lists.ovirt.org/pipermail/devel/2014-August/008502.html http://lists.ovirt.org/pipermail/devel/attachments/20140819/a35caa44/attachm...
Thanks, Nikita
Nikita Kodkani
On Tue, Nov 4, 2014 at 4:20 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com>> wrote:
On 11/04/2014 11:47 AM, Nikita Kodkani wrote:
It is designed in javascript/HTML. We had initially designed some feature using CLI. But now we just want to execute command when we hit the button/tab.
vojtech - sounds like ovirt.js could be the best fit here?
-Nikita
i
On Tue, Nov 4, 2014 at 4:09 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com> <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>> wrote:
On 11/04/2014 06:30 AM, Nikita Kodkani wrote:
Hi,
I have the CLI designed for the RHEV-M. I have also designed some GUI in ovirt-engine. Now I am stuckup with the integration. Could you suggest how to connect the ovirt-engine GUI with the backend CLI commands?
which language is your gui? why use the CLI instead of the python or java SDKs (or ruby or javascript ones)
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Hi, Thanks for all comments. I am planning to do GUI-GUI interaction rather than GUI-CLI-GUI. In CLI, for updating the XML we had used "curl -x PUT" & in that we had passed username & password. So do we need to pass the same while in GUI as well? Because I am getting the error as "Method not found" -Nikita On 28/11/2014 10:31 pm, "Vojtech Szocs" <vszocs@redhat.com> wrote:
----- Original Message -----
From: "Einav Cohen" <ecohen@redhat.com> To: "Itamar Heim" <iheim@redhat.com>, jennykang95@gmail.com, "Greg Sheremeta" <gshereme@redhat.com> Cc: "Vojtech Szocs" <vszocs@redhat.com>, "Nikita Kodkani" < nikita.kodkani@gmail.com>, "users" <Users@ovirt.org> Sent: Tuesday, November 25, 2014 9:56:49 PM Subject: Re: [ovirt-users] Integration of ovirt-engine GUI with the CLI
vojtech - how about adding a very simple "samples-portals" with it to the repo?
I believe that Jenny is already working on a ovirt.js-based portal?
Yes, AFAIK Jenny is already working on UserPortal-like web application based on oVirtJS.
@Jenny: sounds like your work may be a good fit for our "Sample User Portals" repository (more details in [1])?
+1
[1] http://www.ovirt.org/Sample_user_portals
----- Original Message ----- From: "Itamar Heim" <iheim@redhat.com> Sent: Wednesday, November 12, 2014 5:03:37 PM
On 11/06/2014 02:59 PM, Vojtech Szocs wrote:
----- Original Message -----
From: "Itamar Heim" <iheim@redhat.com> To: "Nikita Kodkani" <nikita.kodkani@gmail.com> Cc: "users" <Users@ovirt.org>, "Vojtech Szocs" <vszocs@redhat.com> Sent: Wednesday, November 5, 2014 12:37:21 AM Subject: Re: Fwd: [ovirt-users] Integration of ovirt-engine GUI
with the
CLI
On 11/04/2014 01:54 PM, Nikita Kodkani wrote:
Hi,
To add further... I read it somewhere on google, that to execute the shell commands in the JavaScript we have to use node.js at the backend.
We don't want to spend time on learning the technology in this time frame.
-Does ovirt-engine provide API's for executing the shell commands?
its the other way around - the cli/shell commands are using the engine python-sdk, which uses the engine REST API.
if your solution is html/javascript based, i think using ovirt.js (which wraps calling to the engine rest api 'nicely', vs. you doing it yourself from your code) is the way to go.
Exactly, the main use case for oVirtJS is to allow working with Engine from within a JavaScript environment. HTML/JS web application is the primary use case, we also plan to support "server-side JS code running on Node.js" as another use case, so that people can potentially write custom server-side JS to work with Engine.
vojtech - how about adding a very simple "samples-portals" with it to the repo?
http://lists.ovirt.org/pipermail/users/2014-June/025198.html http://www.ovirt.org/Features/Design/Using_REST_API_In_Web_UI http://lists.ovirt.org/pipermail/devel/2014-August/008502.html
http://lists.ovirt.org/pipermail/devel/attachments/20140819/a35caa44/attachm...
Thanks, Nikita
Nikita Kodkani
On Tue, Nov 4, 2014 at 4:20 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com>> wrote:
On 11/04/2014 11:47 AM, Nikita Kodkani wrote:
It is designed in javascript/HTML. We had initially
designed
some feature using CLI. But now we just want to execute command when we hit the button/tab.
vojtech - sounds like ovirt.js could be the best fit here?
-Nikita
i
On Tue, Nov 4, 2014 at 4:09 PM, Itamar Heim <
iheim@redhat.com
<mailto:iheim@redhat.com> <mailto:iheim@redhat.com <mailto:iheim@redhat.com>>>
wrote:
On 11/04/2014 06:30 AM, Nikita Kodkani wrote:
Hi,
I have the CLI designed for the RHEV-M. I have
also
designed some GUI in ovirt-engine. Now I am stuckup with the integration. Could you suggest how to connect the ovirt-engine GUI with the backend CLI
commands?
which language is your gui? why use the CLI instead of the python or java SDKs (or ruby or javascript ones)
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

----- Original Message -----
From: "Itamar Heim" <iheim@redhat.com> To: "Nikita Kodkani" <nikita.kodkani@gmail.com>, "users" <Users@ovirt.org>, "Vojtech Szocs" <vszocs@redhat.com> Sent: Tuesday, November 4, 2014 11:50:44 AM Subject: Re: Fwd: [ovirt-users] Integration of ovirt-engine GUI with the CLI
On 11/04/2014 11:47 AM, Nikita Kodkani wrote:
It is designed in javascript/HTML. We had initially designed some feature using CLI. But now we just want to execute command when we hit the button/tab.
vojtech - sounds like ovirt.js could be the best fit here?
Indeed! Integration with oVirt Engine from within a web application (JavaScript/HTML) sounds like a perfect match for oVirtJS project. @Nikita, we're currently developing oVirtJS library as JavaScript SDK for oVirt Engine. See [1] for initial PoC, see [2] for latest version, it's still in development but it should be already usable. [1] http://lists.ovirt.org/pipermail/users/2014-June/025198.html [2] http://gerrit.ovirt.org/#/c/33720/ Vojtech
-Nikita
i
On Tue, Nov 4, 2014 at 4:09 PM, Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com>> wrote:
On 11/04/2014 06:30 AM, Nikita Kodkani wrote:
Hi,
I have the CLI designed for the RHEV-M. I have also designed some GUI in ovirt-engine. Now I am stuckup with the integration. Could you suggest how to connect the ovirt-engine GUI with the backend CLI commands?
which language is your gui? why use the CLI instead of the python or java SDKs (or ruby or javascript ones)
participants (6)
-
Einav Cohen
-
Itamar Heim
-
Juan Hernandez
-
Nikita Kodkani
-
Sven Kieske
-
Vojtech Szocs