← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 2106660] Re: LXD auto-attach does not work without a daemon-reload

 

This bug was fixed in the package ubuntu-advantage-tools - 35.1ubuntu0

---------------
ubuntu-advantage-tools (35.1ubuntu0) plucky; urgency=medium

  * apt: support ESM snapshots by adding snapshot URLs for ESM repositories
    to the authentication file (released in version 35)
  * lxd: store the configuration in /var/lib/ubuntu-advantage instead of
    /var/lib/ubuntu-pro (LP: #2106660)

 -- Renan Rodrigo <renanrodrigo@xxxxxxxxxxxxx>  Wed, 09 Apr 2025
13:19:50 -0300

** Changed in: ubuntu-advantage-tools (Ubuntu Plucky)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/2106660

Title:
  LXD auto-attach does not work without a daemon-reload

Status in ubuntu-advantage-tools package in Ubuntu:
  New
Status in ubuntu-advantage-tools source package in Xenial:
  Fix Committed
Status in ubuntu-advantage-tools source package in Bionic:
  Fix Committed
Status in ubuntu-advantage-tools source package in Focal:
  Fix Committed
Status in ubuntu-advantage-tools source package in Jammy:
  Fix Committed
Status in ubuntu-advantage-tools source package in Noble:
  Fix Committed
Status in ubuntu-advantage-tools source package in Oracular:
  Fix Committed
Status in ubuntu-advantage-tools source package in Plucky:
  Fix Released

Bug description:
  [Impact]

  Version 35 of the Pro Client brings integration with LXD, making auto-
  attach possible on containers/VMs when the host is attached to Pro.

  However, LXD expects the `/var/lib/ubuntu-pro` directory to be present
  to start watching for changes there. The client only creates the file
  when `pro config set` is executed to change the integration behavior,
  but then the LXD daemon is not aware of the changes, because it's not
  watching the directory.

  From the pool of possible solutions for this problem, LXD and Pro Client agreed that the best for now is:
  - LXD watches /var/lib/ubuntu-advantage instead
  - The Pro Client puts the configuration in /var/lib/ubuntu-advantage

  This is what the first specification of the feature contained. The
  change to LXD is already done, and the Client must follow.

  [Test Plan]

  There is an integration test for this feature failing for release 35.
  This test must be executed and pass with release 35.1.

  `tox -e behave -- -D machine_types=lxd-vm -D releases=jammy -D
  install_from=proposed -D check_version=35.1ubuntu0~22.10 -n
  "lxd_guest_attach setting"`

  For other releases the same steps can be tested manually, given the
  LXD version on those releases is supporting the feature.

  [ Where problems could occur ]

  This would completely break the integration with LXD if the change is
  not made in both sides. However, the change on the LXD side is already
  merged and published to latest/edge for testing:
  https://github.com/canonical/lxd/pull/15357

  It would also break if an `interfaces` folder would be present in
  `/var/lib/ubuntu-advantage` already, which is not the case.

  The Pro Client will not ship the `/var/lib/ubuntu-pro` directory anymore, but some systems may have created the file using version 35, already in Plucky. We could remove / move it in postinst when upgrading to 35.1ubuntu0, but decided to just leave the file there if it was created.
  - We don't expect a relevant amount of users doing that, because there are no services (besides landscape client) to be enabled on interim releases
  - This feature was not SRUed to any of the other supported releases.
  - This version, with the fix, is intended to be a 0-day SRU. Even if it does not happen at 0-day, we don't expect many users trying out the feature in the first couple weeks.

  [ Changelog ]

  ubuntu-advantage-tools (35.1ubuntu0) plucky; urgency=medium

    * lxd: store the configuration in /var/lib/ubuntu-advantage instead of
      /var/lib/ubuntu-pro (LP: #2106660)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2106660/+subscriptions