Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1049468 - [REPORTS-SETUP] When upgrading from 3.2/3.1 and using postgres user as remote user, setup fails.
[REPORTS-SETUP] When upgrading from 3.2/3.1 and using postgres user as remote...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-reports (Show other bugs)
3.3.0
x86_64 Linux
high Severity high
: ---
: 3.3.0
Assigned To: Yedidyah Bar David
Tareq Alayan
integration
:
Depends On: 1049654
Blocks: rhev3.3ga
  Show dependency treegraph
 
Reported: 2014-01-07 10:24 EST by Yaniv Lavi
Modified: 2015-09-22 09 EDT (History)
11 users (show)

See Also:
Fixed In Version: IS31 - rhevm-reports-3.3.0-28.el6ev.noarch.rpm
Doc Type: Bug Fix
Doc Text:
Previously, setup would fail when upgrading rhevm-reports from version 3.2 using the postgres user as the remote user. This was due to an inability to drop cascade on cleaning the database as part of the upgrade. Now, rhevm-reports-setup uses cleandb.sh from dbscripts, which correctly drops all objects one-by-one.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-01-21 09:57:41 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 23054 None None None Never
Red Hat Product Errata RHBA-2014:0035 normal SHIPPED_LIVE rhevm-reports 3.3 bug fix and enhancement update 2014-01-21 14:53:30 EST

  None (edit)
Description Yaniv Lavi 2014-01-07 10:24:20 EST
Description of problem:
When upgrading from rhevm-reports 3.2/3.1 and using postgres user as remote user, setup fails. This is due to inability to drop cascade on clean of db with user postgres.

Version-Release number of selected component (if applicable):
3.3.0

How reproducible:
Always

Steps to Reproduce:
1. install reports 3.2 with remote db and user postgres
2. upgrade to 3.3 reports.

Actual results:
fails on db cleanup

Expected results:
should fail on postgres user selection or replace user to temp user on objects in the db and then drop them, so cleanup will work or drop and create the db.

Additional info:
Comment 1 Yedidyah Bar David 2014-01-07 11:43:26 EST
Some possible courses of actions discussed today:

1. Do nothing. setup will fail, seems like no harm will be done, but the user will be left "hanging".
2. Fail setup with a suitable message including information about what to do  - either directly by setup or pointing to some article.
3. Somehow fix the bug and continue the setup with postgres.
4. Create a new user (similarly to a local database), try to connect with it to the database, and if this fails, ask the user to edit pg_hba.conf and restart postgres on the db server.

(3.) is obviously simplest for the user.

(4.) is the cleanest option, aligning db access with that of a new install and of an upgrade with a local database. To do this really cleanly, we should do the same also in the engine and reports. I did not check what happens there, but am pretty certain some work is needed.

(2.) is probably the minimum.
Comment 3 Yedidyah Bar David 2014-01-07 17:56:11 EST
BTW, I now noticed that in 3.2, if user chose remote database, the default username was postgres. So I wouldn't be surprised if this scenario (remote postgres user) is actually very common, contrary to what I thought earlier.

I am now testing #3 - drop/create database instead of drop owned by user cacade.
Comment 5 Tareq Alayan 2014-01-16 10:01:57 EST
verified on rhevm-dwh-3.3.0-28.el6ev.noarch
rhevm-reports-3.3.0-28.el6ev.noarch

successfully installed 3.3 reports on 3.2 upgraded env.
Comment 6 Yedidyah Bar David 2014-01-19 03:44:11 EST
doctext: Dropped '3.1' as our tests indicate there is no difference between '3.1->3.2->3.3' and 'clean 3.2->3.3' and I'd rather not confuse the users into thinking that a direct upgrade 3.1->3.3 is possible.
Comment 8 errata-xmlrpc 2014-01-21 09:57:41 EST
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.