[Pacemaker] Re: [Linux-HA] the crm command line interface

Serge Dubrouski sergeyfd at gmail.com
Mon Sep 8 17:29:36 EDT 2008


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. 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. Or a set of interactive menus
with possible attributes and  operations that would allow user to
select necessary attributes and set values for them.

Then:

crm(live)configure# primitive myIP IPaddr params ip=192.168.1.130 op
start op monitor
crm(live)configure# commit
Call cib_create failed (-47): Update does not conform to the
configured schema/DTD
<null>
ERROR: could not create myIP
crm(live)configure#

But if I create ip.xml file like this:

     <resources>
       <primitive class="ocf" id="myIP" type="IPaddr" provider="heartbeat">
          <instance_attributes id="myIP_attributes">
               <nvpair id="myIP_ip" name="ip" value="192.168.1.130"/>
           </instance_attributes>
           <operations>
             <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"/>
           </operations>
         </primitive>
     </resources>

and then run cibadmin -R I'm able to create myIP but then your tool
complains like this:

ERROR: syntax error:
op start interval=30s timeout=30s
op stop interval=30s timeout=30s



Serge.

On Fri, Sep 5, 2008 at 12:29 PM, Dejan Muhamedagic <dejanmm at fastmail.fm> wrote:
> On Fri, Sep 05, 2008 at 10:54:01AM -0600, Serge Dubrouski wrote:
>> On Fri, Sep 5, 2008 at 10:38 AM, Dejan Muhamedagic <dejanmm at fastmail.fm> wrote:
>> > Hi Serge,
>> >
>> > On Fri, Sep 05, 2008 at 09:42:41AM -0600, Serge Dubrouski wrote:
>> >> Hello -
>> >>
>> >> It's a really great tool. Great job!
>> >
>> > Thanks.
>> >
>> >> Here are my expirience
>> >> (pacemaker-0.6.5-2.2 + Heartbeat 2.1.3-23.1:
>> >>
>> >> Nodes.
>> >>
>> >> 1. Status and Show Node show the exactly the same information. Even
>> >> when you provide node name in show command it shows all nodes. Is it
>> >> supposed so?
>> >
>> > No. Actually, I'm looking for input here. Don't exactly know
>> > what's interesting for users. There are two kinds of information:
>> > provided by the CIB (node type and node attributes) and by
>> > crmadmin (if the node's online and if it is DC).
>> >
>> >> cib.
>> >>
>> >> Couldn't test it because crm_shadow wasn't found. Looks like it's a new tool.
>> >
>> > Yes. That's a very useful new thing provided by Andrew. It
>> > basically allows you to test the configuration out of the
>> > cluster.
>> >
>> >> Resource.
>> >>
>> >> 1. Status without parameters shows a list of resources but doesn't
>> >> show the real status of them onlinr/stopped.
>> >
>> > Hmm. Strange. Here it says:
>> >
>> > crm(live)# resource status
>> > Resource Group: g1
>> >    ip2 (ocf::heartbeat:IPaddr) Started
>>
>> Here is what it says here:
>>
>> Clone Set: DoFencing
>>     child_DoFencing:0   (stonith:external/xen0)
>>     child_DoFencing:1   (stonith:external/xen0)
>> Master/Slave Set: ms-drbd0
>>     drbd0:0     (ocf::heartbeat:drbd)
>>     drbd0:1     (ocf::heartbeat:drbd)
>> Resource Group: myGroup
>>     myIP        (ocf::heartbeat:IPaddr)
>>     fs0 (ocf::heartbeat:Filesystem)
>>     myPgsql     (ocf::heartbeat:pgsql)
>>
>> And when I stop a resource it shows the same. But that's probably
>> because I have 0.6.5.
>
> Yes, looks like that changed too. I'll see if there's something
> else available.
>
> Thanks,
>
> Dejan
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at clusterlabs.org
> http://list.clusterlabs.org/mailman/listinfo/pacemaker
>



-- 
Serge Dubrouski.




More information about the Pacemaker mailing list