[Bug 2069754] Re: lxd-installer wait message confuses version checkers

Launchpad Bug Tracker 2069754 at bugs.launchpad.net
Fri Oct 18 05:58:13 UTC 2024


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: lxd-installer (Ubuntu Noble)
       Status: New => Confirmed

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

Title:
  lxd-installer wait message confuses version checkers

Status in lxd-installer package in Ubuntu:
  Fix Released
Status in lxd-installer source package in Noble:
  Confirmed

Bug description:
  The fact that lxd-installer echoes "Installing LXD snap, please be
  patient." to stdout while it `snap install lxd` behind the scene can
  confuse version checkers like `snapcraft`:

  $ lxc launch ubuntu-minimal-daily:24.10 o1
  $ lxc exec o1 -- apt-get update -qq
  $ lxc exec o1 -- apt-get install --no-install-recommends -y git
  $ lxc exec o1 -- git clone https://github.com/canonical/lxd-pkg-snap.git

  $ lxc exec o1 -- snap wait system seed
  $ lxc exec o1 -- snap install --classic snapcraft

  $ lxc exec o1 -- sh -c 'cd /root/lxd-pkg-snap && snapcraft'
  craft-providers error: Failed to parse LXD version.
  Version data returned: 'Installing'                                                  
  Full execution log: '/root/.local/state/snapcraft/log/snapcraft-20240618-151045.662527.log'

  
  In the above, we see that `snapcraft` tried to interpret the first word on stdout ("Installing") as the LXD version but that's failing for obvious reasons.

  lxd-installer should not output anything to stdout as that should be
  left to the real `lxd` and `lxc` commands.

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




More information about the foundations-bugs mailing list