forked from canonical/cloud-init
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: lxd do not check for thinpool kernel module (canonical#5709)
Rather than checking for kernel module file before running lxd, just fall back to disabling thinpool and retrying with thinpool disabled when subp() fails and it is using lvm as backing storage. On some Ubuntu releases, the kernel module is compressed which causes this check to fail and this warning to erroneously be logged. Making this logic only run in the failure path and avoiding file matches on kernel driver files should be less error prone. BREAKING_CHANGE: On some Ubuntu series this changes behavior causing lxd to now use lxd thinpool, which is the current lxd default. LP: #1982780
- Loading branch information
Showing
2 changed files
with
14 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters