shiftfs-lxd.sh in ubuntu_overlayfs_smoke_test failed with "Required tool 'zpool' is missing"

Bug #2061107 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Po-Hsu Lin
lxd (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Issue found in cycle 2024.04.01 with F-gkeop (5.4.0-1091.95), F-oracle (5.4.0-1123.132)

Test log
  Running 'sudo -iu ubuntu /home/ubuntu/autotest/client/tmp/ubuntu_overlayfs_smoke_test/src/overlay-shiftfs-tests/tests/shiftfs-lxd.sh'
  Error: Required tool 'zpool' is missing
  Creating c1
  Error: Failed loading storage pool "zfs": Storage pool not found
  Error: Failed to fetch instance "c1" in project "default": Instance not found
  FAIL
  Error: Failed to fetch instance "c1" in project "default": Instance not found
  Error: Failed checking instance exists "local:c1": Failed to fetch instance "c1" in project "default": Instance not found
  Error: Storage pool not found

This is the failing command in shiftfs-lxd.sh:
  $ sudo lxc storage create zfs zfs size=2GiB
  Error: Required tool 'zpool' is missing

$ snap list lxd
Name Version Rev Tracking Publisher Notes
lxd 5.21.1-43998c6 28155 latest/stable canonical✓ -

This issue does not exist in 2024.03.04 cycle for these two kernels.

Po-Hsu Lin (cypressyew)
tags: added: 5.4 focal sru-20240401 ubuntu-overlayfs-smoke-test
description: updated
Po-Hsu Lin (cypressyew)
description: updated
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

I tried the same command with Focal 5.4.0-1089-gkeop in 2024.03.04 cycle, and it's failing with the same issue.

$ sudo lxc storage create zfs zfs size=2GiB
Error: Required tool 'zpool' is missing
$ uname -a
Linux f-lgkeop-gkeop-5-4-e2hcpu8-u-overlayfs-smk-test 5.4.0-1089-gkeop #93-Ubuntu SMP Wed Mar 13 18:13:26 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

This looks like a regression in LXD to me.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Comment from Simon Déziel:
5.21 and later require ZFS 2.1 or later. This means if you are using Ubuntu 20.04, you need the HWE kernel.

So this failure is expected. We should either hint it or skip it from the test.

Changed in lxd (Ubuntu):
status: New → Invalid
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

LXD team got this issue resolved by pushing a version that supports ZFS 0.8 to 5.21/stable channel.

Please find the detailed comment in the discourse post above.

I have the MP updated.

Changed in ubuntu-kernel-tests:
assignee: nobody → Po-Hsu Lin (cypressyew)
status: New → In Progress
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Patch applied, failed test restarted.

Changed in ubuntu-kernel-tests:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.