← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2001552] [NEW] LXD module requires the non-existing 'lxd' transitional apt-package on Ubuntu 22.04

 

Public bug reported:

The lxd cloud-init module relies on a package called 'lxd', which was
available in past Ubuntu releases (20.04 and 18.04), but Ubuntu 22.04
has no such package, which makes the cloud-init lxd module fail.

In 20.04 the package was just a transitional package, which simply
installs LXD via snapd. As an easy fix, Ubuntu could of cause just
provide such package again to comply with cloud-init.

However, according to the cloud-init module documentation, Ubuntu is the
only supported platform (limited to 20.04 and 18.04 due to the lack of
the package in 22.04). Hence, a way forward could be to modify the lxd
module to instead rely on installation via snapd as the default, and
implement a fall back to the historic apt packages on the past Ubuntu
releases. This could potentially make the module work on other platforms
that support snapd.

Also, since LXD could be manually installed via the snap module, a quick
fix (that does of cause not provide automatic installation) could be to
simply check if the related binaries is available, and if so simply
avoid requiring installation of any packages.

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/2001552

Title:
  LXD module requires the non-existing 'lxd' transitional apt-package on
  Ubuntu 22.04

Status in cloud-init:
  New

Bug description:
  The lxd cloud-init module relies on a package called 'lxd', which was
  available in past Ubuntu releases (20.04 and 18.04), but Ubuntu 22.04
  has no such package, which makes the cloud-init lxd module fail.

  In 20.04 the package was just a transitional package, which simply
  installs LXD via snapd. As an easy fix, Ubuntu could of cause just
  provide such package again to comply with cloud-init.

  However, according to the cloud-init module documentation, Ubuntu is
  the only supported platform (limited to 20.04 and 18.04 due to the
  lack of the package in 22.04). Hence, a way forward could be to modify
  the lxd module to instead rely on installation via snapd as the
  default, and implement a fall back to the historic apt packages on the
  past Ubuntu releases. This could potentially make the module work on
  other platforms that support snapd.

  Also, since LXD could be manually installed via the snap module, a
  quick fix (that does of cause not provide automatic installation)
  could be to simply check if the related binaries is available, and if
  so simply avoid requiring installation of any packages.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/2001552/+subscriptions



Follow ups