Description of problem: When adding a cloned vm from a template, the audit log shows wrong disks' ids for the ones with illegal Pass Discard values. Version-Release number of selected component (if applicable): d187d588364417cd93c81e5b7c2d5f16f9ac29fb How reproducible: 100% Steps to Reproduce: 1. Create a vm and add a disk with Pass Discard enabled. 2. Create a template from the vm. 3. Create a vm from the template using the "Clone" storage allocation, when the target storage domain is a block domain that does not support discard. Actual results: The wrong disks' ids are logged in the audit log. Expected results: Should be the vm disks' ids and not the template ones.
Verified with the following code: ------------------------------------- ovirt-engine-4.1.1-0.1.el7.noarch rhevm-4.1.1-0.1.el7.noarch vdsm-4.19.5-1.el7ev.x86_64 Verified with the following scenario: ------------------------------------------- Steps to Reproduce: 1. Create a vm and add a disk with Pass Discard enabled. 2. Create a template from the vm. 3. Create a vm from the template using the "Clone" storage allocation, when the target storage domain is a block domain that does not support discard. The audit log displays the correct disk id Moving to VERIFIED!