Hello,<div><br></div><div>To add a disk to VM we use the following :</div><div><br></div><div><pre style="font-family:monospace,Courier;padding:1em;border:1px dashed rgb(47,111,171);background-color:rgb(249,249,249);line-height:1.1em;font-size:13px">
<span style="color:rgb(0,0,0)">api.vms.get(VM_NAME).disks.add(params.Disk(storage_domains=params.StorageDomains(storage_domain=[api.storagedomains.get(STORAGE_NAME)]),
size=512*MB,
</span><font color="#ff0000"># type_='system', - disk type is deprecated</font><font color="#000000">
status=None,
interface='virtio',
format='cow',
sparse=True,
bootable=True))</font></pre></div><div><div>but the <font color="#0000ff">type_</font> attribute is deprecated , so I got the following exception :</div><div><br></div><div>
<div>Failed to add disk</div><div><br></div><div>status: 400</div><div>reason: Bad Request</div><div>detail: Cannot add Virtual Machine Disk. Disk 1 already marked as system</div></div><div><br></div><div>Now , if I try giving disk_type='Data' on GUI of RHEVM then it will be added to VM.</div>
<div><br></div><div><br></div><div>I want to know from which ovirt-sdk version you have deprecated attribute disk_type ?</div><div><br></div><div>I am currently using <font color="#0000ff">ovirt-engine-sdk-3.1.0.3-1.el6.noarch.rpm</font> and I didn't find <font color="#0000ff">type_</font> attribute using this rpm !</div>
<div><br></div><div>How I can extend the disk size of a existing VM in RHEVM ?</div><div><br></div><div>Help me !</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Regards ,</div><div>Romil Gupta</div>
<div><br></div><br>
</div>