Hi, On Tue, Feb 23, 2010 at 09:54:19AM +0100, Alain.Moulle wrote: > Hi Dejan, > > That's weird because I've modified my crm configure command so that > target-role is in params like > you advise to me :
Nope, I said that all but target-role are instance attributes. > <primitive class="stonith" id="restofencenode3" type="external/ipmi"> > <instance_attributes id="restofencenode3-instance_attributes"> > <nvpair > id="restofencenode3-instance_attributes-target-role" > name="target-role" value="stopped"/> > </instance_attributes> > <meta_attributes id="restofencenode3-meta_attributes"> > <nvpair id="restofencenode3-meta_attributes-hostname" > name="hostname" value="node3"/> > <nvpair id="restofencenode3-meta_attributes-ipaddr" > name="ipaddr" value="12.1.1.123"/> > <nvpair id="restofencenode3-meta_attributes-userid" > name="userid" value="mylogin"/> > <nvpair id="restofencenode3-meta_attributes-password" > name="password" value="mypass"/> > <nvpair id="restofencenode3-meta_attributes-interface" > name="interface" value="lan"/> > </meta_attributes> > </primitive> > > but crm_verify -L -V always returns : > crm_verify[1391]: 2010/02/23_09:50:28 WARN: native_color: Resource > restofencenode1 cannot run anywhere > crm_verify[1391]: 2010/02/23_09:50:28 WARN: native_color: Resource > restofencenode3 cannot run anywhere > Warnings found during check: config may not be valid > > and effectively I can't start my stonith resource yet . And > moreover when I do : > crm resource restofencenode3 start, it adds a line in the > meta-attributes part : > <meta_attributes id="restofencenode3-meta_attributes"> > <nvpair id="restofencenode3-meta_attributes-hostname" > name="hostname" value="node3"/> > <nvpair id="restofencenode3-meta_attributes-ipaddr" > name="ipaddr" value="12.1.1.123"/> > <nvpair id="restofencenode3-meta_attributes-userid" > name="userid" value="mylogin"/> > <nvpair id="restofencenode3-meta_attributes-password" > name="password" value="mypass"/> > <nvpair id="restofencenode3-meta_attributes-interface" > name="interface" value="lan"/> > * <nvpair id="restofencenode3-meta_attributes-target-role" > name="target-role" value="Started"/>* > </meta_attributes> > whereas the /params/ line remains : > <nvpair id="restofencenode3-instance_attributes-target-role" > name="target-role" value="stopped"/> > which seems "conflictual" with the meta line ... > > You'll find all syslog messages joined , I've checked them but can't > find what's wrong ... Best to attach logs instead of pasting them inline. > _Post Scriptum_: note that when I tried to configure the resource > inside crm : > crm then > configure then > primitive restofencenode3 stonith:external/ipmi params > target-role=stopped meta hostname=node3 ipaddr=12.1.1.123 > userid=mylogin password=mypass interface=lan > it returns an error : > ERROR: restofencenode3: parameter target-role does not exist target-role is a meta attribute, i.e. it's the CRM proper. Others are parameters for the stonith plugin. > whereas when I call the whole crm command with same params and meta, > it does not return an error at command time ... > crm configure primitive restofencenode3 stonith:external/ipmi params > target-role=stopped meta hostname=node3 ipaddr=12.1.1.123 > userid=mylogin password=mypass interface=lan > (returns $?=0 and no error message) > > Thanks if you can get another idea from these traces. > Regards > Alain > > 1266916138 2010 Feb 23 10:08:58 node1 daemon debug stonithd [1818]: debug: > external_run_cmd: '/usr/lib64/stonith/plugins/external/ipmi status' output: > ipaddr, userid or password missing; check configuration Here's your problem. Thanks, Dejan _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
