Skip to content

Commit

Permalink
Removed allowance for some platforms to fail pg_upgrade due to openss…
Browse files Browse the repository at this point in the history
…l library version changes during upgrades

Ticket: ENT-11853
Changelog: none
  • Loading branch information
craigcomstock committed Jun 20, 2024
1 parent 32a3d38 commit 9ac67df
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packaging/common/cfengine-hub/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -711,13 +711,6 @@ do_migration() {
exit 0 # exits only from (...)
fi
cf_console echo "Migration using pg_upgrade failed."
# skip ubuntu-16, debian-9 and debian-12 since there is an expected failure there
# check for "/var/cfengine/state/pg/backup/bin/postgres" failed: cannot execute
if { [ "$BUILT_ON_OS" = "debian" ] && [ "$BUILT_ON_OS_VERSION" = "9" ]; } || \
{ [ "$BUILT_ON_OS" = "debian" ] && [ "$BUILT_ON_OS_VERSION" = "12" ]; } || \
{ [ "$BUILT_ON_OS" = "ubuntu" ] && [ "$BUILT_ON_OS_VERSION" = "16" ]; }; then
true # no-op
else
# here pg_upgrade probably said something like
# Consult the last few lines of "/var/cfengine/state/pg/data/pg_upgrade_output.d/20230913T150025.959/log/pg_upgrade_server.log" for the probable cause of the failure.
cf_console echo "Showing last lines of any related log files:"
Expand Down

0 comments on commit 9ac67df

Please sign in to comment.