summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Kumar Kobagana <bharat.kobagana@redhat.com>2015-08-19 16:29:07 +0530
committerBharat Kumar Kobagana <bharat.kobagana@redhat.com>2015-08-19 16:29:10 +0530
commita80ea210dbc997038f7e52bec07615b346d43eda (patch)
tree0bd427cdfbd404b444db92de77d777ed8fa8c0eb
parentb52022d3e1a807497c7965f1e084fa4b5f555e0d (diff)
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
Notes
Notes (review): Verified+2: Jenkins Code-Review+2: Deepak C Shetty (deepakcs) <deepakcs@redhat.com> Workflow+1: Deepak C Shetty (deepakcs) <deepakcs@redhat.com> Submitted-by: Jenkins Submitted-at: Wed, 19 Aug 2015 12:22:12 +0000 Reviewed-on: https://review.openstack.org/214556 Project: stackforge/devstack-plugin-glusterfs Branch: refs/heads/master
-rwxr-xr-xdevstack/gluster-functions.sh4
-rwxr-xr-xdevstack/plugin.sh4
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 {
25 fi 25 fi
26 26
27 _create_glusterfs_disk 27 _create_glusterfs_disk
28
29 # Changing file permissions of glusterfs logs.
30 # This avoids creation of zero sized glusterfs log files while running CI job (Bug: 1455951).
31 sudo chmod 755 -R /var/log/glusterfs/
32} 28}
33 29
34# Start gluster service 30# 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
116 echo_summary "Configuring GlusterFS as a backend for Manila" 116 echo_summary "Configuring GlusterFS as a backend for Manila"
117 configure_manila_backend_glusterfs 117 configure_manila_backend_glusterfs
118 fi 118 fi
119elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
120 # Changing file permissions of glusterfs logs.
121 # This avoids creation of zero sized glusterfs log files while running CI job (Bug: 1455951).
122 sudo chmod 755 -R /var/log/glusterfs/
119fi 123fi
120 124
121if [[ "$1" == "unstack" ]]; then 125if [[ "$1" == "unstack" ]]; then