1 import ../make-test-python.nix (
5 incus ? pkgs.incus-lts,
10 name = "incus-storage";
13 maintainers = lib.teams.lxc.members;
19 boot.supportedFilesystems = [ "zfs" ];
20 boot.zfs.forceImportRoot = false;
21 environment.systemPackages = [ pkgs.parted ];
22 networking.hostId = "01234567";
23 networking.nftables.enable = true;
26 emptyDiskImages = [ 2048 ];
35 machine.wait_for_unit("incus.service")
37 with subtest("Verify zfs pool created and usable"):
40 "parted --script /dev/vdb mklabel gpt",
41 "zpool create zfs_pool /dev/vdb",
44 machine.succeed("incus storage create zfs_pool zfs source=zfs_pool/incus")
45 machine.succeed("zfs list zfs_pool/incus")
46 machine.succeed("incus storage volume create zfs_pool test_fs --type filesystem")
47 machine.succeed("incus storage volume create zfs_pool test_vol --type block")
48 machine.succeed("incus storage show zfs_pool")
49 machine.succeed("incus storage volume list zfs_pool")
50 machine.succeed("incus storage volume show zfs_pool test_fs")
51 machine.succeed("incus storage volume show zfs_pool test_vol")