From aaae0798832e8892d3b592c2b30a48b1d896bfa8 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Sat, 3 Dec 2022 06:40:53 +0100 Subject: [PATCH] Fix homedir permissions RHEL based distros set homedir permissions to 700, and Ubuntu 21.04+ to 750[1], i.e missing executable permission for group or others, this results into failures as defined in the below bug. This patch fixes the homedir permissions for local (non-gate) installations, using the devstack patch as reference. Check patch [1] for more information. [1]https://review.opendev.org/c/openstack/devstack/+/838645 Related-Bug: #1966858 Change-Id: I9f701e1015fc7cfa954eba12e55fd3544a4d95d2 --- tools/configure_for_func_testing.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/configure_for_func_testing.sh b/tools/configure_for_func_testing.sh index 29d514359a9..692b4793573 100755 --- a/tools/configure_for_func_testing.sh +++ b/tools/configure_for_func_testing.sh @@ -294,6 +294,13 @@ function _install_post_devstack { install_dstat start_dstat fi + + if [[ "$IS_GATE" != "True" ]]; then + # Ensure home directory for the ``stack`` user has executable + # permissions for all. Only for local (non-gate) installations. + # Check https://review.opendev.org/c/openstack/devstack/+/838645 + chmod +x $HOME + fi }