[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#541980: marked as done (redhat-cluster: Incorrect provides, dependencies and runlevels in init.d scripts)



Your message dated Fri, 18 Sep 2009 22:04:36 +0000
with message-id <E1MolZE-0007Hk-Ta@ries.debian.org>
and subject line Bug#541980: fixed in redhat-cluster 2.20081102-1.1
has caused the Debian Bug report #541980,
regarding redhat-cluster: Incorrect provides, dependencies and runlevels in init.d scripts
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
541980: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=541980
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package:  redhat-cluster-suite
Version:  2.20080801-1
Severity: important
Tags:     patch
User:     initscripts-ng-devel@lists.alioth.debian.org
Usertags: incorrect-runlevels incorrect-dependency

With dependency based boot sequencing, I discovered what I believe is
a bug in the init.d scripts.  The provide strings are not correct,
making it impossible to depend on these scripts and also will make the
package fail to install because of duplicate provides.  The provides
header make each space-separated word a provide of the script, and
should normally be the name of the init.d script without any .sh
ending.  Also, some of the scripts uses files in /usr/ and should to
depend on $remote_fs to flag this.

The list of runlevels in the init.d header do not match the arguments
used by update-rc.d, but I am not sure the original update-rc.d
arguments make sense.  When starting the scripts in rcS.d, and not in
runlevels 2-5, the daemons will not work when booting into runlevel 1
and then switching to one of the other runlevels.  If you agree with
this, I would recommend changing these daemons to start not in rcS.d
but in runlevels 2-5, and stop in runlevels 0, 1 and 6 (ie keep the
init.d script headers and change the update-rc.d calls instead).  This
will require some code in the postinst to handle the upgrade.

<URL: http://refspecs.freestandards.org/LSB_2.1.0/LSB-generic/LSB-generic/initscrcomconv.html >
documents the LSB header format.  Some debian notes are available from
<URL: http://wiki.debian.org/LSBInitScripts >.

This patch should solve the issue.  Without it, the packages will fail
to install.

diff -ru redhat-cluster-2.20081102/debian/cman.init redhat-cluster-2.20081102-pere/debian/cman.init
--- redhat-cluster-2.20081102/debian/cman.init  2009-08-17 07:35:15.000000000 +0200
+++ redhat-cluster-2.20081102-pere/debian/cman.init     2009-08-17 07:40:41.000000000 +0200
@@ -1,13 +1,13 @@
 #!/bin/sh

 ### BEGIN INIT INFO
-# Provides:          cluster manager
+# Provides:          cman
 # Required-Start:    $network $remote_fs
 # Required-Stop:     $network $remote_fs
 # Should-Start:      $named $time $syslog ssh
 # Should-Stop:       $named $time $syslog ssh
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
+# Default-Start:     S
+# Default-Stop:      0 6
 # Short-Description: Starts and stops cman
 ### END INIT INFO

diff -ru redhat-cluster-2.20081102/debian/gfs-tools.init redhat-cluster-2.20081102-pere/debian/gfs-tools.init
--- redhat-cluster-2.20081102/debian/gfs-tools.init     2009-08-17 07:35:15.000000000 +0200
+++ redhat-cluster-2.20081102-pere/debian/gfs-tools.init        2009-08-17 07:40:49.000000000 +0200
@@ -1,11 +1,11 @@
 #!/bin/sh

 ### BEGIN INIT INFO
-# Provides:          global filesystem
-# Required-Start:    cman
-# Required-Stop:     cman
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
+# Provides:          gfs-tools
+# Required-Start:    $remote_fs cman
+# Required-Stop:     $remote_fs cman
+# Default-Start:     S
+# Default-Stop:      0 6
 # Short-Description: mount and unmount GFS shares
 ### END INIT INFO

diff -ru redhat-cluster-2.20081102/debian/gfs2-tools.init redhat-cluster-2.20081102-pere/debian/gfs2-tools.init
--- redhat-cluster-2.20081102/debian/gfs2-tools.init    2009-08-17 07:35:15.000000000 +0200
+++ redhat-cluster-2.20081102-pere/debian/gfs2-tools.init       2009-08-17 07:40:57.000000000 +0200
@@ -1,11 +1,11 @@
 #!/bin/sh

 ### BEGIN INIT INFO
-# Provides:          global filesystem version 2
+# Provides:          gfs2-tools
 # Required-Start:    cman
 # Required-Stop:     cman
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
+# Default-Start:     S
+# Default-Stop:      0 6
 # Short-Description: mount and unmount GFS v2 shares
 ### END INIT INFO

diff -ru redhat-cluster-2.20081102/debian/gnbd-client.init redhat-cluster-2.20081102-pere/debian/gnbd-client.init
--- redhat-cluster-2.20081102/debian/gnbd-client.init   2009-08-17 07:35:15.000000000 +0200
+++ redhat-cluster-2.20081102-pere/debian/gnbd-client.init      2009-08-17 07:41:05.000000000 +0200
@@ -1,11 +1,11 @@
 #! /bin/sh

 ### BEGIN INIT INFO
-# Provides:          global network block device client
-# Required-Start:    $network
-# Required-Stop:     $network
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
+# Provides:          gnbd-client
+# Required-Start:    $remote_fs $network
+# Required-Stop:     $remote_fs $network
+# Default-Start:     S
+# Default-Stop:      0 6
 # Short-Description: start and stop gnbd client
 ### END INIT INFO

diff -ru redhat-cluster-2.20081102/debian/gnbd-server.init redhat-cluster-2.20081102-pere/debian/gnbd-server.init
--- redhat-cluster-2.20081102/debian/gnbd-server.init   2009-08-17 07:35:15.000000000 +0200
+++ redhat-cluster-2.20081102-pere/debian/gnbd-server.init      2009-08-17 07:41:13.000000000 +0200
@@ -1,11 +1,11 @@
 #! /bin/sh

 ### BEGIN INIT INFO
-# Provides:          global network block device server
-# Required-Start:    $network
-# Required-Stop:     $network
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
+# Provides:          gnbd-server
+# Required-Start:    $remote_fs $network
+# Required-Stop:     $remote_fs $network
+# Default-Start:     S
+# Default-Stop:      0 6
 # Short-Description: start and stop the gnbd server
 ### END INIT INFO

diff -ru redhat-cluster-2.20081102/debian/rgmanager.init redhat-cluster-2.20081102-pere/debian/rgmanager.init
--- redhat-cluster-2.20081102/debian/rgmanager.init     2009-08-17 07:35:15.000000000 +0200
+++ redhat-cluster-2.20081102-pere/debian/rgmanager.init        2009-08-17 07:40:28.000000000 +0200
@@ -1,13 +1,13 @@
 #!/bin/sh

 ### BEGIN INIT INFO
-# Provides:          cluster service manager
-# Required-Start:    cman
-# Required-Stop:     cman
+# Provides:          rgmanager
+# Required-Start:    $remote_fs cman
+# Required-Stop:     $remote_fs cman
 # Should-Start:      clvm gfs-tools gfs2-tools
 # Should-Stop:       clvm gfs-tools gfs2-tools
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
+# Default-Start:     S
+# Default-Stop:      0 6
 # Short-Description: start and stop the cluster service manager
 ### END INIT INFO


Happy hacking,
-- 
Petter Reinholdtsen



--- End Message ---
--- Begin Message ---
Source: redhat-cluster
Source-Version: 2.20081102-1.1

We believe that the bug you reported is fixed in the latest version of
redhat-cluster, which is due to be installed in the Debian FTP archive:

cman_2.20081102-1.1_i386.deb
  to pool/main/r/redhat-cluster/cman_2.20081102-1.1_i386.deb
gfs-tools_2.20081102-1.1_i386.deb
  to pool/main/r/redhat-cluster/gfs-tools_2.20081102-1.1_i386.deb
gfs2-tools_2.20081102-1.1_i386.deb
  to pool/main/r/redhat-cluster/gfs2-tools_2.20081102-1.1_i386.deb
gnbd-client_2.20081102-1.1_i386.deb
  to pool/main/r/redhat-cluster/gnbd-client_2.20081102-1.1_i386.deb
gnbd-server_2.20081102-1.1_i386.deb
  to pool/main/r/redhat-cluster/gnbd-server_2.20081102-1.1_i386.deb
libcman-dev_2.20081102-1.1_i386.deb
  to pool/main/r/redhat-cluster/libcman-dev_2.20081102-1.1_i386.deb
libcman2_2.20081102-1.1_i386.deb
  to pool/main/r/redhat-cluster/libcman2_2.20081102-1.1_i386.deb
libdlm-dev_2.20081102-1.1_i386.deb
  to pool/main/r/redhat-cluster/libdlm-dev_2.20081102-1.1_i386.deb
libdlm2_2.20081102-1.1_i386.deb
  to pool/main/r/redhat-cluster/libdlm2_2.20081102-1.1_i386.deb
redhat-cluster-source_2.20081102-1.1_all.deb
  to pool/main/r/redhat-cluster/redhat-cluster-source_2.20081102-1.1_all.deb
redhat-cluster-suite_2.20081102-1.1_all.deb
  to pool/main/r/redhat-cluster/redhat-cluster-suite_2.20081102-1.1_all.deb
redhat-cluster_2.20081102-1.1.diff.gz
  to pool/main/r/redhat-cluster/redhat-cluster_2.20081102-1.1.diff.gz
redhat-cluster_2.20081102-1.1.dsc
  to pool/main/r/redhat-cluster/redhat-cluster_2.20081102-1.1.dsc
rgmanager_2.20081102-1.1_i386.deb
  to pool/main/r/redhat-cluster/rgmanager_2.20081102-1.1_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 541980@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Petter Reinholdtsen <pere@debian.org> (supplier of updated redhat-cluster package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 16 Sep 2009 19:53:08 +0200
Source: redhat-cluster
Binary: redhat-cluster-suite cman libcman2 libcman-dev libdlm2 libdlm-dev gfs-tools gfs2-tools gnbd-client gnbd-server rgmanager redhat-cluster-source
Architecture: source i386 all
Version: 2.20081102-1.1
Distribution: unstable
Urgency: low
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Changed-By: Petter Reinholdtsen <pere@debian.org>
Description: 
 cman       - Red Hat cluster suite - cluster manager
 gfs-tools  - Red Hat cluster suite - global file system tools
 gfs2-tools - Red Hat cluster suite - global file system 2 tools
 gnbd-client - Red Hat cluster suite - global network block device client tools
 gnbd-server - Red Hat cluster suite - global network block device server tools
 libcman-dev - Red Hat cluster suite - cluster manager development files
 libcman2   - Red Hat cluster suite - cluster manager libraries
 libdlm-dev - Red Hat cluster suite - distributed lock manager development file
 libdlm2    - Red Hat cluster suite - distributed lock manager library
 redhat-cluster-source - Red Hat cluster suite - kernel modules source
 redhat-cluster-suite - Red Hat cluster suite - metapackage
 rgmanager  - Red Hat cluster suite - clustered resource group manager
Closes: 541980
Changes: 
 redhat-cluster (2.20081102-1.1) unstable; urgency=low
 .
   * Non-maintainer upload to fix release goal.
   * Fix init.d script provides, runlevels and dependency headers
     and add code in postinst to recover from installations with
     incorrect runlevels enabled (Closes: #541980).
Checksums-Sha1: 
 9056181d1f5299cf3e165656af9dc00bfbd04f52 1654 redhat-cluster_2.20081102-1.1.dsc
 ded2e244efaf6da05d4921c811bf9471762b1674 38115 redhat-cluster_2.20081102-1.1.diff.gz
 4cb6563bfa62a1167d42050d9770926ccddb8e62 463888 cman_2.20081102-1.1_i386.deb
 25cac70a7c1154b3111015179b2e3955a3ef78bd 13964 libcman2_2.20081102-1.1_i386.deb
 0ac37596d96041f40d921ddfa473caa9d4618bd2 17910 libcman-dev_2.20081102-1.1_i386.deb
 5fcacf34d878e09f3bd4fb3d0ca406725af02a05 17702 libdlm2_2.20081102-1.1_i386.deb
 4b8223fa2e8157e1ee1c8122340e4baaca0dc7d1 31760 libdlm-dev_2.20081102-1.1_i386.deb
 b6ece55e7ed5c866b74757b512fa98557189caf5 195764 gfs-tools_2.20081102-1.1_i386.deb
 2a7cb63635d741596c392951aa54ca7c19a75028 309408 gfs2-tools_2.20081102-1.1_i386.deb
 30c0149008171d64065669e94df773bd196e0bfe 47376 gnbd-client_2.20081102-1.1_i386.deb
 0df33d92d46eb2fd638a30e46c7aa7362d18d251 47232 gnbd-server_2.20081102-1.1_i386.deb
 050a2b8a57146edf05eebd38410000779699348f 289952 rgmanager_2.20081102-1.1_i386.deb
 950de3f025ed907d5890f738767a5bfb2e3ee058 7392 redhat-cluster-suite_2.20081102-1.1_all.deb
 190dfe92e5d73f1b17ab8259575c61e6edf6b542 171462 redhat-cluster-source_2.20081102-1.1_all.deb
Checksums-Sha256: 
 7b286a27fc7567889792ed72fd9c0614d969d2380a27e9f57fa238df324399a6 1654 redhat-cluster_2.20081102-1.1.dsc
 4d1e601744af8dc69f5b0e1eb657e203c03be76495b9620ada3b86372755fca9 38115 redhat-cluster_2.20081102-1.1.diff.gz
 f44e4edf498de4663933970221d5984eb2efe14709e63365557cc00aafe7bb1c 463888 cman_2.20081102-1.1_i386.deb
 abe9ba3b15d0a1fca583ffd557b404e2fa53cdcc66e613163c05e9aaa9571920 13964 libcman2_2.20081102-1.1_i386.deb
 816ae4965c1404cd7c263fd79892d5100d38f589aa6e38b5c43ce1ad902fe8a6 17910 libcman-dev_2.20081102-1.1_i386.deb
 9a1a2991ffa81df15ac5ff5466769f90e683f2ae56113f83f52f71a2c11f9e33 17702 libdlm2_2.20081102-1.1_i386.deb
 f4e42ee161a74868f787408e7f814b1dd7294edf56baa3a1345103df48b7b658 31760 libdlm-dev_2.20081102-1.1_i386.deb
 0d432304b4b95ca9635f8ccf032cd811864be1d5ce9f1271ebe937a1b6913532 195764 gfs-tools_2.20081102-1.1_i386.deb
 37190c1df01230da22095807b2aedb3a81ce48419ad2b41853074d474546abce 309408 gfs2-tools_2.20081102-1.1_i386.deb
 9a4ccbc0303beae52c120ab8fcd790646cf3e4bc19e44975b72b1947c0954073 47376 gnbd-client_2.20081102-1.1_i386.deb
 19e3bd553dfd9d9d260f0a4a595ddbe28811eba2eeca2b9eed449a5956007a46 47232 gnbd-server_2.20081102-1.1_i386.deb
 eda0dab81f8c496fb68a6391698a9722306028cd518dbb16bbea640d65d14ea0 289952 rgmanager_2.20081102-1.1_i386.deb
 b2a8004d172f0ff3d327fe83c19c38653753a0dd728250e51a95a046dd45e06c 7392 redhat-cluster-suite_2.20081102-1.1_all.deb
 b7dc0f169de5b2a3fc9a888423f860e9594e3ea79f6b75aae6f51174dd854dfc 171462 redhat-cluster-source_2.20081102-1.1_all.deb
Files: 
 9f6a9dd098580052532226eeec7fa127 1654 admin optional redhat-cluster_2.20081102-1.1.dsc
 82ce5bb81c74594027264697ea00fc0e 38115 admin optional redhat-cluster_2.20081102-1.1.diff.gz
 eb869b49e4214756505dd7a9a4593e38 463888 admin optional cman_2.20081102-1.1_i386.deb
 972b5bcfba5ceb290938da4f31510d70 13964 libs optional libcman2_2.20081102-1.1_i386.deb
 30e8296c78847ed78ba4e7d8daf607ab 17910 libdevel optional libcman-dev_2.20081102-1.1_i386.deb
 428154a1ae48104e05c72d6a9699fd33 17702 libs optional libdlm2_2.20081102-1.1_i386.deb
 54af8be328cb1eab9be800b3f42a387a 31760 libdevel optional libdlm-dev_2.20081102-1.1_i386.deb
 13f5a7be2d60be0d55a68071a370da58 195764 admin optional gfs-tools_2.20081102-1.1_i386.deb
 d57064d8ddc7cd6859a66705a706bcae 309408 admin optional gfs2-tools_2.20081102-1.1_i386.deb
 e51f4bdc788774e49566d96ff5ce5557 47376 admin optional gnbd-client_2.20081102-1.1_i386.deb
 600f8318f1dad1294f9b110dd1adadc9 47232 admin optional gnbd-server_2.20081102-1.1_i386.deb
 faceb648dcad2c93339f7afa6ba33c1b 289952 admin optional rgmanager_2.20081102-1.1_i386.deb
 70ccf1c4073847f9105cce891ae5b0cb 7392 admin optional redhat-cluster-suite_2.20081102-1.1_all.deb
 dd705614accfe449ad6f8403bf7f01b3 171462 admin optional redhat-cluster-source_2.20081102-1.1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFKsUO820zMSyow1ykRAozBAKDZOCa+dLxmxUds+3r48Gu8m/0yuwCgy/oe
D7JhxKFXb+o8SmvTxDthIbk=
=OKuD
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: