[ovirt-users] ovirt-shell : Smart way to run a cmd WHEN another is finished?

Juan Hernández jhernand at redhat.com
Fri Apr 1 11:06:29 UTC 2016


On 04/01/2016 09:40 AM, Nicolas Ecarnot wrote:
> Hello,
> 
> I'd like to night-batch series of actions through some ovirt-shell scripts.
> Amongst those actions, some are taking a very long time and are treated 
> asynchronously by oVirt. (That may be exports, imports, snapshots, boot, 
> shutdown...)
> 
> Thus, after having send that long command, I've to find a way to know 
> when to send the next one.
> 
> I could script a kind of regular status check at determined interval, 
> but I was wondering if there is a smarter way? (because my dumb way 
> would imply for each check a connection. That looks heavy.)
>

Checking at intervals is the only reliable way. I'd also suggest you to
use one of the SDKs instead of ovirt-shell for this kind of complicated
task.

-- 
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.



More information about the Users mailing list