|
|
d1681e |
From bc7cc384c82ba8c0bc083ff70b5f2506acfd2b43 Mon Sep 17 00:00:00 2001
|
|
|
d1681e |
From: Atin Mukherjee <amukherj@redhat.com>
|
|
|
d1681e |
Date: Mon, 13 Aug 2018 20:30:04 +0530
|
|
|
d1681e |
Subject: [PATCH 341/351] Revert "glusterd: enable brick multiplexing by
|
|
|
d1681e |
default"
|
|
|
d1681e |
|
|
|
d1681e |
This reverts commit 2a80ccb39ea7f4ef5c801ad78b43e4bdc23a3c64.
|
|
|
d1681e |
|
|
|
d1681e |
brick multiplexing at stand alone RHGS has been decided to be turned
|
|
|
d1681e |
off.
|
|
|
d1681e |
|
|
|
d1681e |
Label: DOWNSTREAM ONLY
|
|
|
d1681e |
|
|
|
d1681e |
BUG: 1615440
|
|
|
d1681e |
Change-Id: Iaf8bd8a637ec16c66952ef8947e835174279c9a2
|
|
|
d1681e |
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
d1681e |
Reviewed-on: https://code.engineering.redhat.com/gerrit/146881
|
|
|
d1681e |
Reviewed-by: Mohit Agrawal <moagrawa@redhat.com>
|
|
|
d1681e |
---
|
|
|
d1681e |
cli/src/cli-cmd-parser.c | 18 ++++++++++++++++++
|
|
|
d1681e |
xlators/mgmt/glusterd/src/glusterd-op-sm.c | 2 +-
|
|
|
d1681e |
xlators/mgmt/glusterd/src/glusterd-utils.c | 2 +-
|
|
|
d1681e |
xlators/mgmt/glusterd/src/glusterd-volume-set.c | 2 +-
|
|
|
d1681e |
4 files changed, 21 insertions(+), 3 deletions(-)
|
|
|
d1681e |
|
|
|
d1681e |
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
|
|
|
d1681e |
index e071b7d..7917d66 100644
|
|
|
d1681e |
--- a/cli/src/cli-cmd-parser.c
|
|
|
d1681e |
+++ b/cli/src/cli-cmd-parser.c
|
|
|
d1681e |
@@ -1739,6 +1739,24 @@ cli_cmd_volume_set_parse (struct cli_state *state, const char **words,
|
|
|
d1681e |
goto out;
|
|
|
d1681e |
}
|
|
|
d1681e |
}
|
|
|
d1681e |
+
|
|
|
d1681e |
+ if ((strcmp (key, "cluster.brick-multiplex") == 0)) {
|
|
|
d1681e |
+ question = "Brick-multiplexing is supported only for "
|
|
|
d1681e |
+ "container workloads (CNS/CRS). Also it is "
|
|
|
d1681e |
+ "advised to make sure that either all "
|
|
|
d1681e |
+ "volumes are in stopped state or no bricks "
|
|
|
d1681e |
+ "are running before this option is modified."
|
|
|
d1681e |
+ "Do you still want to continue?";
|
|
|
d1681e |
+
|
|
|
d1681e |
+ answer = cli_cmd_get_confirmation (state, question);
|
|
|
d1681e |
+ if (GF_ANSWER_NO == answer) {
|
|
|
d1681e |
+ gf_log ("cli", GF_LOG_ERROR, "Operation "
|
|
|
d1681e |
+ "cancelled, exiting");
|
|
|
d1681e |
+ *op_errstr = gf_strdup ("Aborted by user.");
|
|
|
d1681e |
+ ret = -1;
|
|
|
d1681e |
+ goto out;
|
|
|
d1681e |
+ }
|
|
|
d1681e |
+ }
|
|
|
d1681e |
}
|
|
|
d1681e |
|
|
|
d1681e |
ret = dict_set_int32 (dict, "count", wordcount-3);
|
|
|
d1681e |
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
|
|
|
d1681e |
index d022532..6dfd819 100644
|
|
|
d1681e |
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
|
|
|
d1681e |
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
|
|
|
d1681e |
@@ -78,7 +78,7 @@ glusterd_all_vol_opts valid_all_vol_opts[] = {
|
|
|
d1681e |
* TBD: add a dynamic handler to set the appropriate value
|
|
|
d1681e |
*/
|
|
|
d1681e |
{ GLUSTERD_MAX_OP_VERSION_KEY, "BUG_NO_MAX_OP_VERSION"},
|
|
|
d1681e |
- { GLUSTERD_BRICK_MULTIPLEX_KEY, "enable"},
|
|
|
d1681e |
+ { GLUSTERD_BRICK_MULTIPLEX_KEY, "disable"},
|
|
|
d1681e |
/* Set this value to 0 by default implying brick-multiplexing
|
|
|
d1681e |
* behaviour with no limit set on the number of brick instances that
|
|
|
d1681e |
* can be attached per process.
|
|
|
d1681e |
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
|
|
|
d1681e |
index 80204e4..372d5f4 100644
|
|
|
d1681e |
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
|
|
|
d1681e |
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
|
|
|
d1681e |
@@ -111,7 +111,7 @@ is_brick_mx_enabled (void)
|
|
|
d1681e |
if (!ret)
|
|
|
d1681e |
ret = gf_string2boolean (value, &enabled);
|
|
|
d1681e |
|
|
|
d1681e |
- return ret ? _gf_true : enabled;
|
|
|
d1681e |
+ return ret ? _gf_false : enabled;
|
|
|
d1681e |
}
|
|
|
d1681e |
|
|
|
d1681e |
int
|
|
|
d1681e |
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
|
|
|
d1681e |
index 8cc756a..474587a 100644
|
|
|
d1681e |
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
|
|
|
d1681e |
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
|
|
|
d1681e |
@@ -3506,7 +3506,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
d1681e |
/* Brick multiplexing options */
|
|
|
d1681e |
{ .key = GLUSTERD_BRICK_MULTIPLEX_KEY,
|
|
|
d1681e |
.voltype = "mgmt/glusterd",
|
|
|
d1681e |
- .value = "on",
|
|
|
d1681e |
+ .value = "off",
|
|
|
d1681e |
.op_version = GD_OP_VERSION_3_10_0,
|
|
|
d1681e |
.validate_fn = validate_boolean,
|
|
|
d1681e |
.type = GLOBAL_DOC,
|
|
|
d1681e |
--
|
|
|
d1681e |
1.8.3.1
|
|
|
d1681e |
|