Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1455505

Summary: Template created from snapshot don't have disk
Product: [oVirt] ovirt-engine Reporter: Israel Pinto <ipinto>
Component: BLL.StorageAssignee: Tal Nisan <tnisan>
Status: CLOSED DUPLICATE QA Contact: Israel Pinto <ipinto>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1.2.2CC: bugs
Target Milestone: ovirt-4.1.3Keywords: Regression
Target Release: ---Flags: amureini: ovirt-4.1?
ipinto: planning_ack?
ipinto: devel_ack?
ipinto: 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: 2017-05-25 14:43:38 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
logs none

Description Israel Pinto 2017-05-25 11:34:05 UTC
Created attachment 1282228 [details]
logs

Description of problem:
While creating template from snapshot. The template don't have disk.

Version-Release number of selected component (if applicable):
RHVM Version: 4.1.2.2-0.1.el7
Host:
OS Version:RHEL - 7.3 - 7.el7
Kernel Version:3.10.0 - 514.16.1.el7.x86_64
KVM Version:2.6.0 - 28.el7_3.9
LIBVIRT Version:libvirt-2.0.0-10.el7_3.5
VDSM Version:vdsm-4.19.12-1.el7ev
SPICE Version:0.12.4 - 20.el7_3


How reproducible:
All the time

Steps to Reproduce:
1. Create snapshot with/without memory
2. From the snapshot make template
3. Check disk on template

Actual results:
No disk

Expected results:
Template with disk

Additional info:
Engine log:
2017-05-25 13:22:46,732+03 INFO  [org.ovirt.engine.core.bll.storage.disk.CreateAllTemplateDisksFromSnapshotCommand] (default task-4) [d8be71f7-4f58-4f2c-be1e-ea442f7b5e90] Running command: CreateAllTemplateDisksFromSnapshotCommand internal: true.
2017-05-25 13:22:46,941+03 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-4) [d8be71f7-4f58-4f2c-be1e-ea442f7b5e90] EVENT_ID: USER_ADD_VM_TEMPLATE(48), Correlation ID: d8be71f7-4f58-4f2c-be1e-ea442f7b5e90, Call Stack: null, Custom Event ID: -1, Message: Creation of Template test_1 from VM boot_test was initiated by admin@internal-authz.
2017-05-25 13:22:47,057+03 INFO  [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer] (DefaultQuartzScheduler1) [] VM 'e5714f28-f12d-46f6-b7ee-0f6cbc1a7717'(boot_test) was unexpectedly detected as 'Up' on VDS '6201ba3e-056b-47a3-a96f-3e592a76f5dd'(host_mixed_1) (expected on 'null')
2017-05-25 13:22:48,053+03 INFO  [org.ovirt.engine.core.bll.SerialChildCommandsExecutionCallback] (DefaultQuartzScheduler7) [d8be71f7-4f58-4f2c-be1e-ea442f7b5e90] Command 'AddVmTemplateFromSnapshot' id: 'e7c7f911-73e8-4ae3-a452-348c341a5d77' child commands '[580a1c54-50fe-4932-be0d-9eeec68dac62]' executions were completed, status 'SUCCEEDED'
2017-05-25 13:22:49,633+03 INFO  [org.ovirt.engine.core.bll.AddVmTemplateFromSnapshotCommand] (DefaultQuartzScheduler3) [d8be71f7-4f58-4f2c-be1e-ea442f7b5e90] Ending command 'org.ovirt.engine.core.bll.AddVmTemplateFromSnapshotCommand' successfully.
2017-05-25 13:22:49,641+03 INFO  [org.ovirt.engine.core.vdsbroker.SetVmStatusVDSCommand] (DefaultQuartzScheduler3) [d8be71f7-4f58-4f2c-be1e-ea442f7b5e90] START, SetVmStatusVDSCommand( SetVmStatusVDSCommandParameters:{runAsync='true', vmId='e5714f28-f12d-46f6-b7ee-0f6cbc1a7717', status='Down', exitStatus='Normal'}), log id: 1b141b0d
2017-05-25 13:22:49,645+03 INFO  [org.ovirt.engine.core.vdsbroker.SetVmStatusVDSCommand] (DefaultQuartzScheduler3) [d8be71f7-4f58-4f2c-be1e-ea442f7b5e90] FINISH, SetVmStatusVDSCommand, log id: 1b141b0d
2017-05-25 13:22:49,661+03 INFO  [org.ovirt.engine.core.bll.AddVmTemplateFromSnapshotCommand] (DefaultQuartzScheduler3) [d8be71f7-4f58-4f2c-be1e-ea442f7b5e90] Lock freed to object 'EngineLock:{exclusiveLocks='[db6d2bf5-a793-4244-86af-4837383bafb4=<DISK, ACTION_TYPE_FAILED_TEMPLATE_IS_BEING_CREATED>, test_1=<TEMPLATE_NAME, ACTION_TYPE_FAILED_TEMPLATE_NAME_IS_USED>, 7c2c6e89-1494-46a3-8d38-f60cb703db9a=<TEMPLATE, ACTION_TYPE_FAILED_TEMPLATE_IS_BEING_CREATED>]', sharedLocks='[e5714f28-f12d-46f6-b7ee-0f6cbc1a7717=<VM, ACTION_TYPE_FAILED_OBJECT_LOCKED>]'}'
2017-05-25 13:22:49,683+03 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (DefaultQuartzScheduler3) [d8be71f7-4f58-4f2c-be1e-ea442f7b5e90] EVENT_ID: USER_ADD_VM_TEMPLATE_FINISHED_SUCCESS(51), Correlation ID: d8be71f7-4f58-4f2c-be1e-ea442f7b5e90, Call Stack: null, Custom Event ID: -1, Message: Creation of Template test_1 from VM boot_test has been completed.

Comment 1 Allon Mureinik 2017-05-25 14:43:38 UTC

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