[CentOS] heartbeat, drbd init scripts and chkconfig

Fri Apr 7 21:26:51 UTC 2006
Nielsen, Steve <SNielsen at comscore.com>

(sorry to keep top posting... outlook sucks).

Johnny,

The approach we took was to use the yum plugin protectbase since we have
our own internal repository.

I noticed when we protected the repository the plugin prints out
"protected N RPMs" but does not print out what it protected (even with
higher debugging). I thought it would be useful to have it print the
package names/repos on protected RPMs.

So, I patched the protect base plugin to do that.  I would like to
submit the patch.  Would that patch go to you or somewhere else? 

BTW, thanks for your help on this.

Thanks,
Steve

-----Original Message-----
From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On
Behalf Of Johnny Hughes
Sent: Friday, April 07, 2006 2:36 PM
To: CentOS ML
Subject: RE: [CentOS] heartbeat, drbd init scripts and chkconfig

On Fri, 2006-04-07 at 14:57 -0400, Nielsen, Steve wrote:
> Johnny,
> 
> I applied the patch (by hand since it would not apply cleanly) to
4.3's
> chkconfig and it appears to fix the issue I was having.
> 
> Generally, what are the next steps with this type of situation ?  Does
> centos patch and release or wait for redhat to patch and release?

We will wait for RH to patch this issue.  You can use the older
chkconfig and ntsysv from my 4.2 link or patch yourself.

> 
> If we decide internally to patch chkconfig rpm ourselves what are the
> best practices to prevent over ride of a new chkconfig from you guys
> which may not have the patch applied?

The best way to prevent overwriting is to exempt the package from
updates until it is fixed...but I suspect that the patch will be in any
new version.

If you use yum for updates, edit /etc/yum.conf and add a line that says:

exclude=chkconfig ntsysv

OR if you use up2date, edit the file /etc/sysconfig/rhn/up2date and
change this line:

pkgSkipList=kernel*;

to this:

pkgSkipList=kernel*;chkconfig;ntsysv;

Thanks,
Johnny Hughes


> 
> -----Original Message-----
> From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On
> Behalf Of Johnny Hughes
> Sent: Friday, April 07, 2006 1:25 PM
> To: CentOS ML
> Subject: Re: [CentOS] heartbeat, drbd init scripts and chkconfig
> 
> On Fri, 2006-04-07 at 13:17 -0400, Nielsen, Steve wrote:
> > Hi,
> > 
> > ... snip ...
> > To re-create this problem just install the 2 packages (heartbeat and
> > drbd) then chkconfig off one and chkconfig list both services.
> > 
> 
> OK ... I can confirm this problem ... turning off one of these turns
on
> the other.
> 
> No idea why.
> 
> The older version of chkconfig and ntsysv (from 4.2) does not have
this
> problem:
> 
> http://vault.centos.org/4.2/os/i386/CentOS/RPMS/
> 
> I suspect that this is also caused by this bug:
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=182729
> 
> Thanks,
> Johnny Hughes
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 
>