Bug 1571851

Summary: Unplugged devices not written to OVF
Product: [oVirt] ovirt-engine Reporter: Arik <ahadas>
Component: BLL.VirtAssignee: Shmuel Melamud <smelamud>
Status: CLOSED WORKSFORME QA Contact: meital avital <mavital>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2.3CC: bugs
Target Milestone: ---   
Target Release: ---   
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: 2018-05-15 10:50:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Arik 2018-04-25 14:19:54 UTC
Description of problem:
It seems that unplugged devices are not being written to OVFs.
This needs to be investigated.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Create a VM with 2 disks.
2. Unplug one of the disks.
3. Create a VM snapshot.
4. Preview the snapshot.

Actual results:
The VM is missing the unplugged disk.

Expected results:
There should be a device for the unplugged disk.

Additional info:

Comment 1 Shmuel Melamud 2018-05-15 10:50:19 UTC
Cannot reproduce the bug. After creating a VM snapshot and previewing it the unplugged disk still exists along with plugged ones.

Also, manual investigation of the OVF files show that the unplugged disk is present in them, as follows:

<Section xsi:type="ovf:VirtualHardwareSection_Type">
...
    <Item>
        <rasd:Caption>VM-unplugged-disk_Disk1</rasd:Caption>
        ...
        <Type>disk</Type>
        <Device>disk</Device>
        <rasd:Address />
        <BootOrder>1</BootOrder>
        <IsPlugged>false</IsPlugged>
        <IsReadOnly>false</IsReadOnly>
        <Alias />
     </Item>
...
</Section>