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 Released
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
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopkgtest - 5.37ubuntu2

---------------
autopkgtest (5.37ubuntu2) oracular; urgency=medium

  * New delta, all upstream cherry-picks:
    - t/autopkgtest-build-docker: use ports.ubuntu.com on non-amd64 Ubuntu
    - t/autopkgtest: test_git_source_build: skip if remote repo is unreachable
    - d/t/lxd: restrict architectures via Architecture and enable arm64
    - d/rules: don't run pre-commit at package build time

 -- Paride Legovini <email address hidden> Wed, 26 Jun 2024 13:16:53 +0200

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