Public bug reported:

[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"`

[ 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. TBD

[ Changelog ]

TBD

** Affects: ubuntu-advantage-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2106660

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

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to