Description of problem: In /api?rsdl is missing delete method for removing vm from given storage domain. I assume it leads to missing delete() method on instance of StorageDomainVM class in ovirtsdk. Version-Release number of selected component (if applicable): rhevm-restapi-3.1.0-16.el6ev.noarch How reproducible: Always Steps to Reproduce: 1. Take a look to api?rsdl and search for /api/storagedomains/{storagedomain:id}/vms/{vm:id} rel="delete" or 1. try to remove vm from storage domain using ovirtsdk Actual results: (Pdb) type(vmObj) <class 'ovirtsdk.infrastructure.brokers.StorageDomainVM'> (Pdb) vmObj.delete() *** AttributeError: 'VM' object has no attribute 'delete'
This was deprecated in 3.1 seeing as a VM is no longer limited to a specific storage domain. You need to go through /api/vms/... Michael, why do we even have 'vms' under storage domains?
(In reply to comment #1) > This was deprecated in 3.1 seeing as a VM is no longer limited to a specific > storage domain. jakub refers to export domain ... > > You need to go through /api/vms/. > > Michael, why do we even have 'vms' under storage domains? cause otherwise you won't be able to import it (vms shown only under export domain)
http://gerrit.ovirt.org/#/c/8318/
https://gerrit.eng.lab.tlv.redhat.com/2433
same was true for template
verified in si20