Bug 1364783

Summary: V3 API | Attach disk to vm with active=true isn't working
Product: [oVirt] ovirt-engine Reporter: Raz Tamir <ratamir>
Component: RestAPIAssignee: Tal Nisan <tnisan>
Status: CLOSED CURRENTRELEASE QA Contact: Raz Tamir <ratamir>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.0.2.4CC: acanan, amureini, bugs, eshenitz, gklein, mgoldboi, mperina, oourfali, sbonazzo, ylavi
Target Milestone: ovirt-4.0.2Keywords: Automation, AutomationBlocker, Regression
Target Release: 4.0.2.6Flags: rule-engine: ovirt-4.0.z+
rule-engine: blocker+
ylavi: planning_ack+
oourfali: devel_ack+
acanan: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-12 14:21:37 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:
Embargoed:
Attachments:
Description Flags
engine and vdsm logs none

Description Raz Tamir 2016-08-07 12:11:51 UTC
Created attachment 1188374 [details]
engine and vdsm logs

Description of problem:
When attaching a disk to vm using REST API (v3) and setting the <active> property to 'true' the operation will succeed but the disk will remain inactive


Version-Release number of selected component (if applicable):
ovirt-engine-4.0.2.4-0.1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Attach a disk to vm and set <active>true</active>
2.
3.

Actual results:
The disk will attach to vm but will be inactive

Expected results:


Additional info:
in logs, starting from 2016-08-07 15:09:09,951

Comment 1 Oved Ourfali 2016-08-08 05:33:16 UTC
Currently targeting to 4.0.4 as I think this would be enough.
Moran?

Comment 2 Eyal Shenitzky 2016-08-08 08:55:35 UTC
Additionally, 
When updating a disk that attached to vm using REST API (v3) and setting the <active> property to 'true' the operation will succeed but the disk will remain inactive.

Comment 3 Raz Tamir 2016-08-11 14:35:03 UTC
Verified on ovirt-engine-4.0.2.6-0.1.el7ev.noarch