Browse Source

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
changes/56/214556/1
Bharat Kumar Kobagana 3 years ago
parent
commit
a80ea210db
2 changed files with 4 additions and 4 deletions
  1. 0
    4
      devstack/gluster-functions.sh
  2. 4
    0
      devstack/plugin.sh

+ 0
- 4
devstack/gluster-functions.sh View File

@@ -25,10 +25,6 @@ function install_glusterfs {
25 25
     fi
26 26
 
27 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 30
 # Start gluster service

+ 4
- 0
devstack/plugin.sh View File

@@ -116,6 +116,10 @@ elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
116 116
         echo_summary "Configuring GlusterFS as a backend for Manila"
117 117
         configure_manila_backend_glusterfs
118 118
     fi
119
+elif [[ "$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/
119 123
 fi
120 124
 
121 125
 if [[ "$1" == "unstack" ]]; then

Loading…
Cancel
Save