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

Dejan Muhamedagic dejanmm at fastmail.fm
Wed Mar 10 12:07:28 EST 2010


On Wed, Mar 10, 2010 at 05:53:16PM +0100, Rasto Levrinc wrote:
> 
> 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? :)

Well, for one it shouldn't affect many. If it does, then one
should notice, right? This is tricky and obviously there is no
single right way.

> 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 don't quite get this.

> I am still not sure, what is more intuitive and/or annoying.

Makes two of us. BTW, how does drbd-mc manage this?

Cheers,

Dejan

> 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.
> 
> 
> 
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker




More information about the Pacemaker mailing list