pgsql ra (WAS: Re: [Linux-ha-dev] ids ra)

Serge Dubrouski sergeyfd at gmail.com
Mon Dec 10 08:58:03 MST 2007


That is not true. validate_all isn't called for "methods" and "meta-data"

On Dec 10, 2007 8:10 AM, Dominik Klein <dk at in-telegence.net> wrote:
> > OCF resource agents should be able to run meta-data, monitor, and
> > stop even when there is no required software installed:
> >
> > - meta-data should run ok
> > - monitor should return 7 (resource stopped)
> > - stop should return 0 (success)
> >
> > Can you please fix that?
>
> I think this also needs fixing in the pgsql RA. Because *every* time it
> is run, it calls:
>
> pgsql_validate_all() {
>
>      check_binary $SH
>      check_binary $OCF_RESKEY_pgctl
>      check_binary $OCF_RESKEY_psql
>
>      return $OCF_SUCCESS
> }
>
> if ! pgsql_validate_all
> then
>      exit $OCF_ERR_CONFIGURED
> fi
>
> This is a problem
>
> a) if Postgres is not installed
> b) if Postgres is installed on a shared disc, which is not mounted yet
> (e.g. in a group configuration)
>
> 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/
>



-- 
Serge Dubrouski.


More information about the Linux-HA-Dev mailing list