zfs, zpool commands hangs for 10 seconds without a /dev/zfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
zfs-linux (Ubuntu) |
Fix Released
|
High
|
Colin Ian King | ||
Xenial |
Fix Released
|
High
|
Colin Ian King | ||
Artful |
Fix Released
|
High
|
Colin Ian King | ||
Bionic |
Fix Released
|
High
|
Colin Ian King | ||
Cosmic |
Fix Released
|
High
|
Colin Ian King |
Bug Description
== SRU Justification, Xenial, Artful, Bionic ==
When outside a lxd container with zfs storage, zfs list or zpool status either returns or reports what's going on.
When inside a lxd container with zfs storage, zfs list or zpool status appears to hang, no output for 10 seconds.
== Fix ==
Inside a container we don't need the 10 seconds timeout, so check for this scenario and set the timeout to default to 0 seconds.
== Regression Potential ==
Minimal, this caters for a corner case inside a containerized environment, the fix will not alter the behaviour for other cases.
-----
1. # lsb_release -rd
Description: Ubuntu 16.04.4 LTS
Release: 16.04
2. # apt-cache policy zfsutils-linux
zfsutils-linux:
Installed: 0.6.5.6-0ubuntu19
Candidate: 0.6.5.6-0ubuntu19
Version table:
*** 0.6.5.6-0ubuntu19 500
500 http://
100 /var/lib/
3. When inside a lxd container with zfs storage, zfs list or zpool status either return or report what's going on.
4. When inside a lxd container with zfs storage, zfs list or zpool status appears to hang, no output for 10 seconds.
strace reveals that without a /dev/zfs the tools wait for it to appear for 10 seconds but do not provide a command line switch to disable or make it more verbose.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: zfsutils-linux 0.6.5.6-0ubuntu19
ProcVersionSign
Uname: Linux 4.13.0-36-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
Date: Fri Mar 30 18:09:29 2018
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=C.UTF-8
SourcePackage: zfs-linux
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in zfs-linux (Ubuntu): | |
importance: | Medium → High |
description: | updated |
Changed in zfs-linux (Ubuntu Bionic): | |
assignee: | nobody → Colin Ian King (colin-king) |
Changed in zfs-linux (Ubuntu Xenial): | |
assignee: | nobody → Colin Ian King (colin-king) |
Changed in zfs-linux (Ubuntu Artful): | |
assignee: | nobody → Colin Ian King (colin-king) |
tags: | added: verification-done-xenial |
Status changed to 'Confirmed' because the bug affects multiple users.