Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

Antw: Re: Q: "cib-last-written"

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


Ulrich.Windl at rz

Dec 1, 2011, 12:10 AM

Post #1 of 5 (288 views)
Permalink
Antw: Re: Q: "cib-last-written"

>>> "Gao,Yan" <ygao [at] suse> schrieb am 01.12.2011 um 06:55 in Nachricht
<4ED716BE.9090802 [at] suse>:
> Hi,
>
> On 11/30/11 21:35, Ulrich Windl wrote:
> > Hi!
> >
> > Simple question: when is the attribute "cib-last-written" in XML's "cib"
> element updated?
> When "//cib/configuration" is changed.

So why isn't that an attribute of <configuration> then?

>
> >
> > I have a CIB that was changed (new epoch) today, but the "cib-last-written"
> is "Thu Sep 29 08:24:01 2011"
> >
> > Regards,
> > Ulrich
> >
> >
> > _______________________________________________
> > Linux-HA mailing list
> > Linux-HA [at] lists
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
> >
>
> Regards,
> Gaoyan





_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


ygao at suse

Dec 1, 2011, 1:11 AM

Post #2 of 5 (283 views)
Permalink
Re: Antw: Re: Q: "cib-last-written" [In reply to]

On 12/01/11 16:10, Ulrich Windl wrote:
>>>> "Gao,Yan" <ygao [at] suse> schrieb am 01.12.2011 um 06:55 in Nachricht
> <4ED716BE.9090802 [at] suse>:
>> Hi,
>>
>> On 11/30/11 21:35, Ulrich Windl wrote:
>>> Hi!
>>>
>>> Simple question: when is the attribute "cib-last-written" in XML's "cib"
>> element updated?
>> When "//cib/configuration" is changed.
>
> So why isn't that an attribute of <configuration> then?
Actually besides that, changes on some attributes of <cib> will trigger
to update "cib-last-written" too, such as "validate-with".

Regards,
Gaoyan
--
Gao,Yan <ygao [at] suse>
Software Engineer
China Server Team, SUSE.
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


tserong at suse

Dec 1, 2011, 1:19 AM

Post #3 of 5 (289 views)
Permalink
Re: Antw: Re: Q: "cib-last-written" [In reply to]

On 12/01/2011 09:10 AM, Ulrich Windl wrote:
>>>> "Gao,Yan"<ygao [at] suse> schrieb am 01.12.2011 um 06:55 in Nachricht
> <4ED716BE.9090802 [at] suse>:
>> Hi,
>>
>> On 11/30/11 21:35, Ulrich Windl wrote:
>>> Hi!
>>>
>>> Simple question: when is the attribute "cib-last-written" in XML's "cib"
>> element updated?
>> When "//cib/configuration" is changed.
>
> So why isn't that an attribute of<configuration> then?

From:
http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/ch-cluster-options.html

"The reason for these fields to be placed at the top level instead of
with the rest of cluster options is simply a matter of parsing. These
options are used by the configuration database which is, by design,
mostly ignorant of the content it holds. So the decision was made to
place them in an easy to find location."

Regards,

Tim
--
Tim Serong
Senior Clustering Engineer
SUSE
tserong [at] suse
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Ulrich.Windl at rz

Dec 1, 2011, 4:48 AM

Post #4 of 5 (282 views)
Permalink
Re: Antw: Re: Q: "cib-last-written" [In reply to]

>>> Tim Serong <tserong [at] suse> schrieb am 01.12.2011 um 10:19 in Nachricht
<4ED74691.9000007 [at] suse>:
> On 12/01/2011 09:10 AM, Ulrich Windl wrote:
>>>>> "Gao,Yan"<ygao [at] suse> schrieb am 01.12.2011 um 06:55 in Nachricht
> > <4ED716BE.9090802 [at] suse>:
> >> Hi,
> >>
> >> On 11/30/11 21:35, Ulrich Windl wrote:
> >>> Hi!
> >>>
> >>> Simple question: when is the attribute "cib-last-written" in XML's "cib"
> >> element updated?
> >> When "//cib/configuration" is changed.
> >
> > So why isn't that an attribute of<configuration> then?
>
> From:
> http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/c
> h-cluster-options.html
>
> "The reason for these fields to be placed at the top level instead of
> with the rest of cluster options is simply a matter of parsing. These
> options are used by the configuration database which is, by design,
> mostly ignorant of the content it holds. So the decision was made to
> place them in an easy to find location."

Hi!

I wonder about that usefulness of that value, especially as any configuration change seems to increase the epoch anyway. I never saw that CRM cares about the cib-last-written string.

When talking about "easy to find locations", it was a mistake to use XML anyway ;-)

Regards,
Ulrich


_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


lmb at suse

Dec 3, 2011, 9:24 PM

Post #5 of 5 (272 views)
Permalink
Re: Antw: Re: Q: "cib-last-written" [In reply to]

On 2011-12-01T13:48:56, Ulrich Windl <Ulrich.Windl [at] rz> wrote:

> I wonder about that usefulness of that value, especially as any configuration change seems to increase the epoch anyway. I never saw that CRM cares about the cib-last-written string.

It is for easy inspection by admins and for display by UIs.


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 [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.