Public bug reported:

* Problem description:

It is quite easy to accidentally trigger the on-demand installation of
LXD's snap which takes a while. This is something that can, for example,
happen inside a LXD instance where the operator didn't notice the
instance was "entered". Something:

$ lxc launch ubuntu-minimal:noble c1
$ lxc shell c1 # accidentally enter `c1`
# lxc list     # try to interact with LXD in the host but mistakenly triggers 
lxd-installer

This last step is taking a while because multiple snaps need to be
installed due to that `lxc list` being run in the wrong environment
(instance instead of host). This is why
https://bugs.launchpad.net/ubuntu/+source/lxd-installer/+bug/2073941 and
https://discourse.ubuntu.com/t/when-an-lxc-command-is-used-on-a-system-
without-lxc-lxd-lxd-is-immediately-installed-should-it-be-that-way/46570
were opened/reported.

* Motivation for the FFe:

A better behavior would be for `lxd-installer` to detect if there is a
terminal and if yes, prompt for a confirmation before doing the lengthy
installation process. If no terminal is detect, it should assume that
LXD is to be installed on-demand (current behavior). That is what
https://code.launchpad.net/~sdeziel/ubuntu/+source/lxd-
installer/+git/lxd-installer/+merge/471653

* Additional information:

lxd-installer authoritative sources live at
https://code.launchpad.net/~git-ubuntu-import/ubuntu/+source/lxd-
installer/+git/lxd-installer/+ref/ubuntu/devel so this is not a new
upstream release per se. As such, the only changelog would be:

  * scripts/lxc: ask before proceeding if interactive (LP: #2073941, LP:
#2080277)

This changelog and the associated changes are being proposed for merging
in https://code.launchpad.net/~sdeziel/ubuntu/+source/lxd-
installer/+git/lxd-installer/+merge/471653

The changes themselves are simply to prompt for confirmation before
proceeding with the lengthy installation if a terminal is detected.

Source build logs:

#FIXME

Binary build logs:

#FIXME

Install logs from a LXD VM:

#FIXME

** Affects: lxd-installer (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  * Problem description:
  
  It is quite easy to accidentally trigger the on-demand installation of
  LXD's snap which takes a while. This is something that can, for example,
  happen inside a LXD instance where the operator didn't notice the
  instance was "entered". Something:
  
  $ lxc launch ubuntu-minimal:noble c1
  $ lxc shell c1 # accidentally enter `c1`
  # lxc list     # try to interact with LXD in the host but mistakenly triggers 
lxd-installer
  
  This last step is taking a while because multiple snaps need to be
  installed due to that `lxc list` being run in the wrong environment
  (instance instead of host). This is why
  https://bugs.launchpad.net/ubuntu/+source/lxd-installer/+bug/2073941 and
  https://discourse.ubuntu.com/t/when-an-lxc-command-is-used-on-a-system-
  without-lxc-lxd-lxd-is-immediately-installed-should-it-be-that-way/46570
  were opened/reported.
  
- 
  * Motivation for the FFe:
  
  A better behavior would be for `lxd-installer` to detect if there is a
  terminal and if yes, prompt for a confirmation before doing the lengthy
  installation process. If no terminal is detect, it should assume that
  LXD is to be installed on-demand (current behavior). That is what
  https://code.launchpad.net/~sdeziel/ubuntu/+source/lxd-
  installer/+git/lxd-installer/+merge/471653
  
- 
  * Additional information:
  
  lxd-installer authoritative sources live at
  https://code.launchpad.net/~git-ubuntu-import/ubuntu/+source/lxd-
  installer/+git/lxd-installer/+ref/ubuntu/devel so this is not a new
  upstream release per se. As such, the only changelog would be:
  
-   * scripts/lxc: ask before proceeding if interactive (LP: #2073941, LP:
- #FIXME)
+   * scripts/lxc: ask before proceeding if interactive (LP: #2073941, LP:
+ #2080277)
  
  This changelog and the associated changes are being proposed for merging
  in https://code.launchpad.net/~sdeziel/ubuntu/+source/lxd-
  installer/+git/lxd-installer/+merge/471653
  
  The changes themselves are simply to prompt for confirmation before
  proceeding with the lengthy installation if a terminal is detected.
  
  Source build logs:
  
  #FIXME
  
- 
  Binary build logs:
  
  #FIXME
  
- 
  Install logs from a LXD VM:
  
  #FIXME

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

Title:
  FFe: lxd-installer should prompt before installing LXD

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd-installer/+bug/2080277/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to