Fails to install because of brain damage in init script that should be converted to udev rules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
multipath-tools (Ubuntu) |
Fix Released
|
Medium
|
Fabio Massimo Di Nitto | ||
Dapper |
Fix Released
|
Medium
|
Fabio Massimo Di Nitto | ||
Edgy |
Invalid
|
Medium
|
Fabio Massimo Di Nitto | ||
Feisty |
Fix Released
|
Medium
|
Fabio Massimo Di Nitto |
Bug Description
Binary package hint: multipath-tools
root@hiro:~# dpkg --configure -a
Setting up multipath-tools (0.4.7-1ubuntu7) ...
Starting multipath START STOP UNIT command error: SCSI status: Check Condition
Fixed format, current; Sense key: Not Ready
Additional sense: Logical unit not ready, manual intervention required
plus...: Driver_status=0x08 [DRIVER_SENSE, SUGGEST_OK]
START STOP UNIT command failed
invoke-rc.d: initscript multipath-
dpkg: error processing multipath-tools (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
multipath-tools
Looking at /etc/init.
hsg80_init() {
for i in $(grep -rl 2097152 /sys/block/
do
done
}
This function really, really, REALLY needs to look at the contents of the "vendor" and/or "model" files in sysfs before doing anything. Right now it ends up unconditionally attempting to start any device that's exactly 10 GB large, which fails if you (like me) have this LUN on midrange active/passive EMC gear where START STOP UNIT will fail on all paths to the passive controller. I have some StorageTek gear I'm fairly certain will trigger the same behaviour too, although I didn't test that.
This really should be updated in Dapper, in my opinion. It can easily break production systems;
1) Everything runs and is hunky-dory
2a) Admin already has a 10GB volume and installs sg3_utils, or
2b) Creates 10GB volume on his midrange storage device, rescans the scsi bus, adds new dm maps, etc.
3) Everything remains hunky-dory for several months, until
4) Admin boots the server and realises the multipaths didn't start, no services works, and everything is generally sad.
It's not like 10GB is an "exotic" size unlikely to be found in the wild either, so I'm really surprised if I'm the only one being bitten by this bug.
Tore
Changed in multipath-tools: | |
assignee: | nobody → fabbione |
importance: | Undecided → Medium |
status: | Unconfirmed → Confirmed |
assignee: | nobody → fabbione |
importance: | Undecided → Medium |
status: | Unconfirmed → Confirmed |
importance: | Undecided → Medium |
confirmed.. and you are right. it needs fixing.
Fabio