[Pacemaker] Handling multiple attribute sets (cs#26435fdfd488)

Rasto Levrinc rasto.levrinc at linbit.com
Wed Mar 10 11:53:16 EST 2010


On Wed, March 10, 2010 5:43 pm, Dejan Muhamedagic wrote:
> On Wed, Mar 10, 2010 at 04:58:48PM +0100, Dejan Muhamedagic wrote:
>
>> Hi,
>>
>>
>> On Wed, Mar 10, 2010 at 04:24:16PM +0100, Lars Marowsky-Bree wrote:
>>
>>> Hi all, Dejan,
>>>
>>>
>>> the above changeset aims to improve the behaviour with multiple
>>> attribute sets - right now, the crm_resource et al complain that they
>>>  can't figure out which one to set, so the changeset simply
>>> clears/updates all of them.
>>>
>>> I disagree, for the following reasons:
>>>
>>>
>>> First, I frequently have a "stop" attribute set on a specific
>>> resource within a group to make the group start up only to that point;
>>> I don't
>>> want that overwritten automatically. In fact, I might just want to
>>> modify the group target-role, regardless of the value of its
>>> children.
>>
>> Yes, you might, but why don't then just modify the target-role
>> attribute. I have been thinking about this too and to me
>>
>> # crm resource start g
>>
>>
>> seems to express clear intent to start the whole group g. Don't forget
>> that our minds are plagued by all the technical details about how the
>> CIB is implemented.
>>
>
> Thinking again about it, dropping target-role from the members of
> the group is really wrong. I'll change that.

What made you to change your mind? :)

BTW, you can start group, clearing all the target-roles from children and
then set target roles of children, to get the configuration lmb requires.
I am still not sure, what is more intuitive and/or annoying.

Rasto


-- 
: Dipl-Ing Rastislav Levrinc
: DRBD-MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.






More information about the Pacemaker mailing list