Bug 781979 - [rhevm-reports] - ETL copies the templates images as disks
Summary: [rhevm-reports] - ETL copies the templates images as disks
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-dwh
Version: 3.0.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: ---
Assignee: Yaniv Lavi
QA Contact: David Botzer
URL:
Whiteboard: infra
: 848045 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-16 09:00 UTC by David Botzer
Modified: 2016-02-10 19:27 UTC (History)
8 users (show)

Fixed In Version: SI15 - rhevm-dwh-3.1.0-9.el6ev.noarch.rpm
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-04 19:58:39 UTC
oVirt Team: Infra
Target Upstream Version:


Attachments (Terms of Use)
ETL-History_Tables (140.36 KB, image/png)
2012-01-16 09:00 UTC, David Botzer
no flags Details

Description David Botzer 2012-01-16 09:00:17 UTC
Created attachment 555451 [details]
ETL-History_Tables

Description of problem:
in a setup where the vm has only 1 disk I see in the configuration history & vm_disk..._history tables more than 1 disk.
These disks belong to the template images - the disks are extracted by image id

Version-Release number of selected component (if applicable):
IC154, reports3.0.2-2

How reproducible:
Always

Steps to Reproduce:
1.Create setup with 1Host 1VM - 1Disk 1NIC
2.Run the ETL for a day
3.check the rhevm_history tables for vm_disk...
  
Actual results:
The following tables on rhevm_history are keeping info on template images as disks
vm_disk_configuration, vm_disk_daily_history, vm_disk_hourly_history, vm_disk_samples_history

Expected results:
should have record for the 1 disk of the vm

Additional info:

Comment 1 Yaniv Lavi 2012-01-16 11:55:15 UTC
I checked and this is indeed the case.
This is a Z stream candidate to my opinion. 



Yaniv

Comment 2 David Botzer 2012-01-18 08:02:53 UTC
Seems that issue starts at the RHEVM DB,

in the rhevm DB the vm_interface_configuration & vm_disk_confiuguration info is kept for both VMs & Templates

Thus the ETL copies the wrong data into history DB, a non-relevant info (the templates as NICs & Disks)

The issue is that the information of both VMs & Templates is kept
together at the same tables, under rhevm DB

Comment 3 Yaniv Lavi 2012-01-24 16:45:59 UTC
This was fixed upstream in patch:
http://gerrit.ovirt.org/1234



Yaniv

Comment 5 David Botzer 2012-08-12 12:03:20 UTC
3.1/si13.2
I have 1Host & 1 VM (and 1 template)
I see two pairs of VM disks in v3_1_vm_disk_configuration_view
Please advise,

Comment 6 Yaniv Lavi 2012-08-19 12:28:56 UTC
Fail QA this and I'll take a look.


Yaniv

Comment 7 David Botzer 2012-08-19 12:32:26 UTC
Not Fixed 3.1/si14
should remove template disks from  v3_1_vm_disk_configuration_view

Comment 8 Yaniv Lavi 2012-08-19 12:33:44 UTC
*** Bug 848045 has been marked as a duplicate of this bug. ***

Comment 10 David Botzer 2012-08-29 08:50:14 UTC
Not Fixed 3.1/si15
should remove template disks from  v3_1_latest_vm_disk_configuration_view
Not Fixed 3.1/si15

Comment 11 David Botzer 2012-08-29 10:57:46 UTC
Fixed 3.1/si15
remove template disks from  v3_1_latest_vm_disk_configuration_view
Fixed 3.1/si15


Note You need to log in before you can comment on or make changes to this bug.