Re: [ovirt-users] [PySDK v3] Choose storage domain

2017-01-24 Thread Juan Hernández
On 01/24/2017 01:18 PM, Nicolas Ecarnot wrote: > Juan, > > Thank you very much for your help, this is working. > > Some comments below. > > Le 24/01/2017 à 11:04, Juan Hernández a écrit : >> In order to do that you need to specify that you want to clone the disks >> of the template, and for each

Re: [ovirt-users] [PySDK v3] Choose storage domain

2017-01-24 Thread Nicolas Ecarnot
Le 24/01/2017 à 13:18, Nicolas Ecarnot a écrit : OK, just one second before sending this e-mail, I made a quick test with the template object and it is working anyway. Sorry for the noise, but... No, actually, it wasn't working. I need to start from the api object to reach the actual disks.

Re: [ovirt-users] [PySDK v3] Choose storage domain

2017-01-24 Thread Nicolas Ecarnot
Juan, Thank you very much for your help, this is working. Some comments below. Le 24/01/2017 à 11:04, Juan Hernández a écrit : In order to do that you need to specify that you want to clone the disks of the template, and for each disk you need to specify the storage domain where you want to cr

Re: [ovirt-users] [PySDK v3] Choose storage domain

2017-01-24 Thread Juan Hernández
On 01/24/2017 10:13 AM, Nicolas Ecarnot wrote: > Hello, > > When trying to create a VM by cloning a template, I found out I couldn't > choose the target storage domain : > > [...] > vm_storage_domain = api.storagedomains.get(name=storage_domain) > vm_params = params.VM(name=vm_name, >

[ovirt-users] [PySDK v3] Choose storage domain

2017-01-24 Thread Nicolas Ecarnot
Hello, When trying to create a VM by cloning a template, I found out I couldn't choose the target storage domain : [...] vm_storage_domain = api.storagedomains.get(name=storage_domain) vm_params = params.VM(name=vm_name, memory=vm_memory, cluster