Bug 1346887 - Fail to edit vm's disk to bootable
Summary: Fail to edit vm's disk to bootable
Keywords:
Status: CLOSED DUPLICATE of bug 1346752
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Juan Hernández
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-15 14:52 UTC by sefi litmanovich
Modified: 2016-06-15 14:58 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-15 14:58:29 UTC
oVirt Team: Virt
Embargoed:
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)
engine log (396.35 KB, application/x-gzip)
2016-06-15 14:52 UTC, sefi litmanovich
no flags Details

Description sefi litmanovich 2016-06-15 14:52:34 UTC
Created attachment 1168412 [details]
engine log

Description of problem:

Failed to edit a vm's disk from bootable-false to true.
Tried to edit vm's disk with both api versions:

Version 3 - 
url:
https://{engine_url}/ovirt-engine/api/vms/{vm_id}/disks/{disk_id}

PUT body:
<disk>
<bootable>true</bootable>
</disk>

Version 4 - 

PUT body:
<disk_attachment>
<bootable>true</bootable>
</disk_attachment>

In both cases I get 400 rc with the error:
[Interface is required]

Did not find any further information on engine.log

Version-Release number of selected component (if applicable):
rhevm-4.0.0.2-0.1.el7ev.noarch

How reproducible:
so far re produced on 2 different envs

Steps to Reproduce:
1. Create a vm with a disk which is not bootable.
2. Wait until disk is up.
3. Try to edit the disk enable bootable option via API as described above

Actual results:
[Interface is required]

Expected results:
Action succeeds, disk is set to booatable.

Additional info:
2016-06-15 17:35:39,687 WARN  [org.ovirt.engine.core.bll.storage.disk.UpdateVmDiskCommand] (default task-8) [disks_update_d85d3afa-1402-4d92] Validation of action 'UpdateVmDisk' failed for user admin@internal-authz. Reasons: VAR__ACTION__
UPDATE,VAR__TYPE__DISK,VALIDATION_DISK_INTERFACE_NOT_NULL
2016-06-15 17:35:39,688 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-8) [] Operation Failed: [Interface is required]

Comment 1 Juan Hernández 2016-06-15 14:57:05 UTC

*** This bug has been marked as a duplicate of bug 1346752 ***

Comment 2 sefi litmanovich 2016-06-15 14:58:29 UTC

*** This bug has been marked as a duplicate of bug 1346752 ***


Note You need to log in before you can comment on or make changes to this bug.