mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-12-22 10:48:30 +00:00
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:
parent
9ae60e4a1e
commit
a3806af8ee
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user