Bug 1043314 - [REPORTS-SETUP] - backup is not performed therefore restore fails.
Summary: [REPORTS-SETUP] - backup is not performed therefore restore fails.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-reports
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 3.3.0
Assignee: Yedidyah Bar David
QA Contact: Barak Dagan
URL:
Whiteboard: integration
Depends On: 1039459
Blocks: 3.3rc1
TreeView+ depends on / blocked
 
Reported: 2013-12-15 23:04 UTC by Barak Dagan
Modified: 2015-09-22 13:10 UTC (History)
9 users (show)

Fixed In Version: is28 - rhevm-reports-3.3.0-26.el6ev.noarch.rpm
Doc Type: Bug Fix
Doc Text:
When upgrading rhevm-reports, the installation directory owner and permission changed, therefore the reports setup failed, and the Manager could not run. Now, the database and web archive (WAR) files are backed up and restored upon upgrade, and the correct permissions are restored.
Clone Of:
Environment:
Last Closed: 2014-01-21 14:56:58 UTC
oVirt Team: ---
Target Upstream Version:


Attachments (Terms of Use)
reports setup log (6.13 KB, application/x-compressed-tar)
2013-12-15 23:04 UTC, Barak Dagan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:0035 0 normal SHIPPED_LIVE rhevm-reports 3.3 bug fix and enhancement update 2014-01-21 19:53:30 UTC
oVirt gerrit 22480 0 None None None Never
oVirt gerrit 22532 0 None None None Never

Description Barak Dagan 2013-12-15 23:04:56 UTC
Created attachment 837073 [details]
reports setup log

Description of problem:
During reports setup, installation directory owner and permission changed and therefore the installation failed. JBOSS will fail to run the engine due to the same problem

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

How reproducible:
100%

Steps to Reproduce:
1. intall 3.2.4 / 5 + dwh & reports
2. upgrade engine & dwh to is27
3. upgrade reports

Actual results:
installation fails, engine fails to start

Expected results:
successfull installation

Additional info:

Comment 3 Yaniv Lavi 2013-12-17 10:16:53 UTC
This code was removed at some point:

if not warUpdated and DB_EXIST:
    backupWAR()
    backupDB(db_dict, TEMP_PGPASS)


Since no backup is done the restore fails.
Also permissions change due to the copy being done to tmp folder and restore should restore the correct permissions.


Yaniv

Comment 5 Barak Dagan 2014-01-16 17:32:12 UTC
verified on is32.2:

rhevm-reports-3.3.0-28.el6ev.noarch
rhevm-dwh-3.3.0-28.el6ev.noarch
jasperreports-server-pro-5.5.0-4.el6ev.noarch

Comment 7 errata-xmlrpc 2014-01-21 14:56:58 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.

http://rhn.redhat.com/errata/RHBA-2014-0035.html


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