init fails and cannot be recovered if zfsutils-linux not installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Anbox Cloud |
New
|
High
|
Unassigned | ||
lxd |
Fix Released
|
Unknown
|
Bug Description
Error: Failed to create storage pool "data": Required tool 'zpool' is missing
Installing zfsutils-linux doesn't help as it's too late.
# anbox-cloud-
Error: previous bootstrap has failed, cannot run again
If it cannot be run again then more checks need to be made that the required tools are available the first time.
2024-01-21 20:19:05 LXD network name set to lxdbr0
Since Juju 2 is being run for the first time, it has downloaded the latest public cloud information.
Only clouds with registered credentials are shown.
There are more clouds, use --all to see them.
2024-01-21 20:19:06 Public location: 192.168.7.207
2024-01-21 20:19:06 Public address: 192.168.7.207
2024-01-21 20:19:06 Private address: 192.168.7.207
2024-01-21 20:19:06 Private subnet: 192.168.4.0/22
2024-01-21 20:19:06 Using UA subscription from host
2024-01-21 20:19:06 Successfully extracted credentials from UA subscription
2024-01-21 20:19:06 Starting installation of dependencies
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Hit:1 http://
Hit:2 http://
Hit:3 http://
Get:4 https:/
Hit:5 http://
Hit:6 https:/
Hit:7 https:/
Hit:8 https:/
Hit:9 https:/
Fetched 2489 B in 2s (1440 B/s)
Reading package lists...
Building dependency tree...
Reading state information...
38 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Packages (main/binary-
W: Target Packages (main/binary-
W: Target Translations (main/i18n/
W: Target Packages (main/binary-
W: Target Packages (main/binary-
W: Target Translations (main/i18n/
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
linux-headers-
linux-headers-
linux-modules-
linux-modules-
The following additional packages will be installed:
libcpufreq0 libtcl8.6 linux-headers-
linux-
linux-
tcl-expect tcl8.6
Suggested packages:
tk8.6 fdutils linux-doc | linux-source-5.15.0 linux-tools tcl-tclreadline
The following NEW packages will be installed:
cpufrequtils expect libcpufreq0 libtcl8.6 linux-headers-
linux-
linux-
linux-
tcl-expect tcl8.6
0 upgraded, 13 newly installed, 0 to remove and 38 not upgraded.
Need to get 114 MB of archives.
After this operation, 587 MB of additional disk space will be used.
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
debconf: delaying package configuration, since apt-utils is not installed
Fetched 114 MB in 2s (46.8 MB/s)
Selecting previously unselected package libcpufreq0.
(Reading database ... 67209 files and directories currently installed.)
Preparing to unpack .../00-
Unpacking libcpufreq0 (008-2build1) ...
Selecting previously unselected package cpufrequtils.
Preparing to unpack .../01-
Unpacking cpufrequtils (008-2build1) ...
Selecting previously unselected package libtcl8.6:amd64.
Preparing to unpack .../02-
Unpacking libtcl8.6:amd64 (8.6.12+
Selecting previously unselected package tcl8.6.
Preparing to unpack .../03-
Unpacking tcl8.6 (8.6.12+
Selecting previously unselected package tcl-expect:amd64.
Preparing to unpack .../04-
Unpacking tcl-expect:amd64 (5.45.4-2build1) ...
Selecting previously unselected package expect.
Preparing to unpack .../05-
Unpacking expect (5.45.4-2build1) ...
Selecting previously unselected package linux-headers-
Preparing to unpack .../06-
Unpacking linux-headers-
Selecting previously unselected package linux-headers-
Preparing to unpack .../07-
Unpacking linux-headers-
Selecting previously unselected package linux-headers-
Preparing to unpack .../08-
Unpacking linux-headers-
Selecting previously unselected package linux-modules-
Preparing to unpack .../09-
Unpacking linux-modules-
Selecting previously unselected package linux-image-
Preparing to unpack .../10-
Unpacking linux-image-
Selecting previously unselected package linux-modules-
Preparing to unpack .../11-
Unpacking linux-modules-
Selecting previously unselected package linux-image-
Preparing to unpack .../12-
Unpacking linux-image-generic (5.15.0.91.88) ...
Setting up linux-headers-
Setting up libtcl8.6:amd64 (8.6.12+
Setting up libcpufreq0 (008-2build1) ...
Setting up linux-headers-
Setting up tcl8.6 (8.6.12+
Setting up tcl-expect:amd64 (5.45.4-2build1) ...
Setting up linux-headers-
Setting up cpufrequtils (008-2build1) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up expect (5.45.4-2build1) ...
Setting up linux-image-
I: /boot/vmlinuz is now a symlink to vmlinuz-
I: /boot/initrd.img is now a symlink to initrd.
Setting up linux-modules-
Setting up linux-image-generic (5.15.0.91.88) ...
Setting up linux-modules-
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Processing triggers for linux-image-
/etc/kernel/
update-initramfs: Generating /boot/initrd.
/etc/kernel/
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_
done
NEEDRESTART-VER: 3.5
NEEDRESTART-KCUR: 6.5.0-14-generic
NEEDRESTART-KEXP: 6.5.0-14-generic
NEEDRESTART-KSTA: 1
Packages installation done in parallel
fs.inotify.
fs.inotify.
fs.inotify.
vm.max_map_count = 262144
kernel.
kernel.pid_max = 4194304
net.ipv4.
net.ipv6.
kernel.keys.maxkeys = 2000
kernel.
fs.aio-max-nr = 524288
net.ipv4.
2024-01-21 20:21:45 LXD is ready, continuing with its initialization
2024-01-21 20:21:45 Using the following preseed configuration:
config:
cluster.
core.
cluster:
enabled: true
server_name: lxd0
networks:
- name: lxdbr0
type: bridge
config:
ipv4.nat: true
ipv4.
ipv4.address: 240.0.0.1/16
ipv6.address: none
profiles:
- name: default
devices:
root:
path: /
pool: data
type: disk
eth0:
type: nic
nictype: bridged
parent: lxdbr0
storage_pools:
- name: data
driver: zfs
config:
size: 32212254720
Error: Failed to create storage pool "data": Required tool 'zpool' is missing
description: | updated |
Changed in anbox-cloud: | |
status: | New → Incomplete |
Changed in lxd: | |
status: | Unknown → Fix Released |
Changed in anbox-cloud: | |
assignee: | Simon Fels (morphis) → nobody |
Changed in anbox-cloud: | |
status: | Incomplete → New |
Hey Ken
In terms of the error `Error: Failed to create storage pool "data": Required tool 'zpool' is missing`, it's an error thrown from the LXD when bootstrapping the anbox cloud, regarding the discussion around this can be found [1], the requirement here is that
```
The ZFS kernel module version needs to align with one of the versions of the tooling the LXD snap bundles, ```
Which version of LXD snap do you install on your host?
BR
Gary
1. https:/ /discuss. linuxcontainers .org/t/ lxd-5-12- zfs-stopped- working- in-lxd- error-required- tool-zpool- is-missing- when-kernel- zfs-module- version- 0-8/16753/ 6