<div dir="ltr"><div><div><div><div><div><div><div>I have some troubles starting a VM with cloud-init via the ovirtsdk4.<br><br></div><snippet><br>vm = vms_service.list(search=vm_name)[0]<br>vm_service = vms_service.vm_service(<a href="http://vm.id">vm.id</a>)<br><br>vm_service.start(<br> types.Action(<br> use_cloud_init=True,<br> ),<br> types.Vm(<br> types.Initialization(<br> regenerate_ssh_keys=True,<br> host_name=vm_fqdn,<br> nic_configurations=[<br> types.NicConfiguration(<br> boot_protocol=types.BootProtocol.STATIC,<br> name='eth0',<br> on_boot=True,<br> ip=types.Ip(<br> address=vm_address,<br> netmask=vm_netmask,<br> gateway=vm_gateway,<br> ),<br> ),<br> ],<br> ),<br> ),<br>)<br></div></snippet><br><br></div>Which will result in:<br>Traceback (most recent call last):<br> File "./create_vm.py", line 94, in <module><br> gateway=vm_gateway,<br> File "/usr/lib64/python2.7/site-packages/ovirtsdk4/services.py", line 18655, in start<br> Writer.write_boolean(writer, 'async', async)<br> File "/usr/lib64/python2.7/site-packages/ovirtsdk4/writer.py", line 52, in write_boolean<br> return writer.write_element(name, Writer.render_boolean(value))<br> File "/usr/lib64/python2.7/site-packages/ovirtsdk4/writer.py", line 44, in render_boolean<br> raise TypeError('The \'value\' parameter must be a boolean')<br>TypeError: The 'value' parameter must be a boolean<br><br></div>To be honest I don't have clue where it's going wrong or where to look. From what I can see there are two values which must be a boolean and they are.<br><br></div>Does anybody know what's going wrong or has a working snippet?<br><br></div>Thanks,<br></div>Renout<br></div>