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

Mailing List Archive: Linux-HA: Pacemaker

How to get supported meta attributes?

 

 

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


ygao at novell

Oct 5, 2008, 9:46 PM

Post #1 of 5 (985 views)
Permalink
How to get supported meta attributes?

Hi Andrew,
Do we have a convenient way to get a list of supported meta attributes
and available values for a specified type of object? If so, we could
keep it updated automatically in GUI insdead of do it manually:-)

Regards,
--
Yan Gao
China R&D Software Engineer
ygao [at] novell

Novell, Inc.
SUSE® Linux Enterprise 10
Your Linux is ready
http://www.novell.com/linux


_______________________________________________
Pacemaker mailing list
Pacemaker [at] clusterlabs
http://list.clusterlabs.org/mailman/listinfo/pacemaker


beekhof at gmail

Oct 5, 2008, 10:56 PM

Post #2 of 5 (918 views)
Permalink
Re: How to get supported meta attributes? [In reply to]

On Oct 6, 2008, at 6:46 AM, Yan Gao wrote:

> Hi Andrew,
> Do we have a convenient way to get a list of supported meta attributes
> and available values for a specified type of object?

No. It is documented in the configuration pdf though.
We previously discussed changing the configuration so that it was
possible to validate the meta attributes, but in the end decided
against it.

> If so, we could
> keep it updated automatically in GUI insdead of do it manually:-)


_______________________________________________
Pacemaker mailing list
Pacemaker [at] clusterlabs
http://list.clusterlabs.org/mailman/listinfo/pacemaker


ygao at novell

Oct 5, 2008, 11:24 PM

Post #3 of 5 (928 views)
Permalink
Re: How to get supported meta attributes? [In reply to]

On Mon, 2008-10-06 at 07:56 +0200, Andrew Beekhof wrote:
> On Oct 6, 2008, at 6:46 AM, Yan Gao wrote:
>
> > Hi Andrew,
> > Do we have a convenient way to get a list of supported meta attributes
> > and available values for a specified type of object?
>
> No. It is documented in the configuration pdf though.
> We previously discussed changing the configuration so that it was
> possible to validate the meta attributes, but in the end decided
> against it.
Maybe we could use meta-data instead of schemas to define them ?

> > If so, we could
> > keep it updated automatically in GUI insdead of do it manually:-)
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker [at] clusterlabs
> http://list.clusterlabs.org/mailman/listinfo/pacemaker
--
Yan Gao
China R&D Software Engineer
ygao [at] novell

Novell, Inc.
SUSE® Linux Enterprise 10
Your Linux is ready
http://www.novell.com/linux


_______________________________________________
Pacemaker mailing list
Pacemaker [at] clusterlabs
http://list.clusterlabs.org/mailman/listinfo/pacemaker


beekhof at gmail

Oct 5, 2008, 11:38 PM

Post #4 of 5 (921 views)
Permalink
Re: How to get supported meta attributes? [In reply to]

On Oct 6, 2008, at 8:24 AM, Yan Gao wrote:

> On Mon, 2008-10-06 at 07:56 +0200, Andrew Beekhof wrote:
>> On Oct 6, 2008, at 6:46 AM, Yan Gao wrote:
>>
>>> Hi Andrew,
>>> Do we have a convenient way to get a list of supported meta
>>> attributes
>>> and available values for a specified type of object?
>>
>> No. It is documented in the configuration pdf though.
>> We previously discussed changing the configuration so that it was
>> possible to validate the meta attributes, but in the end decided
>> against it.
> Maybe we could use meta-data instead of schemas to define them ?

That just creates one more place to maintain it I'm afraid.
The PE doesn't need it and the CIB wouldn't be using either (since
validation is done with schemas).

>>> If so, we could
>>> keep it updated automatically in GUI insdead of do it manually:-)
>>
>>
>> _______________________________________________
>> Pacemaker mailing list
>> Pacemaker [at] clusterlabs
>> http://list.clusterlabs.org/mailman/listinfo/pacemaker
> --
> Yan Gao
> China R&D Software Engineer
> ygao [at] novell
>
> Novell, Inc.
> SUSE® Linux Enterprise 10
> Your Linux is ready
> http://www.novell.com/linux
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker [at] clusterlabs
> http://list.clusterlabs.org/mailman/listinfo/pacemaker


_______________________________________________
Pacemaker mailing list
Pacemaker [at] clusterlabs
http://list.clusterlabs.org/mailman/listinfo/pacemaker


lmb at suse

Oct 13, 2008, 11:43 AM

Post #5 of 5 (892 views)
Permalink
Re: How to get supported meta attributes? [In reply to]

On 2008-10-06T08:38:04, Andrew Beekhof <beekhof [at] gmail> wrote:

>>> We previously discussed changing the configuration so that it was
>>> possible to validate the meta attributes, but in the end decided
>>> against it.
>> Maybe we could use meta-data instead of schemas to define them ?
>
> That just creates one more place to maintain it I'm afraid.
> The PE doesn't need it and the CIB wouldn't be using either (since
> validation is done with schemas).

But surely every pengine process knows which meta_attributes it would
consider "valid" for a given resource class
(primitive/clone/master_slave). Would it not be possible to enumerate
them in the meta-date call, so that the GUI has more hints?

Afterall, all data is available in include/crm/msg_xml.h - could that be
changed to an array which could be dumped via pengine metadata, or to a
public .h which the mgmtd/CLI could include during build?

Clearly, being more assisting to the UIs would be helpful ;-)

One imagines that with a real parser for them, some code even could be
consolidated to check their values etc. Just thinking. Nothing urgent
;-)


Regards,
Lars

--
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde


_______________________________________________
Pacemaker mailing list
Pacemaker [at] clusterlabs
http://list.clusterlabs.org/mailman/listinfo/pacemaker

Linux-HA pacemaker 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.