[Linux-ha-dev] Patch: mysql ocf ra return codes

Andrew Beekhof beekhof at gmail.com
Wed May 14 00:48:52 MDT 2008


pushed.  thanks!

2008/5/13 Dominik Klein <dk at in-telegence.net>:
> 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
>
> _______________________________________________________
>  Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
>  http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>  Home Page: http://linux-ha.org/
>
>


More information about the Linux-HA-Dev mailing list