diff options
author | Harpreet Kaur <hlalwani@redhat.com> | 2018-11-28 14:06:36 +0530 |
---|---|---|
committer | Kotresh HR <khiremat@redhat.com> | 2018-12-07 09:37:54 +0000 |
commit | 6e92171117c73d7a8901800299446a131e54b597 (patch) | |
tree | 4126ee676672096927373ca9a459420e93b452a7 /tests/geo-rep.rc | |
parent | 916df2c12b19ac84b7806d31226d7f832ca7e2bb (diff) |
geo-rep: Make slave volume read-only (by default)
Added a command to set "features.read-only" option
to a default value "on" for slave volume.
Changes are made in:
$SRC//extras/hook-scripts/S56glusterd-geo-rep-create-post.sh
for root geo-rep and
$SRC/geo-replication/src/set_geo_rep_pem_keys.sh
for non-root geo-rep.
Fixes: bz#1654187
Change-Id: I15beeae3506f3f6b1dcba0a5c50b6344fd468c7c
Signed-off-by: Harpreet Kaur <hlalwani@redhat.com>
Diffstat (limited to 'tests/geo-rep.rc')
-rw-r--r-- | tests/geo-rep.rc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/geo-rep.rc b/tests/geo-rep.rc index b762a333aca..396b4c4a3e5 100644 --- a/tests/geo-rep.rc +++ b/tests/geo-rep.rc @@ -384,3 +384,10 @@ function verify_hardlink_rename_data() echo 0 fi } + +function check_slave_read_only() +{ + volum=$1 + gluster volume info $1 | grep 'features.read-only: on' + echo $? +} |