Mailing List Archive

Problems in XML CIB
Hello,

I tried to understand the structure of the XML CIB a little bit better, and I found at least two major problems:

1) the "nvpair" element is missing a "datatype": As a consequence, generic interpretation or checking of nvpair out of context is difficult. Instead the application must know what the individual types of the variables are (e.g. "cluster-recheck-interval").

2) The "id"s are not free of semantic: An ID only needs one property: "Two IDs are equal iff their objects are the same". In contrast, IDs are rich of semantics in the CIB, e.g. id="cib-bootstrap-options-cluster-infrastructure". Also, "id-like" attributes are longer than needed (e.g. "transition-key", "transition-magic", "op-digest"): I see little sense adding extra information to a universally unique ID, despite of the fact that I don't see why a "local" cluster resource needs a universally unique ID at all.A better approach would be to use just some sequence number when assigning a new id. Wherever this will break using the XML CIB, the XML structure should be fixed instead. As a contrast, the "dc-uuid" attribute just uses the local hostname (without domain), which most likely is not (as the name might suggest) universally unique.

3) Data types are used inconsistently: In "op" elements, the "interval" attribute is in "free form" time specification, like "30s", while the interval elsewhere (e.g. "lrm_rsc_op") is in milliseconds. Timestamps in "lrm_rsc_op" usually use "ctime" values, but attribute "cib-last-written" is using an ASCII string.

Regards,
Ulrich


_______________________________________________
ha-wg-technical mailing list
ha-wg-technical@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/ha-wg-technical
Re: Problems in XML CIB [ In reply to ]
On 2011-11-17T09:09:29, Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> wrote:

> Hello,
>
> I tried to understand the structure of the XML CIB a little bit better, and I found at least two major problems:

That's something to discuss on the pacemaker mailing list.

"Major problems" is, of course, subject to interpretation. But patches
are welcome.


Regards,
Lars

--
Architect Storage/HA
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde

_______________________________________________
ha-wg-technical mailing list
ha-wg-technical@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/ha-wg-technical
Re: [Linux-HA] Problems in XML CIB [ In reply to ]
On Thu, Nov 17, 2011 at 8:18 PM, Lars Marowsky-Bree <lmb@suse.com> wrote:
> On 2011-11-17T09:09:29, Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> wrote:
>
>> Hello,
>>
>> I tried to understand the structure of the XML CIB a little bit better, and I found at least two major problems:
>
> That's something to discuss on the pacemaker mailing list.
>
> "Major problems" is, of course, subject to interpretation. But patches
> are welcome.

Actually, in these three cases, not really.

>
>
> Regards,
>    Lars
>
> --
> Architect Storage/HA
> SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg)
> "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
ha-wg-technical mailing list
ha-wg-technical@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/ha-wg-technical