Public bug reported:

Steps to reproduce
1. use current Disco container in LXD
 $ lxc launch ubuntu-daily:d d-upgr
2. dist-upgrade to do the multipath-tools upgrade
 Note: dist upgrade will trigger the same, but this has less noise
 $ apt install multipath-tools


Right after start we have this.
root@d-upgr:~# apt-cache policy multipath-tools
multipath-tools:
  Installed: 0.7.4-2ubuntu4
  Candidate: 0.7.4-2ubuntu7
  Version table:
     0.7.4-2ubuntu7 500
        500 http://archive.ubuntu.com/ubuntu disco/main amd64 Packages
 *** 0.7.4-2ubuntu4 100
        100 /var/lib/dpkg/status


Example:
root@d-upgr:~# apt install multipath-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  kpartx
Suggested packages:
  multipath-tools-boot
The following packages will be upgraded:
  kpartx multipath-tools
2 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
Need to get 278 kB of archives.
After this operation, 1024 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu disco/main amd64 kpartx amd64 
0.7.4-2ubuntu7 [27.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu disco/main amd64 multipath-tools amd64 
0.7.4-2ubuntu7 [250 kB]
Fetched 278 kB in 1s (434 kB/s)         
(Reading database ... 28913 files and directories currently installed.)
Preparing to unpack .../kpartx_0.7.4-2ubuntu7_amd64.deb ...
Unpacking kpartx (0.7.4-2ubuntu7) over (0.7.4-2ubuntu4) ...
Preparing to unpack .../multipath-tools_0.7.4-2ubuntu7_amd64.deb ...
/dev/mapper/control: open failed: Permission denied
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
Incompatible libdevmapper 1.02.145 (2017-11-03) and kernel driver (unknown 
version).
Command failed
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open 
moddep file '/lib/modules/4.18.0-17-generic/modules.dep.bin'
modprobe: FATAL: Module dm-multipath not found in directory 
/lib/modules/4.18.0-17-generic
Unpacking multipath-tools (0.7.4-2ubuntu7) over (0.7.4-2ubuntu4) ...
Setting up kpartx (0.7.4-2ubuntu7) ...
Setting up multipath-tools (0.7.4-2ubuntu7) ...
multipathd.socket is a disabled or a static unit, not starting it.
Job for multipathd.service failed because a fatal signal was delivered causing 
the control process to dump core.
See "systemctl status multipathd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript multipath-tools, action "start" failed.
● multipathd.service - Device-Mapper Multipath Device Controller
   Loaded: loaded (/lib/systemd/system/multipathd.service; enabled; vendor 
preset: enabled)
   Active: failed (Result: core-dump) since Mon 2019-04-15 08:50:07 UTC; 6ms ago
  Process: 1708 ExecStartPre=/sbin/modprobe -a scsi_dh_alua scsi_dh_emc 
scsi_dh_rdac dm-multipath (code=exited, status=1/FAILURE)
  Process: 1709 ExecStart=/sbin/multipathd -d -s (code=dumped, signal=ABRT)
 Main PID: 1709 (code=dumped, signal=ABRT)
   Status: "configure"

Apr 15 08:50:07 d-upgr multipathd[1709]: read /etc/multipath.conf
Apr 15 08:50:07 d-upgr multipathd[1709]: path checkers start up
Apr 15 08:50:07 d-upgr multipathd[1709]: /dev/mapper/control: open failed: 
Permission denied
Apr 15 08:50:07 d-upgr multipathd[1709]: Failure to communicate with kernel 
device-mapper driver.
Apr 15 08:50:07 d-upgr multipathd[1709]: Check that device-mapper is available 
in the kernel.
Apr 15 08:50:07 d-upgr multipathd[1709]: Incompatible libdevmapper 1.02.145 
(2017-11-03) and kernel driver (unknown version).
Apr 15 08:50:07 d-upgr multipathd[1709]: 
(urcu-call-rcu-impl.h:call_rcu_data_init@438) Unrecoverable error: Resource 
temporarily unavailable
Apr 15 08:50:07 d-upgr systemd[1]: multipathd.service: Main process exited, 
code=dumped, status=6/ABRT
Apr 15 08:50:07 d-upgr systemd[1]: multipathd.service: Failed with result 
'core-dump'.
Apr 15 08:50:07 d-upgr systemd[1]: Failed to start Device-Mapper Multipath 
Device Controller.
dpkg: error processing package multipath-tools (--configure):
 installed multipath-tools package post-installation script subprocess returned 
error exit status 1
Processing triggers for systemd (240-6ubuntu4) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.29-0ubuntu1) ...
Errors were encountered while processing:
 multipath-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)


A quick check with former versions showed that this is no new behavior (e.g. in 
Bionic multipath-tools also fails to install).
The actual "new breaking change" seems to be that the LXD image now contains 
multipath.

It would be nice to fix multipath to behave better in a containerized
environment, so a bug task for multipath certainly is correct.

But also the image building for LXD should not by default have that installed 
right?
Was there a reason to do so and if so has that been tested (as it seems no).
Was it a seed or dependency change?

** Affects: lxd (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: multipath-tools (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: ubuntu-meta (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: lxd (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1824776

Title:
  New multipath-tools doesn't update in containers (disco)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1824776/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to