Bug 1098149 - 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 CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-reports
Version: 3.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.4.2
Assignee: Yedidyah Bar David
QA Contact: Pavel Stehlik
URL:
Whiteboard: integration
Depends On:
Blocks: 1100248 1112550
TreeView+ depends on / blocked
 
Reported: 2014-05-15 11:55 UTC by Alon Bar-Lev
Modified: 2014-06-24 08:00 UTC (History)
7 users (show)

Fixed In Version: ovirt-3.4.2 GA ovirt-engine-reports-3.4.2-1.fc20.noarch.rpm
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1100248 (view as bug list)
Environment:
Last Closed: 2014-06-11 06:44:42 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 27986 0 master MERGED packaging: setup: Move JASPER_HOME init to common Never
oVirt gerrit 27999 0 ovirt-engine-3.4 MERGED packaging: setup: Move JASPER_HOME init to common Never

Description Alon Bar-Lev 2014-05-15 11:55:59 UTC
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 Sandro Bonazzola 2014-06-11 06:44:42 UTC
This is an automated message

oVirt 3.4.2 has been released:
 * should fix your issue
 * should be available at your local mirror within two days.

If problems still persist, please make note of it in this bug report.


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