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

Bug 1189127

Summary: After upgrade from 3.4 to 3.5.0 dwh fails to collect on first minute on "insert or update on table "vm_samples_history" violates foreign key constraint "vm_samples_history_current_user_id_fkey""
Product: [Retired] oVirt Reporter: Shirly Radco <sradco>
Component: ovirt-engine-dwhAssignee: Shirly Radco <sradco>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: medium Docs Contact:
Priority: high    
Version: 3.5CC: bugs, ecohen, eedri, gklein, lsurette, pkubica, pmatyas, pstehlik, rbalakri, Rhev-m-bugs, sraje, yeylon, ylavi
Target Milestone: ---   
Target Release: 3.5.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: oVirt 3.5.2 RC - ovirt-engine-dwh-3.5.2-0.1.el6.noarch.rpm Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1189126 Environment:
Last Closed: 2015-04-29 06:16:43 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:
Bug Depends On: 1189000, 1189126    
Bug Blocks: 1193058    

Description Shirly Radco 2015-02-04 14:14:22 UTC
Description of problem:
 After upgrade 3.4 => 3.5 dwh log is filled by:
2015-02-03 14:48:05|r4oeiB|aJhYDf|Csc3e4|OVIRT_ENGINE_DWH|StatisticsSync|Default|6|Java Exception|tJDBCOutput_5|org.postgresql.util.PSQLException:ERROR: insert or update on table "vm_samples_history" violates foreign key constraint "vm_samples_history_current_user_id_fkey"
 Detail: Key (current_user_id)=(fdfc627c-d875-11e0-90f0-83df133b58cc) is not present in table "users_details_history".|1
Exception in component tRunJob_5
java.lang.RuntimeException: Child job running failed
       at ovirt_engine_dwh.samplerunjobs_3_5.SampleRunJobs.tRunJob_5Process(SampleRunJobs.java:1598)
       at ovirt_engine_dwh.samplerunjobs_3_5.SampleRunJobs.tRunJob_6Process(SampleRunJobs.java:1412)
       at ovirt_engine_dwh.samplerunjobs_3_5.SampleRunJobs.tRunJob_1Process(SampleRunJobs.java:1197)
       at ovirt_engine_dwh.samplerunjobs_3_5.SampleRunJobs.tRunJob_4Process(SampleRunJobs.java:982)
       at ovirt_engine_dwh.samplerunjobs_3_5.SampleRunJobs.tJDBCConnection_2Process(SampleRunJobs.java:762)
       at ovirt_engine_dwh.samplerunjobs_3_5.SampleRunJobs.tJDBCConnection_1Process(SampleRunJobs.java:641)
       at ovirt_engine_dwh.samplerunjobs_3_5.SampleRunJobs$2.run(SampleRunJobs.java:2560)

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


How reproducible:
100%

Steps to Reproduce:
1. have engine, users and dwh installed
2.
3.

Actual results:


Expected results:


Additional info:


--- Additional comment from Yaniv Dary on 2015-02-04 06:03:34 EST ---

We located the issue, but it should not affect the DWH expect for a minute or two after setup. 


--- Additional comment from Pavel Stehlik on 2015-02-04 07:59:22 EST ---

I didn't see any error in the log after restarting service. So agree - it's not repetitive action. Also gathering data looks working.

Comment 3 Eyal Edri 2015-04-29 06:16:43 UTC
ovirt 3.5.2 was GA'd. closing current release.

Comment 4 Sachin Raje 2015-06-25 10:53:47 UTC
*** Bug 1232545 has been marked as a duplicate of this bug. ***