Re: [ovirt-users] oVirt API (4.0 and 4.1) not reporting vms running on a given storage domain
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, >>> >>> 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-engine/api/vms?search=storage.name=nameofthestorage >>> >> >> Hi Ondra, >> >> thanks. So what's the purpose of the ovirt_storage_vms_facts, only >> working with export domains (which has been deprecated?) >> > > Mainly listing the unregistered VMs, so it works as export domain. > > >> Luca >> >> >> ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] oVirt API (4.0 and 4.1) not reporting vms running on a given storage domain
On 03/02/2018 05:24 PM, Luca 'remix_tj' Lorenzetto wrote: On Fri, Mar 2, 2018 at 3:21 PM, Ondra Machacekwrote: 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-engine/api/vms?search=storage.name=nameofthestorage Hi Ondra, thanks. So what's the purpose of the ovirt_storage_vms_facts, only working with export domains (which has been deprecated?) Mainly listing the unregistered VMs, so it works as export domain. Luca ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] oVirt API (4.0 and 4.1) not reporting vms running on a given storage domain
On Fri, Mar 2, 2018 at 3:21 PM, Ondra Machacekwrote: > 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-engine/api/vms?search=storage.name=nameofthestorage Hi Ondra, thanks. So what's the purpose of the ovirt_storage_vms_facts, only working with export domains (which has been deprecated?) Luca -- "E' assurdo impiegare gli uomini di intelligenza eccellente per fare calcoli che potrebbero essere affidati a chiunque se si usassero delle macchine" Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716) "Internet è la più grande biblioteca del mondo. Ma il problema è che i libri sono tutti sparsi sul pavimento" John Allen Paulos, Matematico (1945-vivente) Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] oVirt API (4.0 and 4.1) not reporting vms running on a given storage domain
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-engine/api/vms?search=storage.name=nameofthestorage On 03/01/2018 07:19 PM, Luca 'remix_tj' Lorenzetto wrote: 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 opening: ovirt-engine/api/storagedomains/52b661fe-609e-48f9-beab-f90165b868c4/vms And what i get is And this for all the storage domains available. Is there something wrong with the versions i'm running? Do i require some options in the query? I'm running RHV, so i can't upgrade to 4.2 yet Luca ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] oVirt API (4.0 and 4.1) not reporting vms running on a given storage domain
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 opening: ovirt-engine/api/storagedomains/52b661fe-609e-48f9-beab-f90165b868c4/vms And what i get is And this for all the storage domains available. Is there something wrong with the versions i'm running? Do i require some options in the query? I'm running RHV, so i can't upgrade to 4.2 yet Luca -- "E' assurdo impiegare gli uomini di intelligenza eccellente per fare calcoli che potrebbero essere affidati a chiunque se si usassero delle macchine" Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716) "Internet è la più grande biblioteca del mondo. Ma il problema è che i libri sono tutti sparsi sul pavimento" John Allen Paulos, Matematico (1945-vivente) Luca 'remix_tj' Lorenzetto, http://www.remixtj.net ,___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users