8 Sep 2008 23:53
Re: Re: [Linux-HA] the crm command line interface
Serge Dubrouski <sergeyfd@...>
2008-09-08 21:53:39 GMT
2008-09-08 21:53:39 GMT
On Mon, Sep 8, 2008 at 3:40 PM, Lars Marowsky-Bree <lmb@...> wrote: > On 2008-09-08T15:29:36, Serge Dubrouski <sergeyfd@...> wrote: > >> Hi, Dejan - >> >> I just tried to use your tool for creating primitives and honestly >> didn't like how it does it. Instead of typing a definition for a >> primitive/group/clone/etc... in one line that includes all possible >> attributes and operations I'd rather have a more interactive tool that >> would guide me through possible choices. > > Part of this could be provided through command-line completion, which > would be my personal preferences. Would be good but how one knows what is available? > >> For example "primitive myIP IPAddr" command could generate a generic >> XML template for a such primitive and put it into vi/emacs editor >> allowing user to change parameters and operations attributes. > > This will come; if you use a shadow CIB, it should allow you to edit the > generated/changed raw XML before committing. > >> Or a set of interactive menus with possible attributes and operations >> that would allow user to select necessary attributes and set values >> for them. > > "interactive menus" - we _are_ talking about a CLI, not a GUI here. You know, in old good times such thing did exist: 1. Create a primitive 2. Delete a primitive ....... 16. Commit 17. Exit Creating IPaddr primirive: 1. Add IP address 2. Add "Start" operation 3. Add "Stop" operation ..... And so on. > > > >> <op id="monitor_myIP" name="monitor" interval="30s" timeout="30s"/> >> <op id="start_myIP" interval="30s" name="start" timeout="30s"/> >> <op id="stop_myIP" interval="30s" name="stop" timeout="30s"/> > > intervals on non-monitor? The CLI probably refuses to parse this because > it's a semantic bug, which the DTD can't protect against But yes, > that's a bug. Please file it. A bug against what? CLI or cibadmin? > > > 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@... > http://list.clusterlabs.org/mailman/listinfo/pacemaker > -- -- Serge Dubrouski.