Hi, We are using the heartbeat and drbd packages from latest centos (4.3) extras repository. Upon installation of both packages I noticed that if you "chkconfig heartbeat off" that will cause drbd to chkconfig'ed on. And visa versa. After doing some trouble shooting it turns out the "BEGIN INIT INFO" sections appear to be the cause. drbd has: ### BEGIN INIT INFO # Provides: drbd # Required-Start: $network $syslog sshd # Required-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Description: Control drbd resources. ### END INIT INFO heartbeat has: ### BEGIN INIT INFO # Description: heartbeat is a basic high-availability subsystem. # It will start services at initialization, and when machines go up # or down. This version will also perform IP address takeover using # gratuitous ARPs. It works correctly for a 2-node configuration, # and is extensible to larger configurations. # # It implements the following kinds of heartbeats: # - Bidirectional Serial Rings ("raw" serial ports) # - UDP/IP broadcast (ethernet, etc) # - UDP/IP multicast (ethernet, etc) # - Unicast heartbeats # - "ping" heartbeats (for routers, switches, etc.) # (to be used for breaking ties in 2-node systems # and monitoring networking availability) # # Short-Description: High-availability services. # Required-Start: $network $time $syslog # Required-Stop: $network $time $syslog # Default-Start: 3 5 # Default-Stop: 0 6 ### END INIT INFO Is this a bug in how chkconfig handles the "INIT INFO" sections or the way its supposed to work? I don't see any reference to the other in the "INIT INFO" sections so I would not think its supposed to work this way. Can someone offer some clarification ? To re-create this problem just install the 2 packages (heartbeat and drbd) then chkconfig off one and chkconfig list both services. Thanks, Steve
On Fri, 2006-04-07 at 13:17 -0400, Nielsen, Steve wrote:> Hi, > > We are using the heartbeat and drbd packages from latest centos (4.3) > extras repository. > > Upon installation of both packages I noticed that if you "chkconfig > heartbeat off" that will cause drbd to chkconfig'ed on. And visa versa. > > After doing some trouble shooting it turns out the "BEGIN INIT INFO" > sections appear to be the cause. > > drbd has: > > ### BEGIN INIT INFO > # Provides: drbd > # Required-Start: $network $syslog sshd > # Required-Stop: > # Default-Start: 3 5 > # Default-Stop: 0 1 2 6 > # Description: Control drbd resources. > ### END INIT INFO > > heartbeat has: > > ### BEGIN INIT INFO > # Description: heartbeat is a basic high-availability subsystem. > # It will start services at initialization, and when machines go up > # or down. This version will also perform IP address takeover using > # gratuitous ARPs. It works correctly for a 2-node configuration, > # and is extensible to larger configurations. > # > # It implements the following kinds of heartbeats: > # - Bidirectional Serial Rings ("raw" serial ports) > # - UDP/IP broadcast (ethernet, etc) > # - UDP/IP multicast (ethernet, etc) > # - Unicast heartbeats > # - "ping" heartbeats (for routers, switches, etc.) > # (to be used for breaking ties in 2-node systems > # and monitoring networking availability) > # > # Short-Description: High-availability services. > # Required-Start: $network $time $syslog > # Required-Stop: $network $time $syslog > # Default-Start: 3 5 > # Default-Stop: 0 6 > ### END INIT INFO > > Is this a bug in how chkconfig handles the "INIT INFO" sections or the > way its supposed to work? I don't see any reference to the other in the > "INIT INFO" sections so I would not think its supposed to work this way. > > Can someone offer some clarification ? > > To re-create this problem just install the 2 packages (heartbeat and > drbd) then chkconfig off one and chkconfig list both services.I just did this w/ CentOS-4.2 and everything worked exactly as expected. I am not ready to upgrade this machine to 4.3 yet ... so let me try this on a test machine. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20060407/5e2da69b/attachment-0001.sig>
On Fri, 2006-04-07 at 13:17 -0400, Nielsen, Steve wrote:> Hi, > > We are using the heartbeat and drbd packages from latest centos (4.3) > extras repository. > > Upon installation of both packages I noticed that if you "chkconfig > heartbeat off" that will cause drbd to chkconfig'ed on. And visa versa. > > After doing some trouble shooting it turns out the "BEGIN INIT INFO" > sections appear to be the cause. > > drbd has: > > ### BEGIN INIT INFO > # Provides: drbd > # Required-Start: $network $syslog sshd > # Required-Stop: > # Default-Start: 3 5 > # Default-Stop: 0 1 2 6 > # Description: Control drbd resources. > ### END INIT INFO > > heartbeat has: > > ### BEGIN INIT INFO > # Description: heartbeat is a basic high-availability subsystem. > # It will start services at initialization, and when machines go up > # or down. This version will also perform IP address takeover using > # gratuitous ARPs. It works correctly for a 2-node configuration, > # and is extensible to larger configurations. > # > # It implements the following kinds of heartbeats: > # - Bidirectional Serial Rings ("raw" serial ports) > # - UDP/IP broadcast (ethernet, etc) > # - UDP/IP multicast (ethernet, etc) > # - Unicast heartbeats > # - "ping" heartbeats (for routers, switches, etc.) > # (to be used for breaking ties in 2-node systems > # and monitoring networking availability) > # > # Short-Description: High-availability services. > # Required-Start: $network $time $syslog > # Required-Stop: $network $time $syslog > # Default-Start: 3 5 > # Default-Stop: 0 6 > ### END INIT INFO > > Is this a bug in how chkconfig handles the "INIT INFO" sections or the > way its supposed to work? I don't see any reference to the other in the > "INIT INFO" sections so I would not think its supposed to work this way. > > Can someone offer some clarification ? > > 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20060407/dc7a8256/attachment-0001.sig>
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? 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? Thanks for your quick response. 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 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
(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) to4.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 turnson> the other. > > No idea why. > > The older version of chkconfig and ntsysv (from 4.2) does not havethis> 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 > >