Bug 1030498

Summary: [DWH-SETUP] - When upgrading reports without DWH upgraded it doesn't check DWH status.
Product: Red Hat Enterprise Virtualization Manager Reporter: Barak Dagan <bdagan>
Component: ovirt-engine-dwhAssignee: Alex Lourie <alourie>
Status: CLOSED CURRENTRELEASE QA Contact: Barak Dagan <bdagan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, bdagan, iheim, pstehlik, Rhev-m-bugs, sbonazzo, yeylon, ylavi
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-18 08:15:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
ovirt-engine-reports-setup-2013_11_14_19_55_40.log. none

Description Barak Dagan 2013-11-14 15:07:31 UTC
Created attachment 823998 [details]
ovirt-engine-reports-setup-2013_11_14_19_55_40.log.

Description of problem:
When upgrading report without DWH updated it doesn't check DWH status. This causes setup to fail and no message instructing the user to install dwh first.


Welcome to ovirt-engine-reports setup utility
Editing XML files...                                  [ DONE ]
Setting DB connectivity...                            [ DONE ]
Exporting adhoc reports...                            [ ERROR ]
Restoring Installation...                             [ ERROR ]
[Errno 2] No such file or directory: '/usr/share/ovirt-engine/rhevm-reports.war/WEB-INF/lib'
Error encountered while installing ovirt-engine-reports, please consult the log file: /var/log/ovirt-engine/ovirt-engine-reports-setup-2013_11_14_19_55_40.log


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

How reproducible:
always

Steps to Reproduce:
1. install 
1. install rhevm-report rpm
2. install engine
3. run rhevm-reports setup

Actual results:
Console should display a message asking to install dwh first

Expected results:


Additional info:

Comment 1 Alex Lourie 2013-11-14 16:03:23 UTC
Why is this at all related to DWH? All I see in the log is exporting users failed in JS operation.

Yaniv, can you please take a look?

Comment 2 Yaniv Lavi 2013-11-17 16:24:58 UTC
Database must have been corrupted.
A table is missing.



Yaniv

Comment 3 Yaniv Lavi 2013-11-17 16:25:42 UTC
Please recreate on latest build and attach log.

Comment 4 Barak Dagan 2013-11-18 08:15:48 UTC
# rhevm-reports-setup 
Welcome to ovirt-engine-reports setup utility
DWH has not been setup, please install rhevm-dwh package and execute: "rhevm-dwh-setup" before setting up the reports.
Error encountered while installing ovirt-engine-reports, please consult the log file: /var/log/ovirt-engine/ovirt-engine-reports-setup-2013_11_17_19_1