~canonical-kernel-team/+git/overlay-shiftfs-tests:main

Last commit made on 2024-12-04
Get this branch:
git clone -b main https://git.launchpad.net/~canonical-kernel-team/+git/overlay-shiftfs-tests
Members of Canonical Kernel Team can upload to this branch. Log in for directions.

Branch merges

Branch information

Recent commits

083e2ca... by Manuel Diewald

install-deps: use LXD 5.0 for Focal 5.4

Track 5.20 is no longer available for lxd, so refresh to 5.0/stable
instead. Version 5.21 or newer suffers from LP: #2061107, track
5.0/stable is currently the most recent version that can be used.

Signed-off-by: Manuel Diewald <email address hidden>
Acked-by: Po-Hsu Lin <email address hidden>
Signed-off-by: Po-Hsu Lin <email address hidden>

1b99ab6... by Po-Hsu Lin

cleanup.sh: add a new script for post-test cleanup

KERNTT-1167

Certification team has notified us the installed docker.io package is
breaking their tests on manually provisioned MTK instances. Add a
cleanup.sh script to remove it.

Corresponding changes need to be added to autotest-client-tests.

Signed-off-by: Po-Hsu Lin <email address hidden>

32518ec... by Manuel Diewald

Launch lxd containers with security.nesting=true

BugLink: https://bugs.launchpad.net/bugs/2076611

Since lxd snap revision #29727 (lxd 6.1-4cd98ce) overlayfs mount
operations will be denied by apparmor policies due to insufficient
permissions unless security.nesting is enabled in the container
configuration.

Signed-off-by: Manuel Diewald <email address hidden>
Acked-by: Francis Ginther <email address hidden>
Signed-off-by: Francis Ginther <email address hidden>

d6c454f... by Po-Hsu Lin

install-deps: use LXD 5.20 for Focal 5.4

BugLink: https://bugs.launchpad.net/bugs/2061107

On Focal the newly released LXD 5.21 in latest/stable require ZFS 2.1
from 5.15 HWE kernel.
With that version of LXD installed the shiftfs-lxd.sh test will fail
with:
   Error: Required tool zpool is missing

LXD team suggests to use 5.21/stable, which contains ZFS 0.8 suport.

Signed-off-by: Po-Hsu Lin <email address hidden>
Acked-by: Francis Ginther <email address hidden>
Signed-off-by: Po-Hsu Lin <email address hidden>

6ed50e5... by Po-Hsu Lin

Skip shiftfs related tests on 6.5+

BugLink: https://bugs.launchpad.net/bugs/2042057

Shiftfs support will be dropped from 6.5 variants on Jammy as well.
The result we saw for J-hwe-6.5 in sru-20231030 is because we are
still in the middle of this transition.

Use `dpkg --compare-versions` for kernel version comparison.

Signed-off-by: Po-Hsu Lin <email address hidden>
Acked-by: Andrei Gherzan <email address hidden>
Signed-off-by: Po-Hsu Lin <email address hidden>

721ddbb... by Po-Hsu Lin

Skip ZFS related tests on realtime kernel

BugLink: https://bugs.launchpad.net/bugs/2032166

ZFS is required by the shiftfs-lxd.sh test, but it is not supported
on realtime kernel (LP: #2017637)

Signed-off-by: Po-Hsu Lin <email address hidden>
Acked-by: Francis Ginther <email address hidden>

27ae847... by Po-Hsu Lin

Skip shiftfs tests on Mantic+

BugLink: https://bugs.launchpad.net/bugs/2042057

Shiftfs support has been dropped on Mantic since 6.5.0-12.12
(LP: #2038522). I think we can skip shiftfs related tests on
newer releases.

For J-hwe-6.5, these tests are still working in sru-20231030.
Therefore limit changes for Mantic+.

Signed-off-by: Po-Hsu Lin <email address hidden>
Acked-by: Francis Ginther <email address hidden>
Signed-off-by: Po-Hsu Lin <email address hidden>

68d31ce... by Thadeu Lima de Souza Cascardo

ovl-refcnt: avoid race with systemd-tmpfiles

BugLink: https://bugs.launchpad.net/bugs/2034586

systemd-tmpfiles-setup service might still run under a container just
created, leading to a race where files under /tmp are removed during the
test.

Create the temporary directory under $HOME instead.

Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>
Acked-by: Sean Feole <email address hidden>
Acked-by: Po-Hsu Lin <email address hidden>
Signed-off-by: Po-Hsu Lin <email address hidden>

01ed128... by Thadeu Lima de Souza Cascardo

ovl-mkdir-xattrs: avoid race with systemd-tmpfiles

BugLink: https://bugs.launchpad.net/bugs/2034586

systemd-tmpfiles-setup service might still run under a container just
created, leading to a race where files under /tmp are removed during the
test.

Create the temporary directory under $HOME instead.

Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>
Acked-by: Po-Hsu Lin <email address hidden>
Signed-off-by: Po-Hsu Lin <email address hidden>

e4dcc51... by Po-Hsu Lin

install-deps: refresh lxd with latest/stable channel

BugLink: https://bugs.launchpad.net/bugs/2036861

On Jammy, the preloaded 5.0 stable lxd is too old for 6.5 ZFS. And thus
causing this issue even with the presence of zpool command:
  Error: Required tool zpool is missing

Fix this by refreshing the snap with with latest/stable channel.

Signed-off-by: Po-Hsu Lin <email address hidden>
Acked-by: Francis Ginther <email address hidden>

Merged branch ~canonical-kernel-team/+git/overlay-shiftfs-tests:refresh-latest-stable