Browse Source

Merge "Changing file permissions of glusterfs log files"

Jenkins 3 years ago
parent
commit
d223cc154b
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

@@ -127,6 +127,10 @@ elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
127 127
         echo_summary "Configuring GlusterFS as a backend for Manila"
128 128
         configure_manila_backend_glusterfs
129 129
     fi
130
+elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
131
+    # Changing file permissions of glusterfs logs.
132
+    # This avoids creation of zero sized glusterfs log files while running CI job (Bug: 1455951).
133
+    sudo chmod 755 -R /var/log/glusterfs/
130 134
 fi
131 135
 
132 136
 if [[ "$1" == "unstack" ]]; then

Loading…
Cancel
Save