Build provider LXD uses x86-only image source

Bug #1836526 reported by Frode Nordahl
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Triaged
Medium
Unassigned

Bug Description

The LXD build provider loads Ubuntu Minimal Cloud images. These images are available for x86 platforms only.

Subsequently attempts to run ``snapcraft build --use-lxd`` on a non-x86 platform (arm64, s390x or ppc64el) result in this sequence of error messages:

Launching a container.
An error occurred with the instance when trying to launch with 'LXD': The requested image couldn't be found.
Ensure that 'LXD' is setup correctly and try again.

Changing snapcraft to load full cloud images or just using the standard LXD Ubuntu image server would most likely solve this issue.

https://github.com/snapcore/snapcraft/blob/d59622a8100c021e02fb5a99947e42602d306ae2/snapcraft/internal/build_providers/_lxd/_images.py#L33

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

We are waiting on the availability of buildd like LXD images to be produced by the cloud/foundations team (proxied through others), once those are available, it should just work. Those buildd images are a very small superset on top of the minimal images, by moving to the full cloud images we will be breaking or adding more cognitive overhead to developers wanting to integrate with build.snpacraft.io (or lanchpad/buildd).

Changed in snapcraft:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Alex Osadchyy (aosadchyy) wrote :

There are buildd images for s390x already available.
https://cloud-images.ubuntu.com/buildd/daily/bionic/20191209/

I ran into the same issue building microstack on s390x.

~/microstack$ sudo snapcraft --use-lxd
The LXD provider is offered as a technology preview for early adopters.
The command line interface, container names or lifecycle handling may change in upcoming releases.
Launching a container.
An error occurred with the instance when trying to launch with 'LXD': The requested image couldn't be found.
Ensure that 'LXD' is setup correctly and try again.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.