[Bug 2057888] Re: Private store may not contain lxd snap

Paul Mars 2057888 at bugs.launchpad.net
Thu Apr 4 06:50:58 UTC 2024


As discussed in mattermost, ubuntu-image 3.X also reset the preseeding
if needed. See https://github.com/canonical/ubuntu-
image/blob/main/internal/statemachine/classic_states.go#L776.

> we leveraged the commit

What do you mean?

> Or maybe we can have a flag to skip checking var/lib/snapd/state.json

You mean reset the preseeding anyway? Or skip the preseeding entirely?


I am also not sure to understand why your problem is linked to resetting the preseeding. 

** Changed in: ubuntu-image
       Status: New => Incomplete

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

Title:
  Private store may not contain lxd snap

Status in Ubuntu Image:
  Incomplete

Bug description:
  Hi,

  I defined core22 and snapd in extra-snaps, but the ubuntu-image 3.x
  will also try to download lxd snap after downloaded core22 and snapd,
  and lxd is actually not included in the private store

  If I understand correctly, in internal/statemachine/classic_states.go,
  the function prepareClassicImage will try to check the file called
  var/lib/snapd/state.json, and tries to preseed the snaps defined in
  that file afterwards. However, lxd snap may not be included in private
  store, then it will fail to preseed the snap.

  Previously in ubuntu-image 2.x, we leveraged the
  commit(https://git.launchpad.net/livecd-rootfs/commit/live-
  build/functions?id=b43e3b84f4c9100379f4686f80699929c7657056) from
  foundation team, I don't know if this mechanism should be integrated
  into ubuntu-image 3.x as well? Or maybe we can have a flag to skip
  checking var/lib/snapd/state.json?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-image/+bug/2057888/+subscriptions




More information about the foundations-bugs mailing list