Bug 1100248 - engine-cleanup is failing when reports is installed due to missing OVESETUP_REPORTS_CONFIG/jasperHome
Summary: engine-cleanup is failing when reports is installed due to missing OVESETUP_R...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-reports
Version: 3.4.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: 3.5.0
Assignee: Yedidyah Bar David
QA Contact: Petr Matyáš
URL:
Whiteboard: integration
Depends On: 1098149
Blocks: 1112550 rhev3.5beta 1156165
TreeView+ depends on / blocked
 
Reported: 2014-05-22 11:15 UTC by Shirly Radco
Modified: 2015-02-11 18:17 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1098149
: 1112550 (view as bug list)
Environment:
Last Closed: 2015-02-11 18:17:29 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2015:0176 0 normal SHIPPED_LIVE rhevm-reports 3.5 bug fix and enhancement update 2015-02-11 23:11:58 UTC
oVirt gerrit 27986 0 None None None Never

Description Shirly Radco 2014-05-22 11:15:48 UTC
+++ This bug was initially created as a clone of Bug #1098149 +++

after clean installation of all components (engine, dwh, reports) when running engine-cleanup we get:

[ INFO  ] Stage: Initializing
[ INFO  ] Stage: Environment setup
          Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging.conf', '/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf']
          Log file: /var/log/ovirt-engine/setup/ovirt-engine-remove-20140515142947-vh6675.log
          Version: otopi-1.2.1 (otopi-1.2.1-1.fc19)
[ ERROR ] Failed to execute stage 'Environment setup': 'OVESETUP_REPORTS_CONFIG/jasperHome'
[ INFO  ] Stage: Clean up
          Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-remove-20140515142947-vh6675.log
[ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20140515142948-cleanup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Execution of cleanup failed

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/context.py", line 142, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-common/ovirt-engine-reports/db/connection.py", line 116, in _setup
    self.environment[oreportscons.ConfigEnv.JASPER_HOME],

Cause:

JASPER_HOME has no postinstall value and required for database connection.

Why do we need database connection in cleanup?

Workaround:

# engine-cleanup --otopi-environment="OVESETUP_REPORTS_CONFIG/jasperHome=str:/usr/share/jasperreports-server/"

Comment 1 Yedidyah Bar David 2014-05-22 11:39:37 UTC
Moving to QE as it seems to me that downstream is unaffected. This is because the downstream package explicitly defines in 20-packaging-rhevm-reports.conf: OVESETUP_REPORTS_CONFIG/jasperHome=str:@DATAROOT_DIR@/jasperreports-server-pro .

Comment 2 Yedidyah Bar David 2014-05-22 11:41:31 UTC
(In reply to Yedidyah Bar David from comment #1)
> Moving to QE as it seems to me that downstream is unaffected. This is
> because the downstream package explicitly defines in
> 20-packaging-rhevm-reports.conf:
> OVESETUP_REPORTS_CONFIG/jasperHome=str:@DATAROOT_DIR@/jasperreports-server-
> pro .

This is so at least since mid Mar or so, didn't check exact version.

Comment 3 Shirly Radco 2014-05-22 11:47:53 UTC
This needs to be tested for 3.4 as well.

Comment 6 errata-xmlrpc 2015-02-11 18:17:29 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.

https://rhn.redhat.com/errata/RHEA-2015-0176.html


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