Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 330035 - sys-cluster/heartbeat-3.0.3 ebuild bugs
Summary: sys-cluster/heartbeat-3.0.3 ebuild bugs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-27 08:34 UTC by Denis Kaganovich
Modified: 2010-10-06 09:27 UTC (History)
1 user (show)

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


Attachments
do symlinks over ebuild (heartbeat-3.0.3-ebuild.patch,634 bytes, patch)
2010-07-27 08:57 UTC, Denis Kaganovich
Details | Diff
IMHO compatible at least with 2.1.4 (heartbeat-3.0.3-init.patch,622 bytes, patch)
2010-07-27 09:00 UTC, Denis Kaganovich
Details | Diff
compatible with bot bihaviours (heartbeat-3.0.3-compat.patch,1.01 KB, patch)
2010-07-27 09:35 UTC, Denis Kaganovich
Details | Diff
better (heartbeat-3.0.3.patch,1.01 KB, patch)
2010-07-27 10:32 UTC, Denis Kaganovich
Details | Diff
heartbeat-3.0.3.ebuild.diff (heartbeat-3.0.3.ebuild.diff,810 bytes, patch)
2010-09-18 13:16 UTC, INODE64 Sistemas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Kaganovich 2010-07-27 08:34:03 UTC
I updated from heartbeat-2.1.4 to 3.0.3. There are multiple bugs, must be fixed. First - description.

1) symlink /usr/lib/heartbeat/ResourceManager not points more to /usr/share/heartbeat/ResourceManager. But at least called from /etc/init.d/heartbeat. Call may be changed in script or restored symlink. (also +3 symlinks removed, but I not verify it presence in code: as "/usr/lib/heartbeat/... - BasicSanityCheck, SNMPAgentSanityCheck TestHeartbeatComm)

2) Configs called as /var/ha.d, not /etc/ha.d.

3) Also found this report/patch, but not sure:
http://www.mail-archive.com/linux-ha@lists.linux-ha.org/msg14974.html

Fast migration over current build (1,2):

ln -s /etc/ha.d /var/ha.d
ln -s /usr/share/heartbeat/ResourceManager /usr/lib/heartbeat/ResourceManager
# possible not required:
ln -s /usr/share/heartbeat/BasicSanityCheck /usr/lib/heartbeat/BasicSanityCheck
ln -s /usr/share/heartbeat/SNMPAgentSanityCheck /usr/lib/heartbeat/SNMPAgentSani
tyCheckln -s /usr/share/heartbeat/TestHeartbeatComm /usr/lib/heartbeat/TestHeartbeatComm

Or same in ebuild/install/dosym form.
Next I will post 2 patches variant: ebuild-only (1,2) and ebuild+init (1,2,3 without /usr/lib).

Reproducible: Always
Comment 1 Denis Kaganovich 2010-07-27 08:57:55 UTC
Created attachment 240289 [details, diff]
do symlinks over ebuild
Comment 2 Denis Kaganovich 2010-07-27 09:00:59 UTC
Created attachment 240291 [details, diff]
IMHO compatible at least with 2.1.4

I think, primary idea "fix1 vs. fix2" is bad. Better both or only first.
Comment 3 Denis Kaganovich 2010-07-27 09:13:54 UTC
P.S. Also "<sys-cluster/heartbeat-3.0" must be uninstalled before "sys-cluster/resource-agents" (or after sys-cluster/cluster-glue), but current environment don't do it.
Comment 4 Denis Kaganovich 2010-07-27 09:35:56 UTC
Created attachment 240295 [details, diff]
compatible with bot bihaviours

IMHO there are compatible with both bihaviours (I think, /var/ha.d may be conceptual in 3.0).

If you cared about compatibility /etc/init.d/heartbeat with prior to 2.1.4 - you may varify it or clone heartbeat-init into heartbeat-init-3...
Comment 5 Denis Kaganovich 2010-07-27 10:32:39 UTC
Created attachment 240299 [details, diff]
better
Comment 6 INODE64 Sistemas 2010-09-18 13:02:13 UTC
the symlink /var/ha.d solved in bug http://bugs.gentoo.org/show_bug.cgi?id=337931
Comment 7 INODE64 Sistemas 2010-09-18 13:16:05 UTC
Created attachment 247849 [details, diff]
heartbeat-3.0.3.ebuild.diff

update deps for ipmi
Comment 8 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-10-06 09:27:45 UTC
+  06 Oct 2010; Kacper Kowalik <xarthisius@gentoo.org>
+  -heartbeat-3.0.3-r1.ebuild, +heartbeat-3.0.3-r2.ebuild, metadata.xml:
+  Fix init script wrt 330035. Thanks to Denis Kaganovich
+  <mahatma@bspu.unibel.by>. Correct dependencies, add use flag for ipmi.
+  Thanks to Francisco Javier <ffelix@inode64.com>. Drop old.
+

^^ That (and bug 337931) should address all the issues from comment #1. I've skipped BasicSanityCheck, SNMPAgentSanityCheck, TestHeartbeatComm since they don't seem to be used.
@Denis, have you encountered any additional problems while migrating form 2.x ?