[Users] adding host with ovirt-engine-cli

Michael Pasternak mpastern at redhat.com
Tue Mar 6 07:38:51 UTC 2012


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