no notification that one of the disks has been disconnected in a raid 1 configurtion

Bug #761971 reported by Patrick Wright
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mdadm (Ubuntu)
Fix Released
High
Clint Byrum
Natty
Fix Released
High
Clint Byrum
Oneiric
Fix Released
High
Unassigned

Bug Description

============

TEST CASE:

Follow the (rather lengthy):

http://testcases.qa.ubuntu.com/Install/ServerRAID1

At step 21, this bug causes there to be no notification of degraded arrays. Sometimes this manifests only at step 24 (there is a small race between udev and mdadm, I think, that causes this to be unreliable).

When the package is fixed, the degraded status is always displayed at the right times.

============

Binary package hint: mdadm

followed test steps for SR1I-001 from testcases.qa.ubuntu.com/Install/ServerRAID1
Step 21. booting from cold-degraded array
Once the disk is disconnected and system is powered on there is no warning before or after the user logs in

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: mdadm 3.1.4-1+8efb9d1ubuntu4
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic-pae 2.6.38.2
Uname: Linux 2.6.38-8-generic-pae i686
Architecture: i386
Date: Fri Apr 15 09:38:09 2011
InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Beta i386 (20110413)
Lsusb:
 Bus 001 Device 002: ID 80ee:0021
 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MDadmExamine.dev.sda: Error: command ['/sbin/mdadm', '-E', '/dev/sda'] failed with exit code 1: mdadm: cannot open /dev/sda: Permission denied
MDadmExamine.dev.sda1: Error: command ['/sbin/mdadm', '-E', '/dev/sda1'] failed with exit code 1: mdadm: cannot open /dev/sda1: Permission denied
MDadmExamine.dev.sda2: Error: command ['/sbin/mdadm', '-E', '/dev/sda2'] failed with exit code 1: mdadm: cannot open /dev/sda2: Permission denied
MDadmExamine.dev.sda5: Error: command ['/sbin/mdadm', '-E', '/dev/sda5'] failed with exit code 1: mdadm: cannot open /dev/sda5: Permission denied
MDadmExamine.dev.sdb: Error: command ['/sbin/mdadm', '-E', '/dev/sdb'] failed with exit code 1: mdadm: cannot open /dev/sdb: Permission denied
MDadmExamine.dev.sdb1: Error: command ['/sbin/mdadm', '-E', '/dev/sdb1'] failed with exit code 1: mdadm: cannot open /dev/sdb1: Permission denied
MDadmExamine.dev.sdb2: Error: command ['/sbin/mdadm', '-E', '/dev/sdb2'] failed with exit code 1: mdadm: cannot open /dev/sdb2: Permission denied
MDadmExamine.dev.sdb5: Error: command ['/sbin/mdadm', '-E', '/dev/sdb5'] failed with exit code 1: mdadm: cannot open /dev/sdb5: Permission denied
MachineType: innotek GmbH VirtualBox
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-8-generic-pae root=UUID=dac5f344-e6fa-457d-8c14-ff55eabd699e ro quiet
SourcePackage: mdadm
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.modalias: dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:svninnotekGmbH:pnVirtualBox:pvr1.2:
dmi.product.name: VirtualBox
dmi.product.version: 1.2
dmi.sys.vendor: innotek GmbH
etc.blkid.tab: Error: [Errno 2] No such file or directory: '/etc/blkid.tab'

Revision history for this message
Patrick Wright (patrickmwright) wrote :
tags: added: beta2
Revision history for this message
Patrick Wright (patrickmwright) wrote :

need confirmation

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

I just saw this during an iso test. Its not a release blocker, but definitely needs to be fixed in an SRU *soon*.

Changed in mdadm (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Changed in mdadm (Ubuntu Natty):
milestone: none → natty-updates
Changed in mdadm (Ubuntu Oneiric):
status: New → Confirmed
importance: Undecided → High
Changed in mdadm (Ubuntu Natty):
assignee: nobody → Ubuntu Server Team (ubuntu-server)
Changed in mdadm (Ubuntu Natty):
assignee: Ubuntu Server Team (ubuntu-server) → Clint Byrum (clint-fewbar)
status: Confirmed → In Progress
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

The issue here is that mdadm 3.x does not set the return code unless --test is passed.

I've uploaded a fixed package that just adds --test to the command line for mdadm's scan during initrd. I am re-running the ISO tests now with the fixed package, but manually applying the patch and re-trying the affected steps produced a positive result.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted mdadm into natty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in mdadm (Ubuntu Natty):
status: In Progress → Fix Committed
tags: added: verification-needed
description: updated
Revision history for this message
Patrick Wright (patrickmwright) wrote :

I was able to replicate the bug with natty final release
After upgrading mdadm the fix it worked!

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mdadm - 3.1.4-1+8efb9d1ubuntu4.1

---------------
mdadm (3.1.4-1+8efb9d1ubuntu4.1) natty-proposed; urgency=low

  * pass --test to mdadm to enable result codes for degraded arrays.
    (LP: #761971)
 -- Clint Byrum <email address hidden> Wed, 27 Apr 2011 15:05:14 -0700

Changed in mdadm (Ubuntu Natty):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Copied to oneiric as well.

Changed in mdadm (Ubuntu Oneiric):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.