All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cluster-devel] [cluster.git/STABLE32][PATCH] xml: ccs_update_schema: be verbose about extraction fail
@ 2014-04-29 21:30 Jan Pokorný
  2014-04-30  6:49 ` Fabio M. Di Nitto
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Pokorný @ 2014-04-29 21:30 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Previously, the distillation of resource-agents' metadata could fail
from unexpected reasons without any evidence ever being made, unlike
in case of fence-agents.  Also "no metadata" and "issue with their
extraction" will allegedly yield the same outcome, so it is reflected
in the comments being emitted to the schema for both sorts of agents.

Signed-off-by: Jan Pokorn? <jpokorny@redhat.com>
---
 config/tools/xml/ccs_update_schema.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/config/tools/xml/ccs_update_schema.in b/config/tools/xml/ccs_update_schema.in
index 98ed885..b63c987 100644
--- a/config/tools/xml/ccs_update_schema.in
+++ b/config/tools/xml/ccs_update_schema.in
@@ -215,6 +215,9 @@ generate_ras() {
 		lecho " ras: processing $(basename $i)"
 		$i meta-data 2>/dev/null | xsltproc $rngdir/ra2rng.xsl - >> \
 			"$outputdir/resources.rng.cache" 2>/dev/null
+		[ "$?" != 0 ] && \
+			echo "  <!-- Problem evaluating metadata for $i" \
+				"-->" >> "$outputdir/resources.rng.cache"
 	done
 	cat $rngdir/resources.rng.mid >> "$outputdir/resources.rng.cache"
 	lecho " ras: generating ref data"
@@ -301,8 +304,8 @@ generate_fas() {
 			xsltproc $rngdir/fence2rng.xsl - >> \
 			"$outputdir/fence_agents.rng.cache" 2>/dev/null
 		[ "$?" != 0 ] && \
-			echo "      <!-- No metadata for $i -->" >> \
-				"$outputdir/fence_agents.rng.cache"
+			echo "      <!-- Problem evaluating metadata for $i" \
+				"-->" >> "$outputdir/fence_agents.rng.cache"
 	done
 	cat $rngdir/fence.rng.tail >> "$outputdir/fence_agents.rng.cache"
 }
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Cluster-devel] [cluster.git/STABLE32][PATCH] xml: ccs_update_schema: be verbose about extraction fail
  2014-04-29 21:30 [Cluster-devel] [cluster.git/STABLE32][PATCH] xml: ccs_update_schema: be verbose about extraction fail Jan Pokorný
@ 2014-04-30  6:49 ` Fabio M. Di Nitto
  0 siblings, 0 replies; 2+ messages in thread
From: Fabio M. Di Nitto @ 2014-04-30  6:49 UTC (permalink / raw)
  To: cluster-devel.redhat.com

ACK

Fabio

On 4/29/2014 11:30 PM, Jan Pokorn? wrote:
> Previously, the distillation of resource-agents' metadata could fail
> from unexpected reasons without any evidence ever being made, unlike
> in case of fence-agents.  Also "no metadata" and "issue with their
> extraction" will allegedly yield the same outcome, so it is reflected
> in the comments being emitted to the schema for both sorts of agents.
> 
> Signed-off-by: Jan Pokorn? <jpokorny@redhat.com>
> ---
>  config/tools/xml/ccs_update_schema.in | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/config/tools/xml/ccs_update_schema.in b/config/tools/xml/ccs_update_schema.in
> index 98ed885..b63c987 100644
> --- a/config/tools/xml/ccs_update_schema.in
> +++ b/config/tools/xml/ccs_update_schema.in
> @@ -215,6 +215,9 @@ generate_ras() {
>  		lecho " ras: processing $(basename $i)"
>  		$i meta-data 2>/dev/null | xsltproc $rngdir/ra2rng.xsl - >> \
>  			"$outputdir/resources.rng.cache" 2>/dev/null
> +		[ "$?" != 0 ] && \
> +			echo "  <!-- Problem evaluating metadata for $i" \
> +				"-->" >> "$outputdir/resources.rng.cache"
>  	done
>  	cat $rngdir/resources.rng.mid >> "$outputdir/resources.rng.cache"
>  	lecho " ras: generating ref data"
> @@ -301,8 +304,8 @@ generate_fas() {
>  			xsltproc $rngdir/fence2rng.xsl - >> \
>  			"$outputdir/fence_agents.rng.cache" 2>/dev/null
>  		[ "$?" != 0 ] && \
> -			echo "      <!-- No metadata for $i -->" >> \
> -				"$outputdir/fence_agents.rng.cache"
> +			echo "      <!-- Problem evaluating metadata for $i" \
> +				"-->" >> "$outputdir/fence_agents.rng.cache"
>  	done
>  	cat $rngdir/fence.rng.tail >> "$outputdir/fence_agents.rng.cache"
>  }
> 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-30  6:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-29 21:30 [Cluster-devel] [cluster.git/STABLE32][PATCH] xml: ccs_update_schema: be verbose about extraction fail Jan Pokorný
2014-04-30  6:49 ` Fabio M. Di Nitto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.