Bug 1071020
Summary: | [RHEV] Upgrading rhevm-reports from 3.2 to 3.3 without Apache running fails and prevents any future rhevm-reports-setup from succeeding | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | James W. Mills <jamills> | |
Component: | ovirt-engine-reports | Assignee: | Yedidyah Bar David <didi> | |
Status: | CLOSED ERRATA | QA Contact: | Barak Dagan <bdagan> | |
Severity: | urgent | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 3.3.0 | CC: | acathrow, adahms, asegundo, bazulay, didi, iheim, jraju, meverett, pablo.iranzo, pstehlik, Rhev-m-bugs, yeylon | |
Target Milestone: | --- | Keywords: | TestOnly | |
Target Release: | 3.4.0 | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | integration | |||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
Previously, attempting to upgrade the Reports feature when the httpd service was not running would cause the upgrade operation to fail after creating the new engine_reports user but before the randomly generated password for that user could be written to the configuration for Red Hat Enterprise Virtualization. Now, the logic used to write the randomly generated password has been revised so that the password is written immediately after it is generated, making it possible to access these credentials even in the event that the upgrade operation fails.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1072466 (view as bug list) | Environment: | ||
Last Closed: | 2014-06-09 15:27:13 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: | ||||
Bug Depends On: | 1072068, 1077775, 1086003, 1111749, 1121792 | |||
Bug Blocks: | 1072466, 1078909, 1142926 |
Description
James W. Mills
2014-02-27 22:56:58 UTC
Further attempts to run rhevm-reports-setup after the intial failure look like this: 2014-02-27 22:42:28::DEBUG::common_utils::1018::root:: Executing command --> '/usr/bin/psql -U engine_reports -d rhevmreports -h localhost -p 5432 -f /usr/share/jasperreports-server-pro/buildomatic/install_resources/sql/postgresql/upgrade-postgresql-4.7.0-5.0.0-pro.sql' in working directory '/root' 2014-02-27 22:42:28::DEBUG::common_utils::1073::root:: output = 2014-02-27 22:42:28::DEBUG::common_utils::1074::root:: stderr = psql: FATAL: password authentication failed for user "engine_reports" 2014-02-27 22:42:28::DEBUG::common_utils::1075::root:: retcode = 2 2014-02-27 22:42:28::ERROR::decorators::26::root:: Traceback (most recent call last): File "/usr/share/ovirt-engine-reports/decorators.py", line 19, in wrapped_f output = f(*args) File "/usr/bin/rhevm-reports-setup", line 180, in updateDbSchema envDict={'ENGINE_PGPASS': TEMP_PGPASS}, File "/usr/share/ovirt-engine-reports/common_utils.py", line 1078, in execCmd raise Exception(msg) Exception: Return Code is not zero 25339 makes setup save the credentials (including the randomly-generated password) right after creating them and changing ownership in the db. Verified that it helps the described flow by doing: install and setup 3.2 engine/dwh/reports upgrade engine to 3.3 upgrade dwh to 3.3 yum update rhevm-reports to 3.3 stop services ovirt-engine ovirt-engine-dwhd httpd rhevm-reports-setup see that it fails as described, but 10-setup-database.conf is created start these services rhevm-reports-setup - this time it finished successfully. Did not address yet checking access to httpd etc. Moving to ON_QA as the relevant code was rewritten in 3.4. Verified on av6.1. Installation successed when httpd service was down. 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/RHEA-2014-0602.html |