Re: [ovirt-users] cloud_init not apply when v create from API

2016-03-30 Thread Arpit Makhiyaviya
Thanks, that's works for me . On Wed, Mar 30, 2016 at 2:21 PM, Juan Hernández wrote: > On 03/30/2016 08:44 AM, Arpit Makhiyaviya wrote: > > > > I used *Version: 3.6.3.4-1.el7.centos* of ovirt engine.I already tried > > following xml request with run VM but still its not

Re: [ovirt-users] cloud_init not apply when v create from API

2016-03-30 Thread Juan Hernández
On 03/30/2016 08:44 AM, Arpit Makhiyaviya wrote: > > I used *Version: 3.6.3.4-1.el7.centos* of ovirt engine.I already tried > following xml request with run VM but still its not working. > From admin panel of oVirt Its completely working but I found issue only > with oVirt API (VM start but

Re: [ovirt-users] cloud_init not apply when v create from API

2016-03-30 Thread Arpit Makhiyaviya
I used *Version: 3.6.3.4-1.el7.centos* of ovirt engine.I already tried following xml request with run VM but still its not working. >From admin panel of oVirt Its completely working but I found issue only with oVirt API (VM start but cloudinit data not accepted). *XML Request : * false

Re: [ovirt-users] cloud_init not apply when v create from API

2016-03-29 Thread Juan Hernández
On 03/29/2016 03:07 PM, Arpit Makhiyaviya wrote: > Thanks for quick response. > we already knew this and we are passing following xml when calling Start > action. > What version of the engine are you using exactly? This is a known bug. The "cloud_init" element is ignored. See here for details:

Re: [ovirt-users] cloud_init not apply when v create from API

2016-03-29 Thread Arpit Makhiyaviya
Thanks for quick response. we already knew this and we are passing following xml when calling Start action. vm-cloud-init-restapi root ssh-rsa restapi-cloud-init-ssh-key root@localdomain

Re: [ovirt-users] cloud_init not apply when v create from API

2016-03-29 Thread Renout Gerrits
In the more recent versions you have to use 'use_cloud_init=True' in the api, which isn't described in most documentation yet. Maybe thats the reason it isn't working? Here's a working snippet: vm = api.vms.get(name=vm_name) action = params.Action( use_cloud_init=True, vm=params.VM(

[ovirt-users] cloud_init not apply when v create from API

2016-03-29 Thread Arpit Makhiyaviya
Hello, we are using ovirt api with json data format. we have create vm from template and i want to set ip,macaddress,user and password for that we are using cloud_init for that we it can't set any options. Regards, *Arpit Makhiyaviya* Software Engineer +91-79-40038284 +91-971-437-6669