[Pacemaker] crm subshell 1.2.4 incompatible to pacemaker 1.1.9?

Michael Schwartzkopff misch at clusterbau.com
Wed May 15 13:53:15 UTC 2013


Am Mittwoch, 15. Mai 2013, 15:34:14 schrieb Dejan Muhamedagic:
(...)
> > > > So it should work since incompatibilities are resolved in crm higher
> > > > that
> > > > version 1.2.1. Anywas crm tells me nonsense:
> > > > 
> > > > # crm
> > > > crm(live)# node
> > > > crm(live)node# standby node1
> > > > ERROR: bad lifetime: node1
> > > 
> > > Your node is not named node1.
> > > check: crm node list
> > > 
> > > Maybe a typo, maybe some case-is-significant nonsense,
> > > maybe you just forgot to use the fqdn.
> > > maybe the check for "is this a known node name" is (now) broken?
> > > 
> > > 
> > > standby with just one argument checks if that argument
> > > happens to be a known node name,
> > > and assumes that if it is not,
> > > it "has to be" a lifetime,
> > > and the current node is used as node name...
> > > 
> > > Maybe we should invert that logic, and instead compare the single
> > > argument against allowed lifetime values (reboot, forever), and assume
> > > it is supposed to be a node name otherwise?
> > > 
> > > Then the error would become
> > > ERROR: unknown node name: node1
> > > 
> > > Which is probably more useful most of the time.
> > > 
> > > Dejan?
> > 
> > Something like this maybe:
> > 
> > diff --git a/modules/ui.py.in b/modules/ui.py.in
> > --- a/modules/ui.py.in
> > +++ b/modules/ui.py.in
> > 
> > @@ -1185,7 +1185,7 @@ class NodeMgmt(UserInterface):
> >          if not args:
> >              node = vars.this_node
> >          
> >          if len(args) == 1:
> > -            if not args[0] in listnodes():
> 
> > +            if args[0] in ("reboot", "forever"):
> Yes, I wanted to look at it again. Another complication is that
> the lifetime can be just about anything in that date ISO format.

I don't want to use lifetimes. But my crm does not recognize the node names. 
It least it seems so. It lists it correct, but the standby command causes 
trouble.

-- 
Dr. Michael Schwartzkopff
Guardinistr. 63
81375 München

Tel: (0163) 172 50 98
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130515/9291052f/attachment.htm>


More information about the Pacemaker mailing list