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)
Triaged
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
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.