From a3806af8ee39ffa06aa6f6e91b1196cd68d63933 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 1 Sep 2020 15:22:19 -0700 Subject: [PATCH] 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 --- tests/role_deploy_database_server.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/role_deploy_database_server.pm b/tests/role_deploy_database_server.pm index 7d81c3ac..6cf618fe 100644 --- a/tests/role_deploy_database_server.pm +++ b/tests/role_deploy_database_server.pm @@ -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";