Misleading error message about lxd.migrate

Bug #1928046 reported by Alberto Mardegan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Triaged
Medium
Unassigned

Bug Description

Running `snapcraft --use-lxd` on my Ubuntu 20.04 system led to this error:

    The 'LXD' provider does not support having the 'lxd' or 'lxd-client' deb packages installed. To completely migrate to the LXD snap run 'lxd.migrate' and try again.

Even though I knew my lxd was already coming from the snap version, I ran `lxd.migrate` anyway, and it failed:

    => Connecting to source server
    error: Unable to connect to the source LXD: Get "http://unix.socket/1.0": dial unix /var/lib/lxd/unix.socket: connect: no such file or directory

Running out of ideas, I removed the transitional deb package for lxd, and that indeed solved the issue. But maybe snapcraft should either make the message more clear, or the lxd.migrate tool (or even snapcraft itself) should be made smarter and just check if the lxd snap is installed, without caring about the deb version.

Tags: craft-341
Alberto Mardegan (mardy)
description: updated
description: updated
tags: added: craft-341
Changed in snapcraft:
status: New → Triaged
Revision history for this message
Chris Patterson (cjp256) wrote :

We will remove the deb check to avoid this unnecessary message.

Changed in snapcraft:
status: Triaged → Confirmed
Changed in snapcraft:
status: Confirmed → Triaged
importance: Undecided → Medium
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.