zfs services fail on firstboot if zfs-utils is integrated into the deployment image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sysvinit (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
Xenial |
Won't Fix
|
Undecided
|
Unassigned | ||
zfs-linux (Ubuntu) |
Fix Released
|
Medium
|
Eric Desrochers | ||
Xenial |
Fix Released
|
Medium
|
Eric Desrochers |
Bug Description
[Impact]
* zfs services fail on firstboot if zfs-utils is integrated into the deployment image.
* Output from systemd -
sudo systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● zfs-import-
● zfs-mount.service loaded failed failed Mount ZFS filesystems
* This is particularly frustrating for users who use automated monitoring as it means virtual machines must always be restarted before showing as clean.
* This failure is due to zfs services starting up before /etc/mtab has a chance to be symlinked to /proc/mounts.
[Test Case]
1. Grab a stock xenial image, and unpack it and add zfs-utils to it. Repack it.
2. Boot machine
3. Check systemctl --failed.
[Regression Potential]
* none expected, patch has been intensively tested by the upsteam zfs test script suite.
* This is a upstream commit merge in 0.7.0.
* A ubuntu package has been tested (including the upstream commit) by a user of the community facing this bug, and confirmed it addresses the problem (see comment #7).
[Other Info]
* The "reading" is redirected to /proc/self/mounts.
The writing to /etc/mtab. Some distros still need that. The current hope is to replace the writing (and maybe reading) with libmount, in a second phase.
* Upstream commit : https:/
* Upstream bug: https:/
* Debian bug : https:/
Changed in zfs-linux (Ubuntu): | |
assignee: | nobody → Eric Desrochers (slashd) |
importance: | Undecided → Medium |
status: | New → In Progress |
tags: | added: sts |
description: | updated |
tags: | added: sts-sponsor sts-sru |
description: | updated |
description: | updated |
tags: | removed: sts-sponsor |
tags: | removed: sts-sru |
Personally I think we should modify MNTTAB in zfs-linux to point to /proc/self/mounts. This may not be completely straightforward *(there are a number of places that point to /etc/mnttab directly, or have logic around it and /proc/mounts), but it should be doable. I like this solution most because it doesn't require us to increase the number of dependencies in the zfs systemd scripts.