On Mon, Apr 30, 2018, 12:41 Ryan Harper <1760...@bugs.launchpad.net> wrote:
> On Mon, Apr 30, 2018 at 12:14 PM, Colin Ian King > <1760...@bugs.launchpad.net> wrote: > > The code actually polls /dev/zfs until it appears. The issue here is > > that it does not appear after 10 seconds, and then it gives up. > > Yes, you're right. > > Would it make sense to have zfsutils know it's running in a container? > I think "running in a container" is too strong but making it smarter by dropping the timeout and simply reporting an error could work if it doesn't regress on the host. Which I don't expect it to. I haven't given up playing with devtmpfs and we are on our way to getting quite close to properly delegated devices by user namespace. > > > > -- > > You received this bug notification because you are subscribed to the bug > > report. > > https://bugs.launchpad.net/bugs/1760173 > > > > Title: > > zfs, zpool commands hangs for 10 seconds without a /dev/zfs > > > > To manage notifications about this bug go to: > > > https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1760173/+subscriptions > > -- > You received this bug notification because you are a member of Ubuntu > containers team, which is subscribed to lxd in Ubuntu. > Matching subscriptions: lxd > https://bugs.launchpad.net/bugs/1760173 > > Title: > zfs, zpool commands hangs for 10 seconds without a /dev/zfs > > Status in lxd package in Ubuntu: > New > Status in zfs-linux package in Ubuntu: > Triaged > > Bug description: > 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://archive.ubuntu.com/ubuntu xenial-updates/main amd64 > Packages > 100 /var/lib/dpkg/status > > 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 > ProcVersionSignature: Ubuntu 4.13.0-36.40~16.04.1-generic 4.13.13 > 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-256color > PATH=(custom, no user) > LANG=C.UTF-8 > SourcePackage: zfs-linux > UpgradeStatus: No upgrade log present (probably fresh install) > > To manage notifications about this bug go to: > https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1760173/+subscriptions > -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1760173 Title: zfs, zpool commands hangs for 10 seconds without a /dev/zfs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1760173/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs