Created attachment 576416 [details] logs Description of problem: Trying to add a disk to VM from REST API and sending the wrong storage domain. Getting the following error message: from rest logs: 2012-04-09 15:42:20,124 - MainThread - vms - DEBUG - Response code is valid: [200, 201] 2012-04-09 15:42:20,125 - MainThread - vms - DEBUG - CREATE request content is -- url:https://10.35.97.13:8443/api/vms/b6b75b8d-9bf7-48e7-959b-8c9a5412f288/disks body:<disk><storage_domains><storage_domain id=' 2301584f-65f9-4103-8b6e-2983047e6720'/></storage_domains><size>2147483648</size><type>data</type><interface>ide</interface><format>cow</format><sparse>true</sparse></disk> 2012-04-09 15:42:20,374 - MainThread - vms - DEBUG - Response body for CREATE request is: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <fault> <reason>Operation Failed</reason> <detail>[Cannot add Virtual Machine Disk. The target Data Center does not contain the Virtual Machine Disk.]</detail> </fault> 2012-04-09 15:42:20,374 - MainThread - vms - ERROR - Response code is not valid, expected is: [200, 201, 202], actual is: 400 2012-04-09 15:42:20,375 - MainThread - vms - DEBUG - GET request content is -- url:https://10.35.97.13:8443/api/vms/b6b75b8d-9bf7-48e7-959b-8c9a5412f288/disks 2012-04-09 15:42:20,493 - MainThread - vms - DEBUG - Response body for GET request is: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <disks> Version-Release number of selected component (if applicable): si1 How reproducible: Always Steps to Reproduce: 1. Try to add a disk to vm and send a wrong storage domain 2. 3. Actual results: Expected results: Error message should be clear to user Additional info:
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.