diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2015-12-16 21:47:15 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2015-12-17 23:39:06 +0100 |
commit | b750ea1e19807bdfc5422714a6f0a00c6293dfe0 (patch) | |
tree | 1dcda5eba21ff9b14c25d8dc63661e3a9435db8a | |
parent | 57e78411d1f57e3a7247360ab1d971645021859a (diff) | |
download | clufter-b750ea1e19807bdfc5422714a6f0a00c6293dfe0.tar.gz clufter-b750ea1e19807bdfc5422714a6f0a00c6293dfe0.tar.xz clufter-b750ea1e19807bdfc5422714a6f0a00c6293dfe0.zip |
filters/cibprelude2cibcompact[resources]: exclusive RGs unsupported
(RG = resource group)
Interim resolution for <https://bugzilla.redhat.com/1206640>.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r-- | filters/cib/configuration/resources/__init__.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/filters/cib/configuration/resources/__init__.py b/filters/cib/configuration/resources/__init__.py index 4494567..0885382 100644 --- a/filters/cib/configuration/resources/__init__.py +++ b/filters/cib/configuration/resources/__init__.py @@ -315,6 +315,33 @@ cibprelude2cibcompact = ('''\ ]/@id ] ]"/> + + <!-- exclusive resource groups (pre-conversion state) not supported yet --> + <xsl:template match="template[ + @provider = '%(package_name)s' + and + @type = 'temporary-service' + and + meta_attributes/nvpair[ + @name = 'exclusive' + and + ( + @value = 'yes' + or + @value > 0 + ) + ] + ]"> + <xsl:message terminate="yes"> + <xsl:value-of select="concat('Cannot convert resource group', + ' when exclusive (could be mimicked', + ' using utilization properties or', + ' highly unscalable set of', + ' anti-colocations): ', + substring-after(@id, 'SERVICE-'), + ' [https://bugzilla.redhat.com/1206640#c2]')"/> + </xsl:message> + </xsl:template> ''') % dict(package_name=package_name()) ### |