On Mon, Nov 08, 2010 at 03:06:02PM -0500, David Warden wrote: > On Oct 29, 2010, at 1:16 PM, Greg Woods wrote: > > > On Fri, 2010-10-29 at 12:09 +0900, Masashi Yamaguchi wrote: > > > >> > >> I think "ldirectord" rpm package's spec for RedHat/CentOS is inconsistent. > >> > >> $ rpm -qp --provides ldirectord-1.0.3-2.el5.x86_64.rpm > >> config(ldirectord) =3D 1.0.3-2.el5 > >> heartbeat-ldirectord > >> ldirectord =3D 1.0.3-2.el5 > >> $ rpm -qp --conflicts ldirectord-1.0.3-2.el5.x86_64.rpm > >> heartbeat-ldirectord > >> $ > >> > >> "ldirectord" package PROVIDES "heartbeat-ldirectord" and > >> CONFLICTS with "heartbeat-ldirectord". > >> "ldirectord" package' spec has self-conflict. > >> > >> This is a patch for the problem. > >> --- resource-agents.spec > >> +++ resource-agents.spec > > > > I don't quite get this. Your patch is for resource-agents or ldirectord > > packages? I presume the idea is that you get the src rpm, extract it, > > apply the patch, and rebuild the RPM? (I haven't been able to find the > > src rpm for ldirectord). > > > > If I understand this correctly, it looks like a bug that should be fixed > > in the clusterlabs repo. Do they have a place to officially report bugs?
Yes, it is a bug in the clusterlabs repo. This problem is being tracked as http://developerbugs.linux-foundation.org/show_bug.cgi?id=2472 > > > > I did try extracting the ldirectord script from the clusterlabs > > ldirectord package, and it segfaults, so I suspect I really have to find > > a way to install the entire package in order to use that script and get > > the heartbeat/pacemaker monitoring to work properly. ldirectord is a perl script, so it segfaulting is rather unusual. > > I'm actually running into this problem too. (I was able to install > heartbeat-ldirectord from EPEL as an alternative to ldirectord from > ClusterLabs repo and it seemed to work but I was getting lots of "no > child process" errors in the ldirectord log so I have been trying to get > the ClusterLabs version of ldirectord working.) > > Greg, the src rpm you're looking for is "resource-agents" at > http://www.clusterlabs.org/rpm/epel-5/src/. The ldirectord RPM is built > from that. > > I was able to apply Masashi's patch and rebuild resource-agents which > produced an ldirectord RPM that installed without an issue. Note that you > probably need to have the cluster-glue* RPMs installed on the machine > you're attempting to build resource-agents on. I was getting errors about > missing "sfex" files when I tried building resource-agents without the > cluster-glue* RPMs. Thanks for testing the change. I have incorporated it into the upstream sources as follows. It should be included in the next upstream release which should in turn trickle down to new RPMS (I am unsure of how the RPMS are built for clusterlabs.org). However, as per the bug report at http://developerbugs.linux-foundation.org/show_bug.cgi I believe that that versioned package relationships are needed (not least of which because the version number has gone backwards) and I am unsure of how to resolve that aspect of the problem. # HG changeset patch # User Simon Horman <[email protected]> # Date 1289261674 -32400 # Node ID 6110c023f002d6b1de0f1f5dba0df6213cfffaba # Parent df294ab4d987ba172a6f072f87f63c4553e4736d Medium: ldirectord: Restore Provides and Conflicts heartbeat-ldirectord (LF2472) This brings the code in this respository into line with the directives suggested by Masashi Yamaguchi[1] and tested by David Warden[2]. [1] http://www.mail-archive.com/[email protected]/msg17174.html [2] http://www.mail-archive.com/[email protected]/msg17235.html0 diff -r df294ab4d987 -r 6110c023f002 resource-agents.spec --- a/resource-agents.spec Fri Nov 05 10:00:21 2010 +0100 +++ b/resource-agents.spec Tue Nov 09 09:14:34 2010 +0900 @@ -70,6 +70,7 @@ Summary: A Monitoring Daemon for Maintaining High Availability Resources Group: Productivity/Clustering/HA Requires: %{SSLeay} perl-libwww-perl ipvsadm +Provides: heartbeat-ldirectord Obsoletes: heartbeat-ldirectord Requires: perl-MailTools %if 0%{?suse_version} > After installing my rebuilt RPM things seem to be working - I'm not > seeing any errors in the ldirectord log file. It is strange that I have > expire_quiescent_template and expire_nodest_conn set to 1 and they don't > seem to be taking effect when a realserver is set to weight 0 by > ldirectord, but that's another issue :-) That is probably an issue best discussed on the lvs-users mailing list, though I will say that I am surprised that its not working. _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
