Skip to content

Reject installing/refreshing LXD snap on unsupported host OSes #18121

@tomponline

Description

@tomponline

Please confirm

  • I have searched existing issues to check if an issue already exists for the bug I encountered.

Distribution

N/A

Distribution version

N/A

Output of snap list --all lxd core20 core22 core24 snapd

N/A

System info

N/A

Instance log

N/A

Expected behavior

N/A

Actual behavior

The LXD docs specify supported kernels here:

https://documentation.ubuntu.com/lxd/latest/reference/releases-snap/#kernel-support

We should prevent installing & refreshing the LXD snap on hosts that do not have supported kernel versions.

Suggested my @morphis

Steps to reproduce

N/A

Information to attach

  • Any relevant kernel output (dmesg)
  • Instance configuration (lxc config show <instance> --expanded)
  • Main daemon log (at /var/log/lxd/lxd.log or /var/snap/lxd/common/lxd/logs/lxd.log)
  • If a lxc command fails, output of the command with --debug
  • Output of the daemon with --debug (or use lxc monitor while reproducing the issue)

Metadata

Metadata

Assignees

No one assigned

    Labels

    JiraTriggers the synchronization of a GitHub issue in Jira

    Type

    No fields configured for Task.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions