[Cluster-devel] announcement: resource-agents release 3.9.5

2013-02-07 Thread Dejan Muhamedagic
Hello,

We've tagged today (Feb 7) a new stable resource-agents release
(3.9.5) in the upstream repository.

Big thanks go to all contributors! Needless to say, without you
this release would not be possible.

The Linux-HA resource agents set changes consist mainly of bug
fixes and a few improvements and new features. The most
important fix is for the missing unsolicited ARPs issue in
IPaddr2.

The following two features are worth mentioning too:

- support for RA tracing (see the README file for more details);
  your favourite UI should provide a way to turn trace on/off

- pgsql: support starting as Hot Standby

The full list of changes for the linux-ha RA set is available in
ChangeLog:

https://github.com/ClusterLabs/resource-agents/blob/master/ChangeLog

The rgmanager resource agents set received mainly bug fixes.

Please upgrade at the earliest opportunity.

Best,

The resource-agents maintainers



Re: [Cluster-devel] [PATCH] config/tools/xml: validate resulting cluster.rng with relaxng.rng

2013-02-07 Thread Jan Pokorný
Hello ,

On 07/02/13 09:24 +0100, Fabio M. Di Nitto wrote:
> Hi Jan,
> 
> On 2/6/2013 9:47 PM, Jan Pokorný wrote:
>> Doing so will guarantee the file is valid RELAX NG schema, not just
>> a valid XML.
>> 
>> Validating schema, relaxng.rng, was obtained directly from [1] and
>> matches directly to a version bundled with xmlcopyeditor in Fedora 17.
>> The same (modulo VCS headers, comments and spacing details) can be
>> obtained by combining schema as in the specification [2] and its
>> errata [3].
>> 
>> [1] http://relaxng.org/relaxng.rng
>> [2] http://relaxng.org/spec-20011203.html
>> [3] http://relaxng.org/spec-20011203-errata.html
> 
> this looks like a good idea, but i have one question.
> 
> Is there a specific reason why we need to ship/embed the file with our
> tarball? How bad is it to require the one installed on a system?

It is not bad at all, but you can hardly find it system-wide.  AFAIK
there is no standard in packaging such standalone single files
anywhere yet (see also, e.g., JavaScript libraries, everything is
usually bundled).  Once there is a wide-spread standard (if ever)
where such files are located within the distributions, relaxng.rng
can be dropped and dependency can be added.

> I can see it´s rather stable and hardly updated, but i prefer to avoid
> duplication if we can.

I share the same intention, however current situation does not seem
to be offering any other choice.

-- 
Jan



Re: [Cluster-devel] [PATCH] config/tools/xml: validate resulting cluster.rng with relaxng.rng

2013-02-07 Thread Fabio M. Di Nitto
Hi Jan,

On 2/6/2013 9:47 PM, Jan Pokorný wrote:
> Doing so will guarantee the file is valid RELAX NG schema, not just
> a valid XML.
> 
> Validating schema, relaxng.rng, was obtained directly from [1] and
> matches directly to a version bundled with xmlcopyeditor in Fedora 17.
> The same (modulo VCS headers, comments and spacing details) can be
> obtained by combining schema as in the specification [2] and its
> errata [3].
> 
> [1] http://relaxng.org/relaxng.rng
> [2] http://relaxng.org/spec-20011203.html
> [3] http://relaxng.org/spec-20011203-errata.html

this looks like a good idea, but i have one question.

Is there a specific reason why we need to ship/embed the file with our
tarball? How bad is it to require the one installed on a system?

I can see it´s rather stable and hardly updated, but i prefer to avoid
duplication if we can.

Fabio

> 
> Signed-off-by: Jan Pokorný 
> ---
>  config/tools/xml/Makefile |   2 +-
>  config/tools/xml/ccs_update_schema.in |   3 +-
>  config/tools/xml/relaxng.rng  | 335 
> ++
>  3 files changed, 338 insertions(+), 2 deletions(-)
>  create mode 100644 config/tools/xml/relaxng.rng
> 
> diff --git a/config/tools/xml/Makefile b/config/tools/xml/Makefile
> index 3c9e97c..a86eb01 100644
> --- a/config/tools/xml/Makefile
> +++ b/config/tools/xml/Makefile
> @@ -7,7 +7,7 @@ TARGET4 = cluster.rng
>  
>  SBINDIRT = $(TARGET1) $(TARGET2) $(TARGET3)
>  SHAREDIRSYMT = $(TARGET4)
> -RELAXNGDIRT = cluster.rng.in.head cluster.rng.in.tail
> +RELAXNGDIRT = cluster.rng.in.head cluster.rng.in.tail relaxng.rng
>  
>  all: $(TARGET1) $(TARGET2) $(TARGET3) $(TARGET4)
>  
> diff --git a/config/tools/xml/ccs_update_schema.in 
> b/config/tools/xml/ccs_update_schema.in
> index a5aa351..16ce9f7 100644
> --- a/config/tools/xml/ccs_update_schema.in
> +++ b/config/tools/xml/ccs_update_schema.in
> @@ -316,7 +316,8 @@ build_schema() {
>   return 1
>   }
>  
> - xmllint --noout $outputdir/cluster.rng || {
> + xmllint --noout --relaxng $rngdir/relaxng.rng $outputdir/cluster.rng \
> +   || {
>   echo "generated schema does not pass xmllint validation" >&2
>   return 1
>   }