[ClusterLabs] Thoughts on crm shell

Andrei Borzenkov arvidjaar at gmail.com
Thu Aug 22 06:47:01 EDT 2019

22.08.2019 12:49, Ulrich Windl пишет:
> Hi!
> It's been a while since I used crm shell, and now after having moved from SLES11 to SLES12 (jhaving to use it again), I realized a few things:
> 1) As the ptest command is crm_simulate now, shouldn't crm shell's ptest (in configure) be accomanied by a "simulate" command as well (declaring "ptest" as obsolete)?
> 2) Some commands in the "resource" group actually manipulate the CIB "configuration" section (and not the "status"). So why aren't those in "configure", but in "resource"?

My educated guess is that crmsh "resource" maps directly to
"crm_resource" ...

> Excamples: "utilization", "param", etc.

...  and these is simply wrapper around crm_resource functionality.

> The really bad thing is that crm shell insists on "commit" if you do an "up" from "configure".
> Also "configure" collects changes until commit, while "resource" commits immediately. Maybe that could be a criteria whcih commands should be in "configure", and which should be in "resource".

More information about the Users mailing list