[Users] adding host with ovirt-engine-cli

Michael Pasternak mpastern at redhat.com
Sun Mar 11 07:12:51 UTC 2012


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 at redhat.com]
> Sent: Wednesday, March 07, 2012 7:04 AM
> To: Li, David
> Cc: users at 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



More information about the Users mailing list