snapcraft lxd + snapd transition in progress

Bug #1859469 reported by Adam Collard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Confirmed
Medium
Sergio Schvezov

Bug Description

$ snapcraft version
snapcraft, version 3.9.4

$ snapcraft --use-lxd
Launching a container.
/snap/snapcraft/3888/lib/python3.6/site-packages/pylxd/models/_model.py:116: UserWarning: Attempted to set unknown attribute "type" on instance of "Container"
  key, self.__class__.__name__
Waiting for cloud-init
.....................
status: done
error: transition to snapd snap in progress, no other changes allowed until this is done
An error occurred when trying to execute 'snap install --channel stable snapd' with 'LXD': returned exit code 10.

Unable to reproduce using latest/stable (3.8)

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

Is this reproduceable if you "snapcraft clean --use-lxd && snapcraft --use-lxd"?

Revision history for this message
Adam Collard (adam-collard) wrote :

Seems not

Changed in snapcraft:
status: New → Invalid
Changed in snapcraft:
assignee: nobody → Sergio Schvezov (sergiusens)
status: Invalid → Confirmed
importance: Undecided → Medium
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Thanks for confirming. For other people looking at this bug, marking the issue as Invalid was due to avoiding the problem but a solution is still warranted and that is to avoid using the "snapd" snap if "core" is already in place for existing systems.

The workaround today is to clean and start fresh.

Revision history for this message
Chris Patterson (cjp256) wrote :

Something I've seen a lot of switching between 3.8 and 3.9.x. I assume this may be related and worth noting here:

Launching a container.
Waiting for cloud-init
..................
status: done
error: no changes of type "auto-refresh" found
error: transition to snapd snap in progress, no other changes allowed until this is done

An error occurred when trying to execute 'snap install /var/tmp/snapd.snap' with 'LXD': returned exit code 10.

Running `snapcraft clean` does fix it.

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.