From a80ea210dbc997038f7e52bec07615b346d43eda Mon Sep 17 00:00:00 2001 From: Bharat Kumar Kobagana Date: Wed, 19 Aug 2015 16:29:07 +0530 Subject: [PATCH] Changing file permissions of glusterfs log files This patch avoids creation of zero sized glusterfs log files by changing the file permissions from 600 to 755. Change-Id: I2c88781052f5cb334de21ffe1f98f13240820fa5 --- devstack/gluster-functions.sh | 4 ---- devstack/plugin.sh | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/devstack/gluster-functions.sh b/devstack/gluster-functions.sh index a4da772..8e914db 100755 --- a/devstack/gluster-functions.sh +++ b/devstack/gluster-functions.sh @@ -25,10 +25,6 @@ function install_glusterfs { fi _create_glusterfs_disk - - # Changing file permissions of glusterfs logs. - # This avoids creation of zero sized glusterfs log files while running CI job (Bug: 1455951). - sudo chmod 755 -R /var/log/glusterfs/ } # Start gluster service diff --git a/devstack/plugin.sh b/devstack/plugin.sh index dc5e86b..541e4be 100755 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -116,6 +116,10 @@ elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then echo_summary "Configuring GlusterFS as a backend for Manila" configure_manila_backend_glusterfs fi +elif [[ "$1" == "stack" && "$2" == "extra" ]]; then + # Changing file permissions of glusterfs logs. + # This avoids creation of zero sized glusterfs log files while running CI job (Bug: 1455951). + sudo chmod 755 -R /var/log/glusterfs/ fi if [[ "$1" == "unstack" ]]; then