From b3befb9ef4dd323cdba58fffafa56bb7c62783d8 Mon Sep 17 00:00:00 2001 From: Michael Hashizume Date: Fri, 25 Oct 2024 12:24:16 -0700 Subject: [PATCH] Add workaround for test on Red Hat 8 POWER Due to an issue with SSSD, this commit adds a workaround for the test to modify a user's password on Red Hat 8 POWER machines (ppc64le). We have submitted an ITHELP ticket (ITHELP-100250) for a more permanent fix. (cherry picked from commit e02fed5082f68602cbe083a8d7d5d47b9d35302d) --- .../resource/user/should_create_modify_with_password.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/acceptance/tests/resource/user/should_create_modify_with_password.rb b/acceptance/tests/resource/user/should_create_modify_with_password.rb index 123599d5cda..ff0d25a3125 100644 --- a/acceptance/tests/resource/user/should_create_modify_with_password.rb +++ b/acceptance/tests/resource/user/should_create_modify_with_password.rb @@ -41,6 +41,13 @@ end step 'modify the user with a different password' do + # There is a known issue with SSSD and Red Hat 8, this is a temporary workaround until a permanent fix is + # implemented in our images. See ITHELP-100250 + # https://access.redhat.com/solutions/7031304 + if agent['platform'] = 'el-8-ppc64le' + on(agent, 'systemctl stop sssd; rm -f /var/lib/sss/db/*; systemctl start sssd', acceptable_exit_codes: 0) + end + apply_manifest_on(agent, <<-MANIFEST, catch_failures: true) user { '#{name}': ensure => present,