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

Bug 1410017

Summary: Audit log shows wrong disks' ids for disks with illegal Pass Discard
Product: [oVirt] ovirt-engine Reporter: Idan Shaby <ishaby>
Component: Backend.CoreAssignee: Idan Shaby <ishaby>
Status: CLOSED CURRENTRELEASE QA Contact: Kevin Alon Goldblatt <kgoldbla>
Severity: medium Docs Contact:
Priority: unspecified    
Version: futureCC: bugs, gklein, tnisan
Target Milestone: ovirt-4.1.0-betaFlags: rule-engine: ovirt-4.1+
tnisan: devel_ack+
Target Release: 4.1.0.2   
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-16 14:50:28 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 Idan Shaby 2017-01-04 08:42:50 UTC
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.

Comment 1 Kevin Alon Goldblatt 2017-02-23 15:17:03 UTC
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!