diff options
Diffstat (limited to 'filters/cluster/rm/failoverdomains/__init__.py')
-rw-r--r-- | filters/cluster/rm/failoverdomains/__init__.py | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/filters/cluster/rm/failoverdomains/__init__.py b/filters/cluster/rm/failoverdomains/__init__.py index 299b1f1..6923c51 100644 --- a/filters/cluster/rm/failoverdomains/__init__.py +++ b/filters/cluster/rm/failoverdomains/__init__.py @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# Copyright 2015 Red Hat, Inc. +# Copyright 2016 Red Hat, Inc. # Part of clufter project # Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt) __author__ = "Jan Pokorný <jpokorny @at@ Red Hat .dot. com>" @@ -19,4 +19,25 @@ ccs_revitalize = '''\ ' with repeated name (', @name, ')')"/> </xsl:message> </xsl:template> + <!-- warn on empty restricted failoverdomains + rgmanager/src/daemons/groups.c:consider_start:instead of start req. + http://oss.clusterlabs.org/pipermail/users/2016-January/002176.html + --> + <xsl:template match="failoverdomain[ + @restricted != '' + and + contains('123456789', + substring(@restricted, 1, 1)) + and + not(failoverdomainnode) + ]"> + <xsl:message> + <xsl:value-of select="concat('WARNING: empty restricted failoverdomain', + ' means associated resource groups', + ' will not start (', @name, ')')"/> + </xsl:message> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/> + </xsl:copy> + </xsl:template> ''' |