Bug 811118

Summary: [ovirt-engine-core] Error message is wrong when sending the wrong storage id. [TEXT]
Product: [Retired] oVirt Reporter: Kiril Nesenko <knesenko>
Component: ovirt-engine-coreAssignee: lpeer <lpeer>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: abaron, acathrow, amureini, dfediuck, dyasny, iheim, lpeer, mgoldboi, mlipchuk, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.3.4   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-12 07:36:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
logs none

Description Kiril Nesenko 2012-04-10 07:48:39 UTC
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:

Comment 3 Itamar Heim 2012-12-12 07:36:09 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.