Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 152776

Summary: sys-cluster/heartbeat-2.0.7 user, group and IPC problems and some others
Product: Gentoo Linux Reporter: gutter <xgutter>
Component: New packagesAssignee: Gentoo Cluster Team <cluster>
Status: RESOLVED FIXED    
Severity: normal CC: grag, wschlich
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: The output of /usr/lib/heartbeat/BasicSanityCheck
Patch for heartbeat-2.0.7-r2.ebuild
New ebuild patch for heartbeat-2.0.7-r2.ebuild
The update-resources-failcount patch
Heartbeat init script patch
New version of ebuild that uses virtual/perl-libnet instead of perl-core/libnet
heartbeat-2.0.7-r5 Ebuild
New heartbeat init script

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.