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