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