On 2009-11-11T10:14:29, Florian Haas <[email protected]> wrote:
> > This is a common mistake, we remove them when we find them, but please
> > don't add new ones ;-)
>
> Maybe I'm missing something, but I don't follow that. If that is indeed
> a mistake, then please replace "common" with "ubiquitous" as I believe
> at least checking for binaries and erroring out if they are not present
> is something that almost all resource agents do.
>
> Examples (by no means exhaustive):
>
> - mysql
> - pgsql
> - Route
> - VirtualDomain
> - Filesystem
>
> Some of these check for binaries inside validate, some in a part of the
> script that is unconditionally executed every time it's invoked
> (including during validate).
>
> So please, either revisit that policy, or fix all those RAs.
The point being that it doesn't even need to be a policy; it is simply
an observation.
"Filesystem" is quite probably fine, because it just relies on standard
system binaries, and none of the binary paths are configurable. (Same
applies to Route/VirtualDomain.) Further, it is quite unlikely that
Filesystem needs to have a special cluster fs mounted, since one would
use Filesystem to do that ;-)
For mysql, pgsql, apache or others with configurable paths, it is
possible (and sometimes implemented as such) that they reference a
binary/file on cluster-managed storage. That won't be yet mounted on a
normal start-up, and thus, if the probe tries to verify the path, fail.
Simply put: if you're checking for dependencies possibly provided by
other resources, these won't be present at probe time. (Kind of obvious,
really.)
So yes, all RAs which unconditionally check for files which could
realistically be on cluster managed storage need to be fixed.
(pgsql would benefit immensely from using check_binary directly, too;
but that script further believes that the binary not present means that
the service is stopped. Ah, well.)
Regards,
Lars
--
Architect Storage/HA, OPS Engineering, Novell, Inc.
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/