Workaround RHBZ #1872511 by installing langpack

There's a complex bug in current Rawhide affecting the database
server test; it boils down to "deployment fails because LANG is
set to a locale for which the corresponding langpack is not
installed". As we know broadly what's going on there now, let's
work around it with a soft failure so we catch any later bugs in
the process.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-09-01 15:22:19 -07:00
parent 9ae60e4a1e
commit a3806af8ee
1 changed files with 6 additions and 1 deletions

View File

@ -16,7 +16,12 @@ sub run {
assert_script_run "firewall-cmd --permanent --add-service postgresql";
assert_script_run "systemctl restart firewalld.service";
# init the db
assert_script_run "/usr/bin/postgresql-setup --initdb";
if (script_run "/usr/bin/postgresql-setup --initdb") {
# see if this is RHBZ #1872511...
script_run "dnf -y install glibc-langpack-en", 180;
assert_script_run "/usr/bin/postgresql-setup --initdb";
record_soft_failure "postgresql-setup initially failed due to missing langpack - RHBZ #1872511";
}
# enable and start the systemd service
assert_script_run "systemctl enable postgresql.service";
assert_script_run "systemctl start postgresql.service";