Bug 850388

Summary: [ovirt-engine-reports] Setup fails on missing file
Product: Red Hat Enterprise Virtualization Manager Reporter: Kiril Nesenko <knesenko>
Component: ovirt-engine-reportsAssignee: Alon Bar-Lev <alonbl>
Status: CLOSED CURRENTRELEASE QA Contact: David Botzer <dbotzer>
Severity: unspecified Docs Contact:
Priority: urgent    
Version: 3.1.0CC: dfediuck, dyasny, iheim, mkenneth, pstehlik, Rhev-m-bugs, ykaul, ylavi
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: integration
Fixed In Version: SI15 - rhevm-reports-3.1.0-9.el6ev.noarch.rpm Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 19:59:10 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:
Embargoed:
Attachments:
Description Flags
logs none

Description Kiril Nesenko 2012-08-21 14:20:45 UTC
Created attachment 605947 [details]
logs

Description of problem:
Setup fails on missing file


2012-08-21 17:17:34::DEBUG::ovirt-engine-reports-setup::828::root:: Restoring previous version
2012-08-21 17:17:34::ERROR::ovirt-engine-reports-setup::850::root:: Exception caught!
2012-08-21 17:17:34::ERROR::ovirt-engine-reports-setup::851::root:: Traceback (most recent call last):
  File "/usr/bin/ovirt-engine-reports-setup", line 773, in main
    updateServletDbRecord()
  File "/usr/share/ovirt-engine-reports/decorators.py", line 27, in wrapped_f
    raise Exception(instance)
Exception: Could not find /etc/ovirt-engine/web-conf.js


Version-Release number of selected component (if applicable):
rhevm-reports-3.1.0-1.el6ev.noarch

How reproducible:
Always

Steps to Reproduce:
1.Try to setup ovirt-engine-reports
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Alon Bar-Lev 2012-08-21 15:19:16 UTC
ENGINE

commit a834d53a2629c8ed41ab81e340e10f1705488ae0
Author: Alon Bar-Lev <alonbl>
Date:   Tue Aug 21 18:10:42 2012 +0300

    packaging: add ENGINE_FQDN variable to service configuration
    
    The engine FQDN is required for dependencies such as dwhj and reports to
    successfully find engine.
    
    Change-Id: Icc2a12280813bc7462ba62bf9e9a7b5358811147
    Signed-off-by: Alon Bar-Lev <alonbl>

http://gerrit.ovirt.org/7384

Comment 4 David Botzer 2012-08-23 16:25:17 UTC
Fixed 3.1/si15 (both reports & DWH)
rhevm-dwh-3.1.0-9.el6ev.noarch
rhevm-reports-3.1.0-9.el6ev.noarch

Using the workaround : vi /etc/sysconfig/ovirt-engine
appending value ENGINE_FQDN=myhost.redhat.com

Fixed 3.1/si15 (both reports & DWH)
rhevm-dwh-3.1.0-9.el6ev.noarch
rhevm-reports-3.1.0-9.el6ev.noarch