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

Bug 922499

Summary: [rhevm-dwh] - History DB - Storage Domain Status "Mixed" is not saved correctly (in statistics_storage_domains_samples)
Product: Red Hat Enterprise Virtualization Manager Reporter: David Botzer <dbotzer>
Component: ovirt-engine-dwhAssignee: Yaniv Lavi <ylavi>
Status: CLOSED ERRATA QA Contact: David Botzer <dbotzer>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, bazulay, dyasny, iheim, oramraz, pstehlik, Rhev-m-bugs, ykaul, zdover
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: sf13 Doc Type: Bug Fix
Doc Text:
Previously, the database incorrectly stored "Mixed" databases (3) as "Inactive" (2). The webadmin portal displayed the correct value, but the value was incorrect in the history database in the statistics_storage_domains_resources_usage_samples field. The database now stores the correct database status.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-10 21:57:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
logs
none
webadmin-mixed-hist--db
none
enum_trans none

Description David Botzer 2013-03-17 14:12:37 UTC
Created attachment 711420 [details]
logs

Description of problem:
[rhevm-dwh] - History DB - Storage Domain Status "Mixed" is not saved correctly (in statistics_storage_domains_samples)
"Mixed"=3 & in statistics_storage_domains_resources_usage_samples it's saved =2

Version-Release number of selected component (if applicable):
3.2/SF10

How reproducible:
always

Steps to Reproduce:
1.Install rhevm+reports+dwh
2.configure 2 DCs with Storage domains
3.Add ISO domain and activate on one DC
  
Actual results:
webadmin shows Cross-data-center-status = "Mixed" (3)
But in history db -> statistics_storage_domains_resources_usage_samples its saved as Inactive (2)

Expected results:
Status should be 3, instead of 2

Additional info:
logs & pics

Comment 1 David Botzer 2013-03-17 14:13:52 UTC
Created attachment 711421 [details]
webadmin-mixed-hist--db

Comment 2 David Botzer 2013-03-17 14:14:16 UTC
Created attachment 711422 [details]
enum_trans

Comment 3 David Botzer 2013-03-17 14:26:20 UTC
The ISO domain is attached to 2 DCs - one is active & one is Inactive
The statistics_storage_domains_resources_usage_samples saves status for only 1 DC
the Inactive

* v3_2_latest_map_datacenters_storage_domains doesn't include status of each DC

Comment 5 David Botzer 2013-03-19 12:11:17 UTC
There is, right here

Comment 6 David Botzer 2013-04-21 12:55:12 UTC
Fixed, 3.2/SF13 
Shared ISO Domain status "Mixed" Is saved correctly
Fixed, 3.2/SF13

Comment 7 errata-xmlrpc 2013-06-10 21:57:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2013-0926.html