Re: [Users] new wiki for ovirt-engine-cli

Michael, I am interested in the ovirt-shell and I might have missed some earlier discussions. The wiki doesn't say much about how to install it. My questions are: 1. Is this part of ovirt-engine install? 2. Can it entirely replace the engine? Do you have a 'how to get started' page? David
Date: Wed, 29 Feb 2012 17:08:13 +0200 From: Michael Pasternak <mpastern@redhat.com> To: users@ovirt.org Subject: [Users] new wiki for ovirt-engine-cli Message-ID: <4F4E3F5D.7010600@redhat.com> Content-Type: text/plain; charset=ISO-8859-1
--
Michael Pasternak RedHat, ENG-Virtualization R&D

Hi David, On 02/29/2012 07:47 PM, Li, David wrote:
Michael, I am interested in the ovirt-shell and I might have missed some earlier discussions. The wiki doesn't say much about how to install it. My questions are:
1. Is this part of ovirt-engine install?
it shipped as another rpm (ovirt-engine-cli) / tarball in release repo, only ovirt-engine-cli is more advanced than last release of oVirt, i.e it using latest ovirt-engine-sdk which is build against latest ovirt-engine, so to use ovirt-engine-cli-2.x you have to compile and deploy the engine by yourself or wait for the next release.
2. Can it entirely replace the engine?
no, it doesn't replace the engine, but using it through over-engine-sdk [1]. [1] http://www.ovirt.org/wiki/SDK
Do you have a 'how to get started' page?
David
Date: Wed, 29 Feb 2012 17:08:13 +0200 From: Michael Pasternak <mpastern@redhat.com> To: users@ovirt.org Subject: [Users] new wiki for ovirt-engine-cli Message-ID: <4F4E3F5D.7010600@redhat.com> Content-Type: text/plain; charset=ISO-8859-1
--
Michael Pasternak RedHat, ENG-Virtualization R&D
-- Michael Pasternak RedHat, ENG-Virtualization R&D

Hi Michael, Thanks for the info. Now on to more questions:) 1. Do you have a link where to get the ovirt-engine-cli rpm or tar ball? 2. I guess my real question is if the cli package can replace the engine GUI. This is necessary if I don't want to use the GUI but integrate the engine management functionalities with my own code. I don't know in this case if I should directly use the SDK or script the CLI cmds. Any suggestions? David
-----Original Message----- From: Michael Pasternak [mailto:mpastern@redhat.com] Sent: Wednesday, February 29, 2012 11:32 PM To: Li, David Cc: users@ovirt.org Subject: Re: new wiki for ovirt-engine-cli
Hi David,
On 02/29/2012 07:47 PM, Li, David wrote:
Michael, I am interested in the ovirt-shell and I might have missed some earlier
discussions. The wiki doesn't say much about how to install it. My questions are:
1. Is this part of ovirt-engine install?
it shipped as another rpm (ovirt-engine-cli) / tarball in release repo, only ovirt- engine-cli is more advanced than last release of oVirt, i.e it using latest ovirt- engine-sdk which is build against latest ovirt-engine,
so to use ovirt-engine-cli-2.x you have to compile and deploy the engine by yourself or wait for the next release.
2. Can it entirely replace the engine?
no, it doesn't replace the engine, but using it through over-engine-sdk [1].
[1] http://www.ovirt.org/wiki/SDK
Do you have a 'how to get started' page?
David
Date: Wed, 29 Feb 2012 17:08:13 +0200 From: Michael Pasternak <mpastern@redhat.com> To: users@ovirt.org Subject: [Users] new wiki for ovirt-engine-cli Message-ID: <4F4E3F5D.7010600@redhat.com> Content-Type: text/plain; charset=ISO-8859-1
--
Michael Pasternak RedHat, ENG-Virtualization R&D
--
Michael Pasternak RedHat, ENG-Virtualization R&D

On 03/01/2012 05:06 PM, Li, David wrote:
Hi Michael,
Thanks for the info. Now on to more questions:)
1. Do you have a link where to get the ovirt-engine-cli rpm or tar ball? 2. I guess my real question is if the cli package can replace the engine GUI. This is necessary if I don't want to use the GUI but integrate the engine management functionalities with my own code. I don't know in this case if I should directly use the SDK or script the CLI cmds. Any suggestions?
for coding (in python), SDK sounds the right integration level. if you want to code in a different language, worth discussing.

On 03/01/2012 05:09 PM, Itamar Heim wrote:
On 03/01/2012 05:06 PM, Li, David wrote:
Hi Michael,
Thanks for the info. Now on to more questions:)
1. Do you have a link where to get the ovirt-engine-cli rpm or tar ball?
http://www.ovirt.org/releases/ i see that ovirt-engine-cli-2.0-3 is yet not available in nightly repo, will ask to upload it, also don't forget that you need latest ovirt-engine to use it
2. I guess my real question is if the cli package can replace the engine GUI. This is necessary if I don't want to use the GUI but integrate the engine management functionalities with my own code. I don't know in this case if I should directly use the SDK or script the CLI cmds. Any suggestions?
for coding (in python), SDK sounds the right integration level. if you want to code in a different language, worth discussing.
sdk is the right tool for integration, see http://www.ovirt.org/wiki/SDK -- Michael Pasternak RedHat, ENG-Virtualization R&D

I see the Feb 19 SDK dn CLI tar balls. I already have an engine up and running. Do I need to install both SDK and CLI to use the cli? Any wiki pages about installation instructions? - David ________________________________________ From: Michael Pasternak [mpastern@redhat.com] Sent: Thursday, March 01, 2012 7:42 AM To: Itamar Heim Cc: Li, David; users@ovirt.org Subject: Re: [Users] new wiki for ovirt-engine-cli On 03/01/2012 05:09 PM, Itamar Heim wrote:
On 03/01/2012 05:06 PM, Li, David wrote:
Hi Michael,
Thanks for the info. Now on to more questions:)
1. Do you have a link where to get the ovirt-engine-cli rpm or tar ball?
http://www.ovirt.org/releases/ i see that ovirt-engine-cli-2.0-3 is yet not available in nightly repo, will ask to upload it, also don't forget that you need latest ovirt-engine to use it
2. I guess my real question is if the cli package can replace the engine GUI. This is necessary if I don't want to use the GUI but integrate the engine management functionalities with my own code. I don't know in this case if I should directly use the SDK or script the CLI cmds. Any suggestions?
for coding (in python), SDK sounds the right integration level. if you want to code in a different language, worth discussing.
sdk is the right tool for integration, see http://www.ovirt.org/wiki/SDK -- Michael Pasternak RedHat, ENG-Virtualization R&D

On 03/02/2012 05:02 PM, Li, David wrote:
I see the Feb 19 SDK dn CLI tar balls.
those aren't latest, you should wait for the next drop or build new ones by yourself (see how in wiki)
I already have an engine up and running. Do I need to install both SDK and CLI to use the cli?
yes
Any wiki pages about installation instructions?
http://www.ovirt.org/wiki/SDK#Deployment http://www.ovirt.org/wiki/CLI#Deployment
- David ________________________________________ From: Michael Pasternak [mpastern@redhat.com] Sent: Thursday, March 01, 2012 7:42 AM To: Itamar Heim Cc: Li, David; users@ovirt.org Subject: Re: [Users] new wiki for ovirt-engine-cli
On 03/01/2012 05:09 PM, Itamar Heim wrote:
On 03/01/2012 05:06 PM, Li, David wrote:
Hi Michael,
Thanks for the info. Now on to more questions:)
1. Do you have a link where to get the ovirt-engine-cli rpm or tar ball?
http://www.ovirt.org/releases/
i see that ovirt-engine-cli-2.0-3 is yet not available in nightly repo, will ask to upload it,
also don't forget that you need latest ovirt-engine to use it
2. I guess my real question is if the cli package can replace the engine GUI. This is necessary if I don't want to use the GUI but integrate the engine management functionalities with my own code. I don't know in this case if I should directly use the SDK or script the CLI cmds. Any suggestions?
for coding (in python), SDK sounds the right integration level. if you want to code in a different language, worth discussing.
sdk is the right tool for integration, see http://www.ovirt.org/wiki/SDK
--
Michael Pasternak RedHat, ENG-Virtualization R&D
-- Michael Pasternak RedHat, ENG-Virtualization R&D

Hi Michael, I installed the cli rpms and connected to the engine. But the "create host" keeps giving errors and I have no clue why: [oVirt shell (connected)]# create host --address '10.10.62.106' --cluster-id 'default' --name 'xxx' --root_password 'yyy' error: incomplete command
From the help menu, the rest are optional. So why is this error?
You have examples creating vm and datacenter. Can you add some how to create hosts? - David ________________________________________ From: Michael Pasternak [mpastern@redhat.com] Sent: Saturday, March 03, 2012 11:14 PM To: Li, David Cc: users@ovirt.org Subject: Re: [Users] new wiki for ovirt-engine-cli On 03/02/2012 05:02 PM, Li, David wrote:
I see the Feb 19 SDK dn CLI tar balls.
those aren't latest, you should wait for the next drop or build new ones by yourself (see how in wiki)
I already have an engine up and running. Do I need to install both SDK and CLI to use the cli?
yes
Any wiki pages about installation instructions?
http://www.ovirt.org/wiki/SDK#Deployment http://www.ovirt.org/wiki/CLI#Deployment
- David ________________________________________ From: Michael Pasternak [mpastern@redhat.com] Sent: Thursday, March 01, 2012 7:42 AM To: Itamar Heim Cc: Li, David; users@ovirt.org Subject: Re: [Users] new wiki for ovirt-engine-cli
On 03/01/2012 05:09 PM, Itamar Heim wrote:
On 03/01/2012 05:06 PM, Li, David wrote:
Hi Michael,
Thanks for the info. Now on to more questions:)
1. Do you have a link where to get the ovirt-engine-cli rpm or tar ball?
http://www.ovirt.org/releases/
i see that ovirt-engine-cli-2.0-3 is yet not available in nightly repo, will ask to upload it,
also don't forget that you need latest ovirt-engine to use it
2. I guess my real question is if the cli package can replace the engine GUI. This is necessary if I don't want to use the GUI but integrate the engine management functionalities with my own code. I don't know in this case if I should directly use the SDK or script the CLI cmds. Any suggestions?
for coding (in python), SDK sounds the right integration level. if you want to code in a different language, worth discussing.
sdk is the right tool for integration, see http://www.ovirt.org/wiki/SDK
--
Michael Pasternak RedHat, ENG-Virtualization R&D
-- Michael Pasternak RedHat, ENG-Virtualization R&D

Hi David, Your 'create host' syntax is correct, only use \" instead of \' to encapsulate command arguments [1], - this is known issue in cli arguments parser and I'm currently working to fix it. [1] create host --address "10.10.62.106" --cluster-id "..." --name "xxx" --root_password "yyy" also notice: you passing string in /--cluster-id "default"/, while it should be UUID, if by-name option would be available, it would look like --cluster-name. On 03/06/2012 12:00 AM, Li, David wrote:
Hi Michael,
I installed the cli rpms and connected to the engine. But the "create host" keeps giving errors and I have no clue why:
[oVirt shell (connected)]# create host --address '10.10.62.106' --cluster-id 'default' --name 'xxx' --root_password 'yyy' error: incomplete command
From the help menu, the rest are optional. So why is this error?
You have examples creating vm and datacenter. Can you add some how to create hosts?
- David
-- Michael Pasternak RedHat, ENG-Virtualization R&D

Hi Michael, Now I could create a host but couldn't delete it. [oVirt shell (connected)]# delete host "72b4107c-679d-11e1-9302-000c29cfd59e" error: failed locating type async what's the correct syntax for deleting a host? - David ________________________________________ From: Michael Pasternak [mpastern@redhat.com] Sent: Monday, March 05, 2012 11:38 PM To: Li, David Cc: users@ovirt.org Subject: Re: [Users] adding host with ovirt-engine-cli Hi David, Your 'create host' syntax is correct, only use \" instead of \' to encapsulate command arguments [1], - this is known issue in cli arguments parser and I'm currently working to fix it. [1] create host --address "10.10.62.106" --cluster-id "..." --name "xxx" --root_password "yyy" also notice: you passing string in /--cluster-id "default"/, while it should be UUID, if by-name option would be available, it would look like --cluster-name. On 03/06/2012 12:00 AM, Li, David wrote:
Hi Michael,
I installed the cli rpms and connected to the engine. But the "create host" keeps giving errors and I have no clue why:
[oVirt shell (connected)]# create host --address '10.10.62.106' --cluster-id 'default' --name 'xxx' --root_password 'yyy' error: incomplete command
From the help menu, the rest are optional. So why is this error?
You have examples creating vm and datacenter. Can you add some how to create hosts?
- David
-- Michael Pasternak RedHat, ENG-Virtualization R&D

Hi David, On 03/07/2012 12:08 AM, Li, David wrote:
Hi Michael,
Now I could create a host but couldn't delete it.
This is because you using not official release of the cli, (you build cli rpm from the latest git right?!, you should use rpm i gave you) so this is due to partly developed/committed feature, if you'll build new rpm now (from the git) and reinstall it (don't forget removing the old one first cause both rpms will have same version) it will work, in future please try to avoid installing non officially released tarballs.
[oVirt shell (connected)]# delete host "72b4107c-679d-11e1-9302-000c29cfd59e" error: failed locating type async
what's the correct syntax for deleting a host?
- David
-- Michael Pasternak RedHat, ENG-Virtualization R&D

On 03/07/2012 08:56 AM, Michael Pasternak wrote:
Hi David,
On 03/07/2012 12:08 AM, Li, David wrote:
Hi Michael,
Now I could create a host but couldn't delete it.
This is because you using not official release of the cli, (you build cli rpm from the latest git right?!, you should use rpm i gave you)
the other option is your ovirt-engine is more advanced than cli, anyway this is one of the risks to be taken when building rpms directly from the latest git, at the moment I'm working to finalise next snapshot and will ping you when official tarballs will be available.
so this is due to partly developed/committed feature,
if you'll build new rpm now (from the git) and reinstall it (don't forget removing the old one first cause both rpms will have same version) it will work,
in future please try to avoid installing non officially released tarballs.
[oVirt shell (connected)]# delete host "72b4107c-679d-11e1-9302-000c29cfd59e" error: failed locating type async
what's the correct syntax for deleting a host?
- David
-- Michael Pasternak RedHat, ENG-Virtualization R&D

Hi Michael, Do I need to reinstall the SDK as well? In general if I start from scrach, is the right order of installation like: engine->sdk->cli? - David ________________________________________ From: Michael Pasternak [mpastern@redhat.com] Sent: Tuesday, March 06, 2012 10:56 PM To: Li, David Cc: users@ovirt.org Subject: Re: [Users] adding host with ovirt-engine-cli Hi David, On 03/07/2012 12:08 AM, Li, David wrote:
Hi Michael,
Now I could create a host but couldn't delete it.
This is because you using not official release of the cli, (you build cli rpm from the latest git right?!, you should use rpm i gave you) so this is due to partly developed/committed feature, if you'll build new rpm now (from the git) and reinstall it (don't forget removing the old one first cause both rpms will have same version) it will work, in future please try to avoid installing non officially released tarballs.
[oVirt shell (connected)]# delete host "72b4107c-679d-11e1-9302-000c29cfd59e" error: failed locating type async
what's the correct syntax for deleting a host?
- David
-- Michael Pasternak RedHat, ENG-Virtualization R&D

On 03/07/2012 04:49 PM, Li, David wrote:
Hi Michael,
Do I need to reinstall the SDK as well?
yes.
In general if I start from scrach, is the right order of installation like: engine->sdk->cli?
yep, but please hold on, I'm about to do few important changes on server side, I'll let you know when you can pull the code.
- David
-- Michael Pasternak RedHat, ENG-Virtualization R&D

Hi Michael, I have a storagedomain that was created along with the engine. It's in unattached state. When I tried to use cli to activate, I got the error: [oVirt shell (connected)]# action storagedomain "iso" --datacenter-identifier "c479b8b5-1c43-4421-a68d-01f9ceebfb06" activate error: syntax error What's the correct syntax? - David ________________________________________ From: Michael Pasternak [mpastern@redhat.com] Sent: Wednesday, March 07, 2012 7:04 AM To: Li, David Cc: users@ovirt.org Subject: Re: [Users] adding host with ovirt-engine-cli On 03/07/2012 04:49 PM, Li, David wrote:
Hi Michael,
Do I need to reinstall the SDK as well?
yes.
In general if I start from scrach, is the right order of installation like: engine->sdk->cli?
yep, but please hold on, I'm about to do few important changes on server side, I'll let you know when you can pull the code.
- David
-- Michael Pasternak RedHat, ENG-Virtualization R&D

Hi David, On 03/10/2012 02:42 AM, Li, David wrote:
Hi Michael,
I have a storagedomain that was created along with the engine. It's in unattached state. When I tried to use cli to activate, I got the error:
[oVirt shell (connected)]# action storagedomain "iso" --datacenter-identifier "c479b8b5-1c43-4421-a68d-01f9ceebfb06" activate error: syntax error
if you'll take a look on help for the /action/ command (help action), the syntax is /action <type> <id> <action> [object identifiers] [attribute options]/ i.e it should be: action storagedomain "iso" activate --datacenter-identifier "c479b8b5-1c43-4421-a68d-01f9ceebfb06" note: command will always start as /<type> <id> <action>/ and then command options.
What's the correct syntax?
- David ________________________________________ From: Michael Pasternak [mpastern@redhat.com] Sent: Wednesday, March 07, 2012 7:04 AM To: Li, David Cc: users@ovirt.org Subject: Re: [Users] adding host with ovirt-engine-cli
On 03/07/2012 04:49 PM, Li, David wrote:
Hi Michael,
Do I need to reinstall the SDK as well?
yes.
In general if I start from scrach, is the right order of installation like: engine->sdk->cli?
yep, but please hold on, I'm about to do few important changes on server side, I'll let you know when you can pull the code.
- David
--
Michael Pasternak RedHat, ENG-Virtualization R&D
-- Michael Pasternak RedHat, ENG-Virtualization R&D

BTW don't forget to attach the storagedomain do datacenter before activating it. On 03/11/2012 09:12 AM, Michael Pasternak wrote:
Hi David,
On 03/10/2012 02:42 AM, Li, David wrote:
Hi Michael,
I have a storagedomain that was created along with the engine. It's in unattached state. When I tried to use cli to activate, I got the error:
[oVirt shell (connected)]# action storagedomain "iso" --datacenter-identifier "c479b8b5-1c43-4421-a68d-01f9ceebfb06" activate error: syntax error
if you'll take a look on help for the /action/ command (help action), the syntax is /action <type> <id> <action> [object identifiers] [attribute options]/ i.e it should be:
action storagedomain "iso" activate --datacenter-identifier "c479b8b5-1c43-4421-a68d-01f9ceebfb06"
note: command will always start as /<type> <id> <action>/ and then command options.
What's the correct syntax?
- David ________________________________________ From: Michael Pasternak [mpastern@redhat.com] Sent: Wednesday, March 07, 2012 7:04 AM To: Li, David Cc: users@ovirt.org Subject: Re: [Users] adding host with ovirt-engine-cli
On 03/07/2012 04:49 PM, Li, David wrote:
Hi Michael,
Do I need to reinstall the SDK as well?
yes.
In general if I start from scrach, is the right order of installation like: engine->sdk->cli?
yep, but please hold on, I'm about to do few important changes on server side, I'll let you know when you can pull the code.
- David
--
Michael Pasternak RedHat, ENG-Virtualization R&D
-- Michael Pasternak RedHat, ENG-Virtualization R&D
participants (3)
-
Itamar Heim
-
Li, David
-
Michael Pasternak