Bug#401999: mdadm fails to upgrade in testing. Can't start service.

2006-12-08 Thread martin f krafft
reassign 401999 splashy
retitle 401999 references undefined variable $RUNLEVEL in lsb-base-logging.sh
thanks

also sprach Raúl Sánchez Siles [EMAIL PROTECTED] [2006.12.07.1548 +0400]:
 I also attach the file /etc/lsb-base-logging.sh which belongs to package
 splashy version 0.2.2

Thanks for the report. This is indeed a problem, but I think the bug
is in splashy, which references $RUNLEVEL even though it has not
been defined. Due to my use of set -u, this causes the mdadm script
to bail out, as it sources the splashy file.

I am thus reassigning this bug to splashy and hope that Otavio will
fix it. Otavio: if you're unwilling or unable to apply my patch,
please reassign back so that I can upload a new mdadm which hacks
around the problem.

The fix is simply to replace

  if [ -z $RUNLEVEL ]; then

with

  if [ -z ${RUNLEVEL:-} ]; then

Thanks,

-- 
 .''`.   martin f. krafft [EMAIL PROTECTED]
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems


signature.asc
Description: Digital signature (GPG/PGP)


Processed: Re: Bug#401999: mdadm fails to upgrade in testing. Can't start service.

2006-12-08 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

 reassign 401999 splashy
Bug#401999: mdadm fails to upgrade in testing. Can't start service.
Bug reassigned from package `mdadm' to `splashy'.

 retitle 401999 references undefined variable $RUNLEVEL in lsb-base-logging.sh
Bug#401999: mdadm fails to upgrade in testing. Can't start service.
Changed Bug title.

 thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#401999: mdadm fails to upgrade in testing. Can't start service.

2006-12-07 Thread Raúl Sánchez Siles
Package: mdadm
Version: 2.5.6-6
Severity: grave
Justification: renders package unusable

I upgrade mdadm to the current testing (and sid) version. Upgrade fails,
see this log(transalated by hand):


--LOG START--
Configuring mdadm (2.5.6-6) ...
/boot/initrd.img-2.6.18-3-686 has been altered.  Cannot update.
update-initramfs: Generating /boot/initrd.img-2.6.18p4s
W: mdadm: unchecked configuration file: /etc/mdadm/mdadm.conf
W: mdadm: please read /usr/share/doc/mdadm/README.upgrading-2.5.3.gz .
W: mdadm: no arrays defined in configuration file.
W: mdadm: falling back to emergency procedure in initramfs.
update-initramfs: Generating /boot/initrd.img-2.6.17-ck1-p4s
W: mdadm: unchecked configuration file: /etc/mdadm/mdadm.conf
W: mdadm: please read /usr/share/doc/mdadm/README.upgrading-2.5.3.gz .
W: mdadm: no arrays defined in configuration file.
W: mdadm: falling back to emergency procedure in initramfs.
update-initramfs: Generating /boot/initrd.img-2.6.17-2-686
W: mdadm: unchecked configuration file: /etc/mdadm/mdadm.conf
W: mdadm: please read /usr/share/doc/mdadm/README.upgrading-2.5.3.gz .
W: mdadm: no arrays defined in configuration file.
W: mdadm: falling back to emergency procedure in initramfs.
sha1sum: /boot/initrd.img-2.6.16.1-p4s: Can't find file or directory.
/boot/initrd.img-2.6.16.1-p4s has been altered.  Cannot update.
Starting MD monitoring service: mdadm --monitor/sbin/mdadm already running.
 failed!
/etc/lsb-base-logging.sh: line 34: RUNLEVEL: unbound variable
invoke-rc.d: initscript mdadm, action start failed.
dpkg: error processing mdadm (--configure):
 post-installation script subproccess returned output error code 1
Errors when processing:
 mdadm
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package couldn't be installed. Trying to recover:
Configuring mdadm (2.5.6-6) ...
update-initramfs: Generating /boot/initrd.img-2.6.18p4s
W: mdadm: unchecked configuration file: /etc/mdadm/mdadm.conf
W: mdadm: please read /usr/share/doc/mdadm/README.upgrading-2.5.3.gz .
W: mdadm: no arrays defined in configuration file.
W: mdadm: falling back to emergency procedure in initramfs.
update-initramfs: Generating /boot/initrd.img-2.6.17-ck1-p4s
W: mdadm: unchecked configuration file: /etc/mdadm/mdadm.conf
W: mdadm: please read /usr/share/doc/mdadm/README.upgrading-2.5.3.gz .
W: mdadm: no arrays defined in configuration file.
W: mdadm: falling back to emergency procedure in initramfs.
update-initramfs: Generating /boot/initrd.img-2.6.17-2-686
W: mdadm: unchecked configuration file: /etc/mdadm/mdadm.conf
W: mdadm: please read /usr/share/doc/mdadm/README.upgrading-2.5.3.gz .
W: mdadm: no arrays defined in configuration file.
W: mdadm: falling back to emergency procedure in initramfs.
Starting MD monitoring service: mdadm --monitor/sbin/mdadm already running.
 failed!
/etc/lsb-base-logging.sh: line 34: RUNLEVEL: unbound variable
invoke-rc.d: initscript mdadm, action start failed.
dpkg: error al procesar mdadm (--configure):
 el subproceso post-installation script devolvió el código de salida de error 1
Se encontraron errores al procesar:
 mdadm
--LOG END--

I also attach the file /etc/lsb-base-logging.sh which belongs to package
splashy version 0.2.2

-- Package-specific info:
--- mount output
/dev/sda1 on / type reiserfs (rw,notail)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,nodev)
/dev/sda5 on /home type reiserfs (rw)
/dev/mapper/varoptusr-opt on /opt type reiserfs (rw)
/dev/mapper/varoptusr-usr on /usr type reiserfs (rw)
/dev/mapper/varoptusr-var on /var type reiserfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
10.0.0.50:/opt/BA020 on /opt/BA020 type nfs 
(rw,noexec,nosuid,nodev,addr=10.0.0.50)

--- mdadm.conf
DEVICE /dev/sda
MAILADDR root

--- /proc/mdstat:
Personalities : [linear] [multipath] [raid0] [raid1] [raid10] 
unused devices: none

--- /proc/partitions:
major minor  #blocks  name

   8 0  244198584 sda
   8 16835626 sda1
   8 21349460 sda2
   8 3   31447237 sda3
   8 4  1 sda4
   8 5  146480638 sda5
   8 6   58082976 sda6
 253 05242880 dm-0
 253 1   41943040 dm-1
 253 2   10895360 dm-2

--- initrd.img-2.6.18p4s:
16946 blocks
etc/mdadm
etc/mdadm/mdadm.conf
lib/modules/2.6.18p4s/kernel/drivers/md/dm-mirror.ko
lib/modules/2.6.18p4s/kernel/drivers/md/dm-mod.ko
lib/modules/2.6.18p4s/kernel/drivers/md/multipath.ko
lib/modules/2.6.18p4s/kernel/drivers/md/raid0.ko
lib/modules/2.6.18p4s/kernel/drivers/md/raid1.ko
lib/modules/2.6.18p4s/kernel/drivers/md/raid10.ko
lib/modules/2.6.18p4s/kernel/drivers/md/dm-snapshot.ko
lib/modules/2.6.18p4s/kernel/drivers/md/linear.ko