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 > >>> 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 >> _______________________________________________ >> Linux-HA mailing list >> [email protected] >> http://lists.linux-ha.org/mailman/listinfo/linux-ha >> See also: http://linux-ha.org/ReportingProblems > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
