cluster: STABLE3 - config: enable the CMAN_PIPE in ccs_config_validate

Christine Caulfield chrissie at fedoraproject.org
Thu Oct 29 09:16:14 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=f6f23734ebb47d6ed18bad53faf19fd25ff76c28
Commit:        f6f23734ebb47d6ed18bad53faf19fd25ff76c28
Parent:        c0b0ebc61541195890914126ac92d91ba625e824
Author:        Christine Caulfield <ccaulfie at redhat.com>
AuthorDate:    Thu Oct 29 09:14:31 2009 +0000
Committer:     Christine Caulfield <ccaulfie at redhat.com>
CommitterDate: Thu Oct 29 09:14:31 2009 +0000

config: enable the CMAN_PIPE in ccs_config_validate

Setting CMAN_PIPE in ccs_config_validate means that any cman-preconfig
errors will be printed on stderr if the configuration fails the
cman validation steps.

Signed-off-by: Fabio M Di Nitto <fdinitto at redhat.com>
Signed-off-by: Christine Caulfield <ccaulfie at redhat.com>
---
 config/tools/xml/ccs_config_validate.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/config/tools/xml/ccs_config_validate.in b/config/tools/xml/ccs_config_validate.in
index e241cd3..7970507 100644
--- a/config/tools/xml/ccs_config_validate.in
+++ b/config/tools/xml/ccs_config_validate.in
@@ -157,8 +157,10 @@ lecho "Config interface set to: $COROSYNC_DEFAULT_CONFIG_IFACE"
 if [ -n "$noloadtest" ]; then
 	cp $COROSYNC_CLUSTER_CONFIG_FILE $tempfile
 else
+	export CMAN_PIPE=2
 	if ! ccs_config_dump > $tempfile; then
 		[ -z "$notempfilerm" ] && rm -f $tempfile
+		echo
 		echo "Unable to get the configuration" >&2
 		exit 255
 	fi


More information about the cluster-commits mailing list