Not to blame heartbeat, it seems that with apache 2 (2.2 and above
especially) that the way apache runs has changed, the binary is
controlled with apachectl now, the httpd binary won't return the proper
numeric codes directly.
using the httpd=/usr/sbin/httpd binary
or httpd=/usr/sbin/apachectl option, the ocf-test program continues to
reurn this error:
# ocf-tester -n apache2 -o configfile=/etc/httpd/conf/httpd.conf -o
httpd=/usr/sbin/apachectl /usr/lib/ocf/resource.d/heartbeat/apache
Beginning tests for /usr/lib/ocf/resource.d/heartbeat/apache...
* rc=1: Monitoring a stopped resources should return 0
Test updated to expect 1 for stopped resources for the remainder of this run
* rc=1: Monitoring an active resource should return 0
* rc=2: The notify action cannot fail and must return 0
* rc=2: Demoting a start resource should not fail
* rc=2: Promote failed
* rc=2: Demote failed
Aborting tests
Same error using the httpd binary.
I don't have the time, or the experience to write another ocf agent, so
I'm falling back to an LSB agent.
Is there any way that this information could be shared more publicly (on
the linux-ha site possibly) to prevent other people from wasting days on
something that is impossible to correctly configure?
CentOS 5.1 i386 with heartbeat 2.1.3-3, httpd-2.2.3-11
Nick
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems