Bug 1613168 - [downstream clone - 4.2.5-1] On rollback of failed upgrade from 4.2.1+, engine-setup outputs errors about the uuid-ossp extension
Summary: [downstream clone - 4.2.5-1] On rollback of failed upgrade from 4.2.1+, engin...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.2.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.2.5-2
: ---
Assignee: Eli Mesika
QA Contact: Lucie Leistnerova
URL:
Whiteboard:
Depends On: 1611617
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-07 07:47 UTC by RHV bug bot
Modified: 2021-09-09 15:19 UTC (History)
15 users (show)

Fixed In Version: ovirt-engine-4.2.5.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1611617
Environment:
Last Closed: 2018-08-22 10:57:06 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-43577 0 None None None 2021-09-09 15:19:54 UTC
Red Hat Knowledge Base (Solution) 3550771 0 None None None 2018-08-07 07:48:25 UTC
Red Hat Product Errata RHBA-2018:2541 0 None None None 2018-08-22 10:57:16 UTC
oVirt gerrit 93544 0 master MERGED packaging: setup: filter out errors about uuid-ossp 2020-09-14 12:50:27 UTC
oVirt gerrit 93560 0 ovirt-engine-4.2 MERGED packaging: setup: filter out errors about uuid-ossp 2020-09-14 12:50:27 UTC
oVirt gerrit 93561 0 ovirt-engine-4.2.5.z MERGED packaging: setup: filter out errors about uuid-ossp 2020-09-14 12:50:27 UTC
oVirt gerrit 93711 0 ovirt-engine-4.2 MERGED packaging: setup: Fix filtering out errors about uuid-ossp 2020-09-14 12:50:27 UTC
oVirt gerrit 93712 0 ovirt-engine-4.2.5.z MERGED packaging: setup: Fix filtering out errors about uuid-ossp 2020-09-14 12:50:27 UTC

Description RHV bug bot 2018-08-07 07:47:21 UTC
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1611617 +++
======================================================================

Description of problem:

Upgrade aborts with "ERROR: must be owner of extension plpgsql during Restoring DWH database ovirt_engine_history"

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

4.2.4/4.2.5

How reproducible:

100% in my environment

Steps to Reproduce:
1. engine-setup
2. Take defaults for all except add full vacuum

Actual results:

ERROR: must be owner of extension plpgsql during Restoring DWH database ovirt_engine_history 

Expected results:

Successful upgrade

Additional info:

(Originally by Thom Carlin)

Comment 3 RHV bug bot 2018-08-07 07:47:37 UTC
Eli, can you please look into this?

(Originally by Sandro Bonazzola)

Comment 9 RHV bug bot 2018-08-07 07:48:11 UTC
1. The bug is about errors from pg_restore, which is ran during _rollback_. So to reproduce, you have to cause engine-setup to fail somehow (bug 1609839, in this case, but can be anything).

2. engine-setup already filters out some errors from pg_restore, which we decided are harmless. These are logged but are not shown to the user.

3. Unfiltered errors are also shown to the user, and it's up to the user to decide if that's a problem or not. Other than that, it continues as usual. So if the user decided that the errors are harmless, nothing else needs to be done (other than handling the original cause for rollback and then trying to upgrade again).

4. In this case, the unfiltered errors are:

otopi.ovirt_engine_setup.engine_common.database database.restore:942 Errors unfiltered during restore:

pg_restore: [archiver (db)] Error from TOC entry 7310; 0 0 COMMENT EXTENSION "uuid-ossp"
pg_restore: [archiver (db)] could not execute query: ERROR:  must be owner of extension uuid-ossp

5. I am pretty certain that they are harmless. Also pushed a patch (93544) to add them to the filtered errors. If Eli agrees, that's enough.

6. Also, since they seem harmless to me, lowered priority/severity accordingly.

7. Also changing the summary line according to (1.) and (4.). uuid-ossp was introduced in bug 1515635, 4.2.1.

(Originally by didi)

Comment 11 Lucie Leistnerova 2018-08-13 11:54:31 UTC
I aborted engine-setup with otopi-debug-plugins

OTOPI_FORCE_FAIL_STAGE=STAGE_MISC OTOPI_FORCE_FAIL_PRIORITY=PRIORITY_LOW engine-setup

And log doesn't contain error as in previous version
ERROR:  must be owner of extension uuid-ossp

but it still fails and log contains

2018-08-13 13:48:31,593+0200 ERROR otopi.ovirt_engine_setup.engine_common.database database.restore:945 Errors while restoring engine database, please check the log file for details
2018-08-13 13:27:36,714+0200 DEBUG otopi.ovirt_engine_setup.engine_common.database database.restore:950 Errors unfiltered during restore:

pg_restore: [archiver (db)] Error from TOC entry 7264; 0 0 COMMENT EXTENSION "uuid-ossp"


tested in ovirt-engine-setup-plugin-ovirt-engine-common-4.2.5.3-0.1.el7ev.noarch

Comment 14 Lucie Leistnerova 2018-08-16 12:46:53 UTC
rollback was successfull

verified in ovirt-engine-setup-plugin-ovirt-engine-common-4.2.5.4-0.1.el7ev.noarch

Comment 16 errata-xmlrpc 2018-08-22 10:57:06 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://access.redhat.com/errata/RHBA-2018:2541


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