Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 163432 - sys-cluster/heartbeat - init script fails to recognize crm option in ha.cf correctly
Summary: sys-cluster/heartbeat - init script fails to recognize crm option in ha.cf co...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-23 13:54 UTC by Tobias Schröpf
Modified: 2011-10-18 17:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Schröpf 2007-01-23 13:54:55 UTC
If /etc/ha.d/ha.cf contains
  crm on
the Init-Script /etc/init.d/hearbeat fails to recognize it, and gives the following output:
  cat: /etc/ha.d/haresources: No such file or directory

Which means that the init-script tried to start:
  /usr/lib/heartbeat/ResourceManager verifyallidle
but that shouldnt happen if crm is enabled in ha.cf

Reproducible: Always

Steps to Reproduce:
1.
set
  crm on
in
  /etc/ha.d/ha.cf
2.
run
  /etc/init.d/heartbeat start

Actual Results:  
Output is:
  cat: /etc/ha.d/haresources: No such file or directory

what it isn't supposed to do...

Expected Results:  
Not start the ResourceManager, and use CRM instead

Can be solved by editing /etc/inti.d/heartbeat as follows:
# diff -N heartbeat heartbeat.save
38c38
<       CheckBool "`ha_parameter crm`" || \
---
>       CheckBool "`ha_parameter crm`" && \

together with Bug 155106 it seems as if all the || and && Operators were mixed up.

[my first bug-report, hope everything is correct with it]
Comment 1 gutter 2007-02-12 15:37:06 UTC
(In reply to comment #0)
> [CUT]

Hi Tobias,

thanks for the details ;). I modified the init script.

See bug 152776.

Br,
Davide Restivo
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2011-10-18 17:28:46 UTC
+  18 Oct 2011; Kacper Kowalik <xarthisius@gentoo.org> -heartbeat-1.2.5.ebuild,
+  -heartbeat-1.2.5-r1.ebuild, -heartbeat-2.0.7-r2.ebuild,
+  -files/heartbeat-2.0.7-update-resources-failcount.patch,
+  -heartbeat-2.0.8.ebuild, -files/heartbeat-2.0.8-asneeded.patch,
+  -files/heartbeat-2.0.8-crm-assert.patch,
+  -files/heartbeat-2.0.8-crm-leaks.patch, -files/heartbeat-2.0.8-delay.patch,
+  -files/heartbeat-2.0.8-glibc.patch, -files/heartbeat-2.0.8-install_fix.patch,
+  -heartbeat-3.0.4-r1.ebuild:
+  Drop ancient and unusable versions of heartbeat-{1,2} since we have
+  heartbeat-3 stable