autopkgtest-build-lxd: check for existing image early

Bug #2069283 reported by Heinrich Schuchardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Fix Committed
Wishlist
Unassigned

Bug Description

autopkgtest-build-lxd fails if an image already exists with an error like

    Error: Aliases already exists: autopkgtest/ubuntu/noble/amd64

*after* creating the new image which takes a considerable amount of time.

This is wasting user time. It would be preferable to have an early check and recommend to the user to use 'lxc image delete' if he wishes to recreate the image.

We might additionally consider adding a --force parameter allowing to overwrite images.

Changed in autopkgtest (Ubuntu):
importance: Undecided → Wishlist
Paride Legovini (paride)
Changed in autopkgtest (Ubuntu):
status: New → Triaged
Revision history for this message
Paride Legovini (paride) wrote :

This is implemented already since autopkgtest 5.30 [1], but broken as a side effect of LP: #2069274.

[1] https://salsa.debian.org/ci-team/autopkgtest/-/commit/9d2ae95ba54d4db0e5e6d39ed7ca967152df5c1d

Changed in autopkgtest (Ubuntu):
status: Triaged → Fix Committed
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.