Bug 1434479

Summary: shared disk is not kept in snapshot
Product: [oVirt] ovirt-engine Reporter: Jiri Belka <jbelka>
Component: BLL.StorageAssignee: Allon Mureinik <amureini>
Status: CLOSED DUPLICATE QA Contact: Raz Tamir <ratamir>
Severity: low Docs Contact:
Priority: unspecified    
Version: ---CC: 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: 2017-03-22 04:33:50 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 Jiri Belka 2017-03-21 15:24:32 UTC
Description of problem:

It seems a VM snapshot of a VM having shared disk loses this shared disk. Discovered while doing 'Clone' from a snapshot of a VM with 2 disks and 1 shared disk.


engine=# select * from vms_for_disk_view;
    array_vm_names    |              device_id               | entity_type 
----------------------+--------------------------------------+-------------
 {vm2-test-el7-1}     | 469f384d-ba48-424d-b1c6-9c60b90ca3bb | VM
 {vm2-test-el7-1}     | 50e515c5-22c0-435c-8051-1b0b2fecaca7 | VM
 {vm2-test-w2k12r2-1} | a88bb9d9-629f-47a3-8031-037411ab9f3e | VM
 {vm2-test-el7-1}     | 496e914f-ab9b-4cee-ad6a-e9a5b1162ac9 | VM
 {vm2-test-w2k12r2-1} | 5a90305e-75b1-4a74-ac88-6a31896c43cd | VM
 {tttt}               | 808ee189-5b44-4d18-af7a-b4e2bf792cd3 | VM
 {tttt}               | 90d59911-c5fc-46da-8f26-c4d99d23296d | VM
 {vm2-test-w2k12r2-1} | 6de2a8a5-e87e-4952-bf1a-9f3ef6992f02 | VM
(8 rows)

'tttt' is VM created via 'Clone' of vm2-test-el7-1 snapshot.

Version-Release number of selected component (if applicable):
rhevm-3.6.10.2-0.2.el6.noarch

How reproducible:
100%

Steps to Reproduce:
1. create a vm with 2 virtio* disks and 1 shared r/o disk
2. run vm
3. create snapshot
4. clone snapshot for new vm

Actual results:
new vm doesn't have all 3 disks, ie. it loses shared disk

Expected results:
should have 3 disks

Additional info:

Comment 2 Allon Mureinik 2017-03-22 04:33:50 UTC

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