Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152776 - sys-cluster/heartbeat-2.0.7 user, group and IPC problems and some others
Summary: sys-cluster/heartbeat-2.0.7 user, group and IPC problems and some others
Status: RESOLVED FIXED
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: InVCS
Depends on:
Blocks:
 
Reported: 2006-10-25 05:58 UTC by gutter
Modified: 2010-09-10 18:51 UTC (History)
2 users (show)

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


Attachments
The output of /usr/lib/heartbeat/BasicSanityCheck (linux-ha.testlog.gz,35.20 KB, application/gzip)
2006-10-25 05:59 UTC, gutter
Details
Patch for heartbeat-2.0.7-r2.ebuild (heartbeat_user.patch,1.42 KB, patch)
2006-10-25 06:02 UTC, gutter
Details | Diff
New ebuild patch for heartbeat-2.0.7-r2.ebuild (heartbeat-2.0.7-r2.ebuild.patch,1.35 KB, patch)
2006-11-14 10:28 UTC, gutter
Details | Diff
The update-resources-failcount patch (heartbeat-2.0.7-update-resources-failcount.patch,6.49 KB, patch)
2006-11-14 10:29 UTC, gutter
Details | Diff
Heartbeat init script patch (init.patch,661 bytes, patch)
2006-11-14 10:33 UTC, gutter
Details | Diff
New version of ebuild that uses virtual/perl-libnet instead of perl-core/libnet (heartbeat-2.0.7-r4.ebuild,3.08 KB, patch)
2007-01-19 13:47 UTC, gutter
Details | Diff
heartbeat-2.0.7-r5 Ebuild (heartbeat-2.0.7-r5.ebuild,3.46 KB, text/plain)
2007-02-12 15:47 UTC, gutter
Details
New heartbeat init script (heartbeat-init,1.73 KB, text/plain)
2007-02-12 15:48 UTC, gutter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gutter 2006-10-25 05:58:32 UTC
I found some problems in the heartbeat-2.0.7 ebuild.

The first one concerns the user cluster declared in the ebuild. I noticed that the ./configure script of heartbeat package doesn't honour:

--with-group-name
--with-ccmuser-name

due to this aspect the haclient.py doesn't work, for example.

The second one concerns the crm module. If you enable .xml configuration (CIB) file using:

crm = yes

in the ha.cf, i noticed some IPC problems and heartbeat doesn't work at all (in attach the output of /usr/lib/heartbeat/BasicSanityCheck).

I attached a modified version of the ebuild that uses hacluster (as user) and haclient (as group).

Br,
Davide Restivo
Comment 1 gutter 2006-10-25 05:59:53 UTC
Created attachment 100452 [details]
The output of /usr/lib/heartbeat/BasicSanityCheck
Comment 2 gutter 2006-10-25 06:02:39 UTC
Created attachment 100453 [details, diff]
Patch for heartbeat-2.0.7-r2.ebuild
Comment 3 gutter 2006-10-25 06:05:45 UTC
Sorry, i forgot the solution to IPC problem :D

I used vanilla kernel:

Linux idra 2.6.16.14 #1 SMP Tue Oct 24 15:32:19 CEST 2006 i686 Intel(R) Xeon(TM) CPU 3.60GHz GNU/Linux

and IPC problem has been solved.
Comment 4 gutter 2006-11-14 10:28:06 UTC
Created attachment 101925 [details, diff]
New ebuild patch for heartbeat-2.0.7-r2.ebuild

This path solve the following problem: add new patch update-resources-failcount.patch. This patch is needed in order to solve the "update failcount" problem

More info can be found at http://www.gossamer-threads.com/lists/linuxha/users/35052?nohighlight=1#35052
Comment 5 gutter 2006-11-14 10:29:53 UTC
Created attachment 101927 [details, diff]
The update-resources-failcount patch
Comment 6 gutter 2006-11-14 10:33:05 UTC
Created attachment 101929 [details, diff]
Heartbeat init script patch

This patch allows the heartbeat init script to start and stop the ha_logd daemon correctly.

Br,
Davide Restivo
Comment 7 gutter 2007-01-19 13:47:43 UTC
Created attachment 107435 [details, diff]
New version of ebuild that uses virtual/perl-libnet instead of perl-core/libnet

Solve bug 162162
Comment 8 gutter 2007-01-19 15:22:00 UTC
See bug 162162 for heartbeat-2.0.8 ebuild.
Comment 9 gutter 2007-02-12 15:47:03 UTC
Created attachment 109962 [details]
heartbeat-2.0.7-r5 Ebuild
Comment 10 gutter 2007-02-12 15:48:04 UTC
Created attachment 109963 [details]
New heartbeat init script
Comment 11 gutter 2007-02-12 15:49:10 UTC
This new ebuild (r5) solves the following problems:

* incorrect permissions on:
  /var/run/heartbeat/ccm
  /var/run/heartbeat/crm
  /var/lib/heartbeat/cores
  /var/lib/heartbeat/crm
  /var/lib/heartbeat/pengine
  /var/lib/heartbeat/cores/hacluster

* Moves /etc/ha_logd.cf to /etc/ha.d/ha_logd.cf

* If "crm on" in /etc/ha.d/ha.cf /etc/init.d/hearbeat fails with the
  following output: 
  cat: /etc/ha.d/haresources: No such file or directory
  (See bug 163432)

* ha_logd is started only if "use_logd" is set to on in /etc/ha.d/ha.cf.

Br,
Davide Restivo
Comment 12 Tomáš Chvátal (RETIRED) gentoo-dev 2010-08-27 14:51:44 UTC
This stuff is fixed for the heartbeat-3.x series from what i can see. We wont touch 2.x anymore sorry.