Bug 1798881

Summary: Cannot attach new disk to VM using VirtIO-SCSI interface
Product: [oVirt] ovirt-engine Reporter: Yosi Ben Shimon <ybenshim>
Component: BLL.StorageAssignee: Tal Nisan <tnisan>
Status: CLOSED DUPLICATE QA Contact: Avihai <aefrat>
Severity: high Docs Contact:
Priority: high    
Version: 4.4.0CC: bugs, michal.skrivanek
Target Milestone: ---Keywords: Automation, AutomationBlocker, Regression
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-06 11:11:43 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:

Description Yosi Ben Shimon 2020-02-06 08:33:33 UTC
Description of problem:
Failed to add a new disk to VM using VirtIO-SCSI interface.
I tried both UI and REST-API.
The error is:
"Cannot attach Virtual Disk. VirtIO-SCSI is disabled for the VM"

If I try to create the VM along with the disk, the VM is created but without any disks. The error pops up just after the VM was created.

Version-Release number of selected component (if applicable):
ovirt-engine-4.4.0-0.19.master.el7.noarch
vdsm-4.40.2-1.el8ev.x86_64

How reproducible:
100%

Steps to Reproduce (using UI):
1. Create a new VM with a disk (Set the disk interface to be "VirtIO-SCSI")
2. 
3.

Steps to Reproduce (using REST-API):
1. Create a new disk (can be using the UI)
2. POST request to:
https://<engine>/ovirt-engine/api/vms/<vm_id>/diskattachments

Request body:

<disk_attachment>
    <active>true</active>
    <interface>virtio_scsi</interface>
    <disk id="<disk_id>">
        <read_only>false</read_only>
    </disk>
</disk_attachment>

Actual results:
Failed to attach the disk to the VM

Expected results:
The disk should be attached successfully

Additional info:

Comment 1 Avihai 2020-02-06 10:51:55 UTC
Very basic flow indeed which potentially hit many automation TCs using virtio-scsi interface,setting as automation blocker.

Comment 2 Michal Skrivanek 2020-02-06 11:11:43 UTC
reported and fixed already

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