14f8ab
From 8e427716f4e2855093b1a1a0e3a9ec79ebac7faf Mon Sep 17 00:00:00 2001
14f8ab
From: Shwetha K Acharya <sacharya@redhat.com>
14f8ab
Date: Thu, 10 Sep 2020 13:49:09 +0530
14f8ab
Subject: [PATCH 470/473] extras/snap_scheduler: changes in
14f8ab
 gluster-shared-storage mount path
14f8ab
14f8ab
The patch https://review.gluster.org/#/c/glusterfs/+/24934/, changes mount point
14f8ab
of gluster_shared_storage from /var/run to /run to address the issue of symlink
14f8ab
at mount path in fstab.
14f8ab
NOTE: mount point /var/run is symlink to /run
14f8ab
14f8ab
The required changes with respect to gluster_shared_storage mount path are
14f8ab
introduced with this patch in snap_scheduler.
14f8ab
14f8ab
>Fixes: #1476
14f8ab
>Change-Id: I9ce88c2f624c6aa5982de04edfee2d0a9f160d62
14f8ab
>Signed-off-by: Shwetha K Acharya <sacharya@redhat.com>
14f8ab
14f8ab
backport of https://review.gluster.org/#/c/glusterfs/+/24971/
14f8ab
BUG: 1873469
14f8ab
Change-Id: I9ce88c2f624c6aa5982de04edfee2d0a9f160d62
14f8ab
Signed-off-by: Shwetha K Acharya <sacharya@redhat.com>
14f8ab
Reviewed-on: https://code.engineering.redhat.com/gerrit/211391
14f8ab
Tested-by: RHGS Build Bot <nigelb@redhat.com>
14f8ab
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
14f8ab
---
14f8ab
 extras/snap_scheduler/gcron.py          | 4 ++--
14f8ab
 extras/snap_scheduler/snap_scheduler.py | 2 +-
14f8ab
 2 files changed, 3 insertions(+), 3 deletions(-)
14f8ab
14f8ab
diff --git a/extras/snap_scheduler/gcron.py b/extras/snap_scheduler/gcron.py
14f8ab
index cc16310..0e4df77 100755
14f8ab
--- a/extras/snap_scheduler/gcron.py
14f8ab
+++ b/extras/snap_scheduler/gcron.py
14f8ab
@@ -19,10 +19,10 @@ import logging.handlers
14f8ab
 import fcntl
14f8ab
 
14f8ab
 
14f8ab
-GCRON_TASKS = "/var/run/gluster/shared_storage/snaps/glusterfs_snap_cron_tasks"
14f8ab
+GCRON_TASKS = "/run/gluster/shared_storage/snaps/glusterfs_snap_cron_tasks"
14f8ab
 GCRON_CROND_TASK = "/etc/cron.d/glusterfs_snap_cron_tasks"
14f8ab
 GCRON_RELOAD_FLAG = "/var/run/gluster/crond_task_reload_flag"
14f8ab
-LOCK_FILE_DIR = "/var/run/gluster/shared_storage/snaps/lock_files/"
14f8ab
+LOCK_FILE_DIR = "/run/gluster/shared_storage/snaps/lock_files/"
14f8ab
 log = logging.getLogger("gcron-logger")
14f8ab
 start_time = 0.0
14f8ab
 
14f8ab
diff --git a/extras/snap_scheduler/snap_scheduler.py b/extras/snap_scheduler/snap_scheduler.py
14f8ab
index 5a29d41..e8fcc44 100755
14f8ab
--- a/extras/snap_scheduler/snap_scheduler.py
14f8ab
+++ b/extras/snap_scheduler/snap_scheduler.py
14f8ab
@@ -67,7 +67,7 @@ except ImportError:
14f8ab
 SCRIPT_NAME = "snap_scheduler"
14f8ab
 scheduler_enabled = False
14f8ab
 log = logging.getLogger(SCRIPT_NAME)
14f8ab
-SHARED_STORAGE_DIR="/var/run/gluster/shared_storage"
14f8ab
+SHARED_STORAGE_DIR="/run/gluster/shared_storage"
14f8ab
 GCRON_DISABLED = SHARED_STORAGE_DIR+"/snaps/gcron_disabled"
14f8ab
 GCRON_ENABLED = SHARED_STORAGE_DIR+"/snaps/gcron_enabled"
14f8ab
 GCRON_TASKS = SHARED_STORAGE_DIR+"/snaps/glusterfs_snap_cron_tasks"
14f8ab
-- 
14f8ab
1.8.3.1
14f8ab