Re: [ovirt-users] API auto delete vms snapshot

2017-09-17 Thread Fred Rolland
Lionel hi, You should wait until the operation is done. Take a look at this example [1]. Regards, Fred [1] https://github.com/oVirt/ovirt-engine-sdk/blob/e4ef67041a639cddbae82b172572ac5c45217341/sdk/examples/vm_backup.py#L163 On Fri, Sep 15, 2017 at 5:28 PM, Lionel Caignec wrote: > Hi, > > i'

[ovirt-users] API auto delete vms snapshot

2017-09-15 Thread Lionel Caignec
Hi, i'm playing with ovirt sdk, to automatically manage snapshots. My script is for now very basic step 1) list all vm of cluster step 2) for each vm create a snapshot if needed step 3) for each vm delete oldest snapshot No problem for step 1 and 2. But step 3 is harder. If i launch snap remove