Dejan Muhamedagic ha scritto:
Hi,
On Wed, Jul 30, 2008 at 05:56:03PM +0200, Nick wrote:
Dejan Muhamedagic ha scritto:
Hi,
On Wed, Jul 30, 2008 at 10:07:58AM +0200, Nick wrote:
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.
It works fine here with opensuse 11.0 (apache 2.2.8) and SLES10
SP2 (apache 2.2.3). Did you enable the status module?
Thanks,
Dejan
Yeah, status responds on any of the real or virtual IP's subnets on the
server as well as localhost.
Managed to fix the first part (small oversight, late night), but it still
doesn't want to think about promoting or demoting.
# ocf-tester -n apache2 -o configfile=/etc/httpd/conf/httpd.conf -o
httpd=/usr/sbin/httpd /usr/lib/ocf/resource.d/heartbeat/apache
Beginning tests for /usr/lib/ocf/resource.d/heartbeat/apache...
* 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
This is expected because apache doesn't support notify or
promote/demote. Still, apache should exit with
OCF_ERR_UNIMPLEMENTED and that's why ocf-tester complains. It
won't influence the operation of the cluster, but if you feel
like you can apply this fix:
http://hg.linux-ha.org/dev/rev/aaba921b100c
Thanks,
Dejan
Excuse my ignorance, but I should replace my apache file in the
heartbeat directory with this:
http://hg.linux-ha.org/dev/file/aaba921b100c/resources/OCF/apache
correct?
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems