Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#805444: multipath-tools: Installation fails with "Unit blk-availability.service failed to load"

248 views
Skip to first unread message

Michel Meyers

unread,
Nov 18, 2015, 4:20:03 AM11/18/15
to
Package: multipath-tools
Version: 0.5.0+git1.656f8865-1
Severity: important

Dear Maintainer,

dpkg fails while upgrading multipath-tools. The errors look like this:

Installing new version of config file /etc/init.d/multipath-tools ...
Failed to start multipath-tools.service: Unit blk-availability.service
failed to load: No such file or directory.
invoke-rc.d: initscript multipath-tools, action "start" failed.
dpkg: error processing package multipath-tools (--configure):
subprocess installed post-installation script returned error exit status 6

I've tried to look for a package containing the blk-availability.service
file but couldn't find one in any Debian release branch.

-- Package-specific info:
Contents of /etc/multipath.conf:
defaults {
polling_interval 5
path_selector "round-robin 0"
path_grouping_policy multibus
path_checker directio
rr_min_io 10
rr_min_io_rq 10
rr_weight priorities
failback immediate
no_path_retry queue
user_friendly_names yes
}
blacklist {
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^hd[a-z][[0-9]*]"
devnode "^vd[a-z]"
devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*]"
device {
vendor DEC.*
product MSA[15]00
}
}
multipaths {
multipath {
wwid 36001405f4600cb3d523ad356adb297de
alias rsphotoserver_lun1
path_selector "round-robin 0"
}
multipath {
wwid 36001405ddcb754cd055dd38b8d80a6d2
alias server1root_vgstorage
path_selector "round-robin 0"
}
multipath {
wwid 360014051385e8a4d155cd3f54dac97da
alias vboxserver2
path_selector "round-robin 0"
}
}


-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages multipath-tools depends on:
ii init-system-helpers 1.24
ii initscripts 2.88dsf-59.2
ii kpartx 0.5.0+git1.656f8865-1
ii libaio1 0.3.110-2
ii libc6 2.19-22
ii libdevmapper1.02.1 2:1.02.110-1
ii libgcc1 1:5.2.1-23
ii libreadline6 6.3-8+b3
ii libsystemd0 227-2
ii libudev1 227-2
ii lsb-base 9.20150917
ii sg3-utils-udev 1.41-1
ii udev 227-2

multipath-tools recommends no packages.

Versions of packages multipath-tools suggests:
pn multipath-tools-boot <none>

-- no debconf information

Ritesh Raj Sarraf

unread,
Nov 18, 2015, 5:00:02 AM11/18/15
to
On Wed, 2015-11-18 at 09:44 +0100, Michel Meyers wrote:
> dpkg fails while upgrading multipath-tools. The errors look like
> this:
>
> Installing new version of config file /etc/init.d/multipath-tools ...
> Failed to start multipath-tools.service: Unit blk-
> availability.service
> failed to load: No such file or directory.
> invoke-rc.d: initscript multipath-tools, action "start" failed.
> dpkg: error processing package multipath-tools (--configure):
>  subprocess installed post-installation script returned error exit
> status 6
>
> I've tried to look for a package containing the blk-
> availability.service
> file but couldn't find one in any Debian release branch.

Please share the content of multipath-tools.service file.

My guess is that you are using the .service file from a different
source.


--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."

signature.asc

Michel Meyers

unread,
Nov 18, 2015, 6:00:03 AM11/18/15
to
On 2015-11-18 10:51, Ritesh Raj Sarraf wrote:
> Please share the content of multipath-tools.service file.
>
> My guess is that you are using the .service file from a different
> source.


Here's the content:

[Unit]
Description=Device-Mapper Multipath Device Controller
Requires=blk-availability.service
Before=iscsi.service iscsid.service lvm2-activation-early.service
Before=local-fs-pre.target
After=multipathd.socket
DefaultDependencies=no
Wants=local-fs-pre.target multipathd.socket
Conflicts=shutdown.target

[Service]
Type=notify
NotifyAccess=main
LimitCORE=infinity
ExecStartPre=/sbin/modprobe dm-multipath
ExecStart=/sbin/multipathd -d -s
ExecReload=/sbin/multipathd reconfigure

[Install]
WantedBy=sysinit.target
Also=multipathd.socket
Alias=multipath-tools.service


This appears to match the content of the respective file from the
archive here:
https://packages.debian.org/stretch/amd64/multipath-tools/download

Ritesh Raj Sarraf

unread,
Nov 18, 2015, 7:00:03 AM11/18/15
to
On Wed, 2015-11-18 at 11:01 +0100, Michel Meyers wrote:

> This appears to match the content of the respective file from the
> archive here:
> https://packages.debian.org/stretch/amd64/multipath-tools/download

Thanks Michel. That indeed needs to be fixed.

But that made me wonder how my test box had a working multipath setup.


root@debian-btrfs:~# multipath -ll
36001405c2d2d9a03751406691395e741 dm-0 LIO-ORG,IBLOCK
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=50 status=active
  |- 3:0:0:0 sdc 8:32 active ready running
  `- 4:0:0:0 sdb 8:16 active ready running
36001405226c2409d98a4e35ba427b274 dm-1 LIO-ORG,IBLOCK
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=50 status=active
  |- 3:0:0:1 sde 8:64 active ready running
  `- 4:0:0:1 sdd 8:48 active ready running
root@debian-btrfs:~# multipath^C
root@debian-btrfs:~# ps aux | grep -i multipathd
root      1809  0.0  0.8 524960  8836 ?        SLl  17:08   0:00 
/sbin/multipathd
root      2113  0.0  0.2  12732  2216 pts/0    S+   17:11   0:00 grep
-i multipathd


root@debian-btrfs:~# /etc/init.d/multipath-tools status
[ ok ] multipathd is running.

So it seems to be running....

root@debian-btrfs:~# which init
/sbin/init
root@debian-btrfs:~# dpkg -S /sbin/init
sysvinit-core: /sbin/init

And this is the reason why I didn't notice this bug.


So. I'll look into it soon (but it may take some time). Meanwhile, if
you have any suggestions/fixes/patches, please add them to this bug
report.

Thanks,
Ritesh
signature.asc

Ritesh Raj Sarraf

unread,
Nov 20, 2015, 2:40:03 AM11/20/15
to
Control: tag -1 pending

On Wed, 2015-11-18 at 17:16 +0530, Ritesh Raj Sarraf wrote:
> So. I'll look into it soon (but it may take some time). Meanwhile, if
> you have any suggestions/fixes/patches, please add them to this bug
> report.


Okay. The issue may only be reproducible if you upgrade from the old
mulitpath (with no systemd support) to the new one, which is when
systemd will notice the missing dependency.

But even then, this should not be a failure during general operation.
But ofcourse, by breaking during installation/upgradation, it does
warrant an "important" severity.

The immediate fix should be to drop the blk-availability.service
because that may be something Fedora specific.


rrs@learner:~$ ssh 172.16.10.70
r...@172.16.10.70's password:

The programs included with the Debian GNU/Linux system are free
software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Nov 18 17:11:33 2015 from 172.16.10.1
rrs@debian-btrfs:~$ su -
Password:
root@debian-btrfs:~# multipath -ll
36001405c2d2d9a03751406691395e741 dm-0 LIO-ORG,IBLOCK
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=50 status=active
  |- 3:0:0:0 sdc 8:32 active ready running
  `- 4:0:0:0 sdb 8:16 active ready running
36001405226c2409d98a4e35ba427b274 dm-1 LIO-ORG,IBLOCK
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=50 status=active
  |- 3:0:0:1 sde 8:64 active ready running
  `- 4:0:0:1 sdd 8:48 active ready running

root@debian-btrfs:~# systemctl status multipathd -l
● multipathd.service - Device-Mapper Multipath Device Controller
   Loaded: loaded (/lib/systemd/system/multipathd.service; enabled;
vendor preset: enabled)
   Active: active (running) since Fri 2015-11-20 12:53:23 IST; 2min 13s
ago
  Process: 168 ExecStartPre=/sbin/modprobe dm-multipath (code=exited,
status=0/SUCCESS)
 Main PID: 185 (multipathd)
   Status: "running"
   CGroup: /system.slice/multipathd.service
           └─185 /sbin/multipathd -d -s

Nov 20 12:53:28 debian-btrfs multipathd[185]: sde [8:64]: path added to
devmap 36001405226c2409d98a4e35ba427b274
Nov 20 12:53:28 debian-btrfs multipathd[185]: sdb: add path (uevent)
Nov 20 12:53:28 debian-btrfs multipathd[185]:
36001405c2d2d9a03751406691395e741: load table [0 2097152 multipath 0 0
1 1 round-robin 0 2 1 8:32 50 8:16 50]
Nov 20 12:53:28 debian-btrfs multipathd[185]: sdb [8:16]: path added to
devmap 36001405c2d2d9a03751406691395e741
Nov 20 12:53:28 debian-btrfs multipathd[185]: sdd: add path (uevent)
Nov 20 12:53:28 debian-btrfs multipathd[185]:
36001405226c2409d98a4e35ba427b274: load table [0 2097152 multipath 0 0
1 1 round-robin 0 2 1 8:64 50 8:48 50]
Nov 20 12:53:28 debian-btrfs multipathd[185]: sdd [8:48]: path added to
devmap 36001405226c2409d98a4e35ba427b274
Nov 20 12:53:28 debian-btrfs systemd[1]: multipathd.service: Cannot add
dependency job, ignoring: Unit blk-availability.service failed to load:
No such file or directory.
Nov 20 12:53:32 debian-btrfs systemd[1]: multipathd.service: Cannot add
dependency job, ignoring: Unit blk-availability.service failed to load:
No such file or directory.
Nov 20 12:55:02 debian-btrfs systemd[1]: multipathd.service: Cannot add
dependency job, ignoring: Unit blk-availability.service failed to load:
No such file or directory.
root@debian-btrfs:~# 
signature.asc
0 new messages