Bug 2225217

Summary: Pipe fail in Postgres During Upgrade
Product: Red Hat Enterprise Linux 8 Reporter: Petr Kubat <pkubat>
Component: postgresql-13-containerAssignee: Filip Januš <fjanus>
Status: CLOSED ERRATA QA Contact: Lukáš Zachar <lzachar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.8CC: phracek, pkubat
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: postgresql-13-container-1-133 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-26 08:58:45 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:

Description Petr Kubat 2023-07-24 15:47:22 UTC
Description of problem:
Pipe fail needs to be moved outside of the parenthesis in order to catch all errors inside of the code block, otherwise improper error code is returned. See https://github.com/sclorg/postgresql-container/pull/521


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


How reproducible:
Reproducible


Steps to Reproduce:
See test case https://github.com/sclorg/postgresql-container/pull/523/files

Actual results:
If an upgrade fails, a zero error code should be thrown

Expected results:
If an upgrade fails, a non-zero error code should be thrown

Additional info:
PRs have been merged and this is largely for tracking purposes

Comment 6 errata-xmlrpc 2023-07-26 08:58:45 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 (Updated Application Stream container images), 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-2023:4280