[Users] adding host with ovirt-engine-cli

Li, David LiD at cloudshield.com
Tue Mar 6 22:08:03 UTC 2012


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 at redhat.com]
Sent: Monday, March 05, 2012 11:38 PM
To: Li, David
Cc: users at 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



More information about the Users mailing list