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?
Comment 2Michael Pasternak
2012-09-19 09:27:21 UTC
(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)
Comment 3Michael Pasternak
2012-10-02 20:50:59 UTC