[Users] Fwd: ovirt cli commands / script wont exit the shell

Yaniv Kaul ykaul at redhat.com
Mon Oct 8 21:26:21 UTC 2012


On 10/08/2012 11:17 PM, Alex Leonhardt wrote:
> Aha - cool - thanks! :)
>
> Now, I was also looking at the REST API - is there a simple shell 
> based way to read / query the resulting XML ? Or would you suggest to 
> write python scripts to e.g. start/stop instance, get a list of VMs / 
> their IDs, etc. ?

If you are already planning on Python, why not use the SDK instead of 
doing REST?
some examples @ http://wiki.ovirt.org/wiki/Testing/PythonApi
Y.

>
> I'm not a great programmer so rather look for something already 
> existing rather than me fiddling for a comparable looong time ;)
>
> Alex
>
>
> On 10/07/2012 11:31 AM, Michael Pasternak wrote:
>> Hi Alex,
>>
>> This is a bug [1], fix available in 3.2.0.1, latest available cli version
>> is 3.2.0.5.
>>
>>
>> [1]https://bugzilla.redhat.com/show_bug.cgi?id=850597
>>
>>> -------- Original Message --------
>>> Subject:     [Users] ovirt cli commands / script wont exit the shell
>>> Date:     Sat, 06 Oct 2012 20:44:44 +0100
>>> From:     Alex Leonhardt<alex.tuxx at gmail.com>
>>> To:users at ovirt.org
>>>
>>>
>>>
>>> hi there,
>>>
>>> i'm playing with the Ovirt CLI and started to script a few things, but
>>> it seems as if the console stays connected when I execute the commands -
>>> I even included a "exit" and tried "disconnect", but nothing would do it
>>> - any hints / clues ?
>>>
>>> the script is very simple :
>>>
>>> ---
>>> action vm vm2 start
>>> exit
>>> ---
>>>
>>> or
>>>
>>> ---
>>> action vm vm1 stop
>>> disconnect
>>> exit
>>> ---
>>>
>>> I always end up back here :
>>>
>>> ###
>>>
>>>    ==========================================
>>>    >>> connected to oVirt manager 3.1.0.0 <<<
>>>    ==========================================
>>>
>>> [oVirt shell (connected)]# action vm vm2 start
>>>
>>>
>>> status-state: complete
>>>
>>> [oVirt shell (connected)]# exit
>>>
>>> [oVirt shell (connected)]#
>>>
>>> ###
>>>
>>> Thanks
>>> Alex
>>>
>>>
>>>
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20121008/472339c0/attachment-0001.html>


More information about the Users mailing list