Re: [ovirt-users] oVirt API (4.0 and 4.1) not reporting vms running on a given storage domain

2018-03-02 Thread Luca 'remix_tj' Lorenzetto
Got it. I'm changing my code accordingly. Many thanks Luca Il 2 mar 2018 5:59 PM, "Ondra Machacek" ha scritto: > On 03/02/2018 05:24 PM, Luca 'remix_tj' Lorenzetto wrote: > >> On Fri, Mar 2, 2018 at 3:21 PM, Ondra Machacek >> wrote: >> >>> Hi, >>>

Re: [ovirt-users] oVirt API (4.0 and 4.1) not reporting vms running on a given storage domain

2018-03-02 Thread Ondra Machacek
On 03/02/2018 05:24 PM, Luca 'remix_tj' Lorenzetto wrote: On Fri, Mar 2, 2018 at 3:21 PM, Ondra Machacek wrote: Hi, As per documentation: http://ovirt.github.io/ovirt-engine-api-model/4.1/#services/storage_domain_vms That resource is used to list VMs on export storage

Re: [ovirt-users] oVirt API (4.0 and 4.1) not reporting vms running on a given storage domain

2018-03-02 Thread Luca 'remix_tj' Lorenzetto
On Fri, Mar 2, 2018 at 3:21 PM, Ondra Machacek wrote: > Hi, > > As per documentation: > > http://ovirt.github.io/ovirt-engine-api-model/4.1/#services/storage_domain_vms > > That resource is used to list VMs on export storage domain, not on data > domain. > > If you want to

Re: [ovirt-users] oVirt API (4.0 and 4.1) not reporting vms running on a given storage domain

2018-03-02 Thread Ondra Machacek
Hi, As per documentation: http://ovirt.github.io/ovirt-engine-api-model/4.1/#services/storage_domain_vms That resource is used to list VMs on export storage domain, not on data domain. If you want to find VMs using specific storage you may use following query:

[ovirt-users] oVirt API (4.0 and 4.1) not reporting vms running on a given storage domain

2018-03-01 Thread Luca 'remix_tj' Lorenzetto
Hello, i need to extract the list of the vms running on a given storage domain. Copying some code from ansible's ovirt_storage_vms_facts simplified my work but i stopped with a strange behavior: no vm is listed. I thought it was an issue with my code, but looking more in detail at api's i tried