[Pacemaker] Regarding Stonith RAs
neha chatrath
nehachatrath at gmail.com
Wed Nov 16 12:19:30 UTC 2011
Hello,
Looks like a broken installation. I guess that metadata for other
resource classes works fine. It could be some issue with
stonith-ng. Did you notice any messages from stonith-ng?
A>> Yes, metadata for other resource classes like ocf/heartbeat, ocf/linbit
is working fine.
Problem is seen only with Stonith resource class .
No stonith-ng related errors are visible in the log file.
Following are some excerpts from log file:
"Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug:
Implicit directive: apiauth stonithd uid=root
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug:
uid=root, gid=<null>
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug: Implicit
directive: apiauth stonith-ng uid=root
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug:
uid=root, gid=<null>
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug: Implicit
directive: apiauth attrd uid=hacluster
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug:
uid=hacluster, gid=<null>
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug: Implicit
directive: apiauth crmd uid=hacluster
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug:
uid=hacluster, gid=<null>
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug: Implicit
directive: apiauth pingd uid=root
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug:
uid=root, gid=<null>
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug: Implicit
directive: respawn hacluster /usr/lib/heartbeat/ccm
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: info: respawn
directive: hacluster /usr/lib/heartbeat/ccm
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug: Implicit
directive: respawn hacluster /usr/lib/heartbeat/cib
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: info: respawn
directive: hacluster /usr/lib/heartbeat/cib
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug: Implicit
directive: respawn root /usr/lib/heartbeat/lrmd -r
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: info: respawn
directive: root /usr/lib/heartbeat/lrmd -r
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug: Implicit
directive: respawn root /usr/lib/heartbeat/stonithd
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: info: respawn
directive: root /usr/lib/heartbeat/stonithd
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug: Implicit
directive: respawn hacluster /usr/lib/heartbeat/attrd
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: info: respawn
directive: hacluster /usr/lib/heartbeat/attrd
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug: Implicit
directive: respawn hacluster /usr/lib/heartbeat/crmd
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: info: respawn
directive: hacluster /usr/lib/heartbeat/crmd
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug:
uid=hacluster, gid=<null>
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug:
uid=hacluster, gid=<null>
Nov 14 11:54:30 ggns2mexsatsdp17.hsc.com heartbeat: [3659]: debug:
uid=root, gid=<null>
....
....
...
v 14 11:54:45 ggns2mexsatsdp17.hsc.com heartbeat: [3661]: info: Starting
child client "/usr/lib/heartbeat/lrmd -r" (0,0)
Nov 14 11:54:45 ggns2mexsatsdp17.hsc.com heartbeat: [3661]: info: Starting
child client "/usr/lib/heartbeat/stonithd" (0,0)
Nov 14 11:54:45 ggns2mexsatsdp17.hsc.com heartbeat: [3976]: info: Starting
"/usr/lib/heartbeat/lrmd -r" as uid 0 gid 0 (pid 3976)
Nov 14 11:54:45 ggns2mexsatsdp17.hsc.com heartbeat: [3977]: info: Starting
"/usr/lib/heartbeat/stonithd" as uid 0 gid 0 (pid 3977)
Nov 14 11:54:45 ggns2mexsatsdp17.hsc.com heartbeat: [3661]: info: Starting
child client "/usr/lib/heartbeat/attrd" (495,489)
Nov 14 11:54:45 ggns2mexsatsdp17.hsc.com heartbeat: [3661]: info: Starting
child client "/usr/lib/heartbeat/crmd" (495,489)
....
....
Nov 14 11:54:46 ggns2mexsatsdp17.hsc.com stonithd: [3977]: debug:
apichan=0x9a36368
Nov 14 11:54:46 ggns2mexsatsdp17.hsc.com heartbeat: [3661]: debug:
create_seq_snapshot_table:no missing packets found for node
ggns2mexsatsdp17.hsc.com
Nov 14 11:54:46 ggns2mexsatsdp17.hsc.com heartbeat: [3661]: debug: Signing
on API client 3975 (cib)
Nov 14 11:54:46 ggns2mexsatsdp17.hsc.com stonithd: [3977]: debug:
callback_chan=0x9a36210
Nov 14 11:54:46 ggns2mexsatsdp17.hsc.com stonithd: [3977]: notice:
/usr/lib/heartbeat/stonithd start up successfully
> ....
>
.....
Nov 14 13:16:57 ggns2mexsatsdp17.hsc.com lrmd: [3976]: debug:
unregister_client: client lrmadmin [pid:10061] is unregistered
Nov 14 13:16:57 ggns2mexsatsdp17.hsc.com lrmd: [3976]: debug:
on_msg_register:client lrmadmin [10062] registered
Nov 14 13:16:57 ggns2mexsatsdp17.hsc.com lrmd: [3976]: notice:
on_msg_get_rsc_types: can not find this RA class stonith"
Thanks and regards
Neha Chatrath
> ----------------------------------------------------------------------
>
>
> Date: Wed, 16 Nov 2011 11:12:12 +0100
> From: Dejan Muhamedagic <dejanmm at fastmail.fm>
> To: The Pacemaker cluster resource manager
> <pacemaker at oss.clusterlabs.org>
> Subject: Re: [Pacemaker] Regarding Stonith RAs
> Message-ID: <20111116101211.GA4938 at walrus.homenet>
> Content-Type: text/plain; charset=us-ascii
>
> Hi,
>
> On Tue, Nov 15, 2011 at 08:44:45AM +0530, neha chatrath wrote:
> > Hello Dejan,
> >
> > I am using Cluster Glue version 1.0.7.
> > Also this does not seem to be a problem with a specific Stonith agent
> like
> > IPMI, I think it is more of an issue with all the Stonith agents.
> > I have tried configuring another test Stonith agent e.g. Suicide and I am
> > facing exactly the same issue.
>
> Looks like a broken installation. I guess that metadata for other
> resource classes works fine. It could be some issue with
> stonith-ng. Did you notice any messages from stonith-ng?
>
> Thanks,
>
> Dejan
>
> > Kindly please suggest.
> >
> > Thanks and regards
> > Neha Chatrath
> >
> > Date: Mon, 14 Nov 2011 15:41:43 +0100
> > From: Dejan Muhamedagic <dejanmm at fastmail.fm>
> > To: The Pacemaker cluster resource manager
> > <pacemaker at oss.clusterlabs.org
> > >
> > Subject: Re: [Pacemaker] Regarding Stonith RAs
> > Message-ID: <20111114144142.GA3735 at squib>
> > Content-Type: text/plain; charset=us-ascii
> >
> > Hi,
> >
> > On Mon, Nov 14, 2011 at 02:05:49PM +0530, neha chatrath wrote:
> > > Hello,
> > > I am facing issue in configuring a Stonith resource in my system of
> > cluster
> > > with 2 nodes.
> > > Whenever I try to give the following command:
> > > "crm configure primitive app_fence stonith::external/ipmi params
> hostname=
> > > ggns2mexsatsdp17.hsc.com ipaddr=192.168.113.17 userid=root
> > > passwd=pass at abc123" ,
> > > I get the following errors:
> > >
> > > "ERROR: stonith:external/ipmi: could not parse meta-data:
> >
> > Which version of cluster-glue do you have installed? There is a
> > serious issue with external/ipmi in version 1.0.8, we'll make a
> > new release ASAP.
> >
> > Thanks,
> >
> > Dejan
> >
> >
> > On Mon, Nov 14, 2011 at 2:05 PM, neha chatrath <nehachatrath at gmail.com
> >wrote:
> >
> > > Hello,
> > > I am facing issue in configuring a Stonith resource in my system of
> > > cluster with 2 nodes.
> > > Whenever I try to give the following command:
> > > "crm configure primitive app_fence stonith::external/ipmi params
> hostname=
> > > ggns2mexsatsdp17.hsc.com ipaddr=192.168.113.17 userid=root
> > > passwd=pass at abc123" ,
> > > I get the following errors:
> > >
> > > "ERROR: stonith:external/ipmi: could not parse meta-data:
> > > Traceback (most recent call last):
> > > File "/usr/sbin/crm", line 41, in <module>
> > > crm.main.run()
> > > File "/usr/lib/python2.6/site-packages/crm/main.py", line 249, in run
> > > if parse_line(levels,shlex.split(' '.join(args))):
> > > File "/usr/lib/python2.6/site-packages/crm/main.py", line 145, in
> > > parse_line
> > > lvl.release()
> > > File "/usr/lib/python2.6/site-packages/crm/levels.py", line 68, in
> > > release
> > > self.droplevel()
> > > File "/usr/lib/python2.6/site-packages/crm/levels.py", line 87, in
> > > droplevel
> > > self.current_level.end_game(self._in_transit)
> > > File "/usr/lib/python2.6/site-packages/crm/ui.py", line 1524, in
> end_game
> > > self.commit("commit")
> > > File "/usr/lib/python2.6/site-packages/crm/ui.py", line 1425, in
> commit
> > > self._verify(mkset_obj("xml","changed"),mkset_obj("xml"))
> > > File "/usr/lib/python2.6/site-packages/crm/ui.py", line 1324, in
> _verify
> > > rc2 = set_obj_semantic.semantic_check(set_obj_all)
> > > File "/usr/lib/python2.6/site-packages/crm/cibconfig.py", line 280,
> in
> > > semantic_check
> > > rc = self.__check_unique_clash(set_obj_all)
> > > File "/usr/lib/python2.6/site-packages/crm/cibconfig.py", line 260,
> in
> > > __check_unique_clash
> > > process_primitive(node, clash_dict)
> > > File "/usr/lib/python2.6/site-packages/crm/cibconfig.py", line 245,
> in
> > > process_primitive
> > > if ra_params[ name ].get("unique") == "1":
> > > TypeError: 'NoneType' object is unsubscriptable
> > > "
> > > From /var/log/messages: following error is being reported from lrmd:
> "notice:
> > > on_msg_get_metadata: can not find the class stonith"
> > >
> > > It seems the it is not able to find any RAs related to Stonith.
> > >
> > > Following is the output of some crm commands:
> > > *crm(live)ra# classes*
> > > heartbeat
> > > lsb
> > > ocf / heartbeat linbit mcg pacemaker
> > > *stonith*
> > >
> > > *crm(live)ra# list ocf heartbeat*
> > > AoEtarget AudibleAlarm CTDB
> > > ClusterMon Delay Dummy
> > > EvmsSCC Evmsd Filesystem
> > > ICP IPaddr IPaddr2
> > > IPsrcaddr IPv6addr LVM
> > > LinuxSCSI MailTo ManageRAID
> > > ManageVE Pure-FTPd Raid1
> > > Route SAPDatabase SAPInstance
> > > SendArp ServeRAID SphinxSearchDaemon
> > > Squid Stateful SysInfo
> > > VIPArip VirtualDomain WAS
> > > WAS6 WinPopup Xen
> > > Xinetd anything apache
> > > conntrackd db2 drbd
> > > eDir88 exportfs fio
> > > iSCSILogicalUnit iSCSITarget ids
> > > iscsi jboss ldirectord
> > > mysql mysql-proxy nfsserver
> > > nginx oracle oralsnr
> > > pgsql pingd portblock
> > > postfix proftpd rsyncd
> > > scsi2reservation sfex syslog-ng
> > > tomcat vmware
> > >
> > > *crm(live)ra# list stonith*
> > >
> > > crm(live)ra#
> > >
> > > All the sotnith related RAs are present in
> > > /usr/lib/stonith/plugins/external.
> > >
> > > Following is the output of "ls command :
> > > [root at ggns2mexsatsdp17 ~]# ls /usr/lib/stonith/plugins/external/
> > >
> > > drac5 hetzner ibmrsa ipmi kdumpcheck nut
> > > output riloe ssh vmware xen0-ha
> > > dracmc-telnet hmchttp ibmrsa-telnet ippower9258 libvirt ouput
> > > rackpdu sbd vcenter xen0
> > >
> > > Can somebody please help me with this?
> > >
> > > Thanks and regards
> > > Neha Chatrath
> > >
> > >
> >
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20111116/c99bbeda/attachment.htm>
More information about the Pacemaker
mailing list