[Linux-ha-dev] Patch: mysql ocf ra return codes
Dominik Klein
dk at in-telegence.net
Tue May 13 08:09:38 MDT 2008
The RA returned OCF_ERR_ARGS when datadir, config, user or group was not
found. That is node specific and should not prevent the resource from
running on any other node.
ERR_ARGS tells the cluster that the xml config is wrong and that
prevents the resource from running on any node.
IRC snippet:
[13:11] <kleind> beekhof: could a failed start op on node2 prevent a
resource from being started on node1?
[13:11] <kleind> node2 failcount=infinity
[13:11] <kleind> node1 no failcount
[13:44] <beekhof> yes
[13:44] <beekhof> depends why it failed
[15:53] <beekhof> kleind: ie. if the RA returns with "invalid configuration"
[15:54] <kleind> beekhof: it returned 2 (err args)
[15:54] <beekhof> thats the one
[15:54] <kleind> that prevents the res to run on any node?
[15:55] <kleind> because it thinks the resources cluster config is wrong
[15:55] <beekhof> yes
[15:55] <kleind> xml config
[15:55] <kleind> makes sense
[15:55] <beekhof> which is what the rc means :)
[15:55] <kleind> ok
[15:55] <kleind> then the RA is crap ;)
[15:55] <beekhof> yup :)
[15:55] <kleind> i'll see if I can fix the mysql RA on that
[15:56] <kleind> for testing, I moved my mysql installation to another
directory on one node
[15:56] <kleind> that shoudlnt cause mysql not to run on any node
[15:57] <beekhof> correct
[15:58] <kleind> so, what should be returned when $configfile is not
found on a node? err_installed I guess?
[15:58] <beekhof> sounds about right
Regards
Dominik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mysql.patch
Type: text/x-patch
Size: 1313 bytes
Desc: not available
Url : http://lists.community.tummy.com/pipermail/linux-ha-dev/attachments/20080513/f09341ec/mysql.bin
More information about the Linux-HA-Dev
mailing list