Note, the fact that these services fail isn't new; they've failed for a
long time. However, reporting the service failure to apt is new. For
example of bionic, we don't see an apt error:
# lsb_release -rd
Description: Ubuntu 18.04.4 LTS
Release: 18.04
# apt-cache policy zfsutils-linux
zfsutils-linux:
Installed: 0.7.5-1ubuntu16.7
Candidate: 0.7.5-1ubuntu16.7
Version table:
*** 0.7.5-1ubuntu16.7 500
500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
100 /var/lib/dpkg/status
0.7.5-1ubuntu15 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
# apt install zfsutils-linux
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:
libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-zed
Suggested packages:
zfs-modules | zfs-dkms nfs-kernel-server samba-common-bin zfs-initramfs |
zfs-dracut
The following NEW packages will be installed:
libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-zed
zfsutils-linux
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 1168 kB of archives.
After this operation, 4259 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64
libnvpair1linux amd64 0.7.5-1ubuntu16.7 [45.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libuutil1linux
amd64 0.7.5-1ubuntu16.7 [48.3 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libzpool2linux
amd64 0.7.5-1ubuntu16.7 [547 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libzfs2linux
amd64 0.7.5-1ubuntu16.7 [128 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 zfsutils-linux
amd64 0.7.5-1ubuntu16.7 [342 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 zfs-zed amd64
0.7.5-1ubuntu16.7 [57.7 kB]
Fetched 1168 kB in 1s (1972 kB/s)
Selecting previously unselected package libnvpair1linux.
(Reading database ... 28654 files and directories currently installed.)
Preparing to unpack .../0-libnvpair1linux_0.7.5-1ubuntu16.7_amd64.deb ...
Unpacking libnvpair1linux (0.7.5-1ubuntu16.7) ...
Selecting previously unselected package libuutil1linux.
Preparing to unpack .../1-libuutil1linux_0.7.5-1ubuntu16.7_amd64.deb ...
Unpacking libuutil1linux (0.7.5-1ubuntu16.7) ...
Selecting previously unselected package libzpool2linux.
Preparing to unpack .../2-libzpool2linux_0.7.5-1ubuntu16.7_amd64.deb ...
Unpacking libzpool2linux (0.7.5-1ubuntu16.7) ...
Selecting previously unselected package libzfs2linux.
Preparing to unpack .../3-libzfs2linux_0.7.5-1ubuntu16.7_amd64.deb ...
Unpacking libzfs2linux (0.7.5-1ubuntu16.7) ...
Selecting previously unselected package zfsutils-linux.
Preparing to unpack .../4-zfsutils-linux_0.7.5-1ubuntu16.7_amd64.deb ...
Unpacking zfsutils-linux (0.7.5-1ubuntu16.7) ...
Selecting previously unselected package zfs-zed.
Preparing to unpack .../5-zfs-zed_0.7.5-1ubuntu16.7_amd64.deb ...
Unpacking zfs-zed (0.7.5-1ubuntu16.7) ...
Setting up libuutil1linux (0.7.5-1ubuntu16.7) ...
Setting up libnvpair1linux (0.7.5-1ubuntu16.7) ...
Setting up libzpool2linux (0.7.5-1ubuntu16.7) ...
Setting up libzfs2linux (0.7.5-1ubuntu16.7) ...
Setting up zfsutils-linux (0.7.5-1ubuntu16.7) ...
Created symlink
/etc/systemd/system/zfs-import.target.wants/zfs-import-cache.service →
/lib/systemd/system/zfs-import-cache.service.
Created symlink /etc/systemd/system/zfs-mount.service.wants/zfs-import.target →
/lib/systemd/system/zfs-import.target.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-import.target →
/lib/systemd/system/zfs-import.target.
Created symlink
/etc/systemd/system/zfs-mount.service.wants/zfs-load-module.service →
/lib/systemd/system/zfs-load-module.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-load-module.service →
/lib/systemd/system/zfs-load-module.service.
eCreated symlink /etc/systemd/system/zfs-share.service.wants/zfs-mount.service
→ /lib/systemd/system/zfs-mount.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-mount.service →
/lib/systemd/system/zfs-mount.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-share.service →
/lib/systemd/system/zfs-share.service.
Created symlink /etc/systemd/system/multi-user.target.wants/zfs.target →
/lib/systemd/system/zfs.target.
zfs-import-scan.service is a disabled or a static unit, not starting it.
Job for zfs-load-module.service failed because the control process exited with
error code.
See "systemctl status zfs-load-module.service" and "journalctl -xe" for details.
A dependency job for zfs-import-cache.service failed. See 'journalctl -xe' for
details.
Job for zfs-mount.service failed because the control process exited with error
code.
See "systemctl status zfs-mount.service" and "journalctl -xe" for details.
Job for zfs-share.service failed because the control process exited with error
code.
See "systemctl status zfs-share.service" and "journalctl -xe" for details.
Setting up zfs-zed (0.7.5-1ubuntu16.7) ...
Created symlink /etc/systemd/system/zed.service →
/lib/systemd/system/zfs-zed.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-zed.service →
/lib/systemd/system/zfs-zed.service.
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
root@rharper-b2:~# echo $?
0
** Description changed:
- 1)
+ 1)
# lsb_release -rd
Description: Ubuntu Focal Fossa (development branch)
Release: 20.04
2)
# apt-cache policy zfsutils-linux
zfsutils-linux:
- Installed: (none)
- Candidate: 0.8.3-1ubuntu3
- Version table:
- 0.8.3-1ubuntu3 500
- 500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
+ Installed: (none)
+ Candidate: 0.8.3-1ubuntu3
+ Version table:
+ 0.8.3-1ubuntu3 500
+ 500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
3) apt install zfsutils-linux installs successfully
- 4) apt install zfsutils-linux installs but apt returns error code due to zfs
services failing to start successfully
+ 4) apt install zfsutils-linux; echo $? == 0
+ installs but apt returns error code due to zfs services failing to start
successfully
See "systemctl status zfs-mount.service" and "journalctl -xe" for details.
invoke-rc.d: initscript zfs-mount, action "start" failed.
● zfs-mount.service - Mount ZFS filesystems
- Loaded: loaded
(]8;;file://f2/lib/systemd/system/zfs-mount.service/lib/systemd/system/zfs-mount.service]8;;;
enabled; vendor preset: enabled)
- Active: failed (Result: exit-code) since Mon 2020-02-10 16:18:04 UTC;
23ms ago
- Docs: ]8;;man:zfs(8)man:zfs(8)]8;;
- Process: 1672 ExecStart=/sbin/zfs mount -a (code=exited, status=1/FAILURE)
- Main PID: 1672 (code=exited, status=1/FAILURE)
+ Loaded: loaded
(]8;;file://f2/lib/systemd/system/zfs-mount.service/lib/systemd/system/zfs-mount.service]8;;;
enabled; vendor preset: enabled)
+ Active: failed (Result: exit-code) since Mon 2020-02-10 16:18:04 UTC;
23ms ago
+ Docs: ]8;;man:zfs(8)man:zfs(8)]8;;
+ Process: 1672 ExecStart=/sbin/zfs mount -a (code=exited, status=1/FAILURE)
+ Main PID: 1672 (code=exited, status=1/FAILURE)
Feb 10 16:18:04 f2 systemd[1]: Starting Mount ZFS filesystems...
Feb 10 16:18:04 f2 zfs[1672]: /dev/zfs and /proc/self/mounts are required.
Feb 10 16:18:04 f2 zfs[1672]: Try running 'udevadm trigger' and 'mount -t
proc proc /proc' as root.
Feb 10 16:18:04 f2 systemd[1]: zfs-mount.service: Main process exited,
code=exited, status=1/FAILURE
Feb 10 16:18:04 f2 systemd[1]: zfs-mount.service: Failed with result
'exit-code'.
Feb 10 16:18:04 f2 systemd[1]: Failed to start Mount ZFS filesystems.
I'm inside a LXD unpriv container. By default, there are no permissions
to mount proc, modprobe modules, etc.
+ E: Sub-process /usr/bin/dpkg returned an error code (1)
+ 100
+
+
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: zfsutils-linux 0.8.3-1ubuntu3
ProcVersionSignature: Ubuntu 5.4.0-9.12-generic 5.4.3
Uname: Linux 5.4.0-9-generic x86_64
ApportVersion: 2.20.11-0ubuntu16
Architecture: amd64
Date: Mon Feb 10 15:50:42 2020
ProcEnviron:
- TERM=xterm
- PATH=(custom, no user)
- LANG=C.UTF-8
+ TERM=xterm
+ PATH=(custom, no user)
+ LANG=C.UTF-8
SourcePackage: zfs-linux
UpgradeStatus: No upgrade log present (probably fresh install)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1862661
Title:
zfs-mount.service and others fail inside unpriv containers
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1862661/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs