Your message dated Mon, 26 Oct 2020 20:48:29 +0000
with message-id <[email protected]>
and subject line Bug#971749: fixed in autopkgtest 5.15
has caused the Debian Bug report #971749,
regarding autopkgtest-build-lxc fails if a previous .new container was leftover
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
971749: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971749
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: autopkgtest
Version: 5.14
Severity: normal
User: [email protected]
Usertags: origin-kali

When a foo.new container was left over from a previous run,
autopkgtest-build-lxc fails with the following message:

  lxc-create: foo.new: tools/lxc_create.c: main: 274 Container already exists

This problem showed up for us in the context of debci daily runs, as
initiated from /etc/cron.daily/debci-worker.

The attached patch fixes this issue, without any side effect that I can
foresee.

Cheers,

-- 
Seb

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.8.0-2-amd64 (SMP w/36 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages autopkgtest depends on:
ii  apt-utils       2.1.7
ii  libdpkg-perl    1.20.5
ii  procps          2:3.3.16-5
ii  python3         3.8.2-3
ii  python3-debian  0.1.37

Versions of packages autopkgtest recommends:
ii  autodep8  0.23

Versions of packages autopkgtest suggests:
ii  lxc               1:4.0.2-1
pn  lxd               <none>
ii  ovmf              2020.05-2
ii  qemu-efi-aarch64  2020.05-2
ii  qemu-efi-arm      2020.05-2
ii  qemu-system       1:5.0-13
ii  qemu-utils        1:5.1+dfsg-4
ii  schroot           1.6.10-9+b1
ii  vmdb2             0.16-2

-- no debconf information
commit ded0cfcd394f2f756b4bb8fbdfc9bf4cfb80e53e
Author: Sébastien Delafond <[email protected]>
Date:   Mon Sep 28 09:59:11 2020 +0200

    build-lxc: remove old .new container if present

diff --git a/tools/autopkgtest-build-lxc b/tools/autopkgtest-build-lxc
index 0886589..84d53f8 100755
--- a/tools/autopkgtest-build-lxc
+++ b/tools/autopkgtest-build-lxc
@@ -176,6 +176,10 @@ else
     # remove LXC rootfs caches; on btrfs this might be a subvolume, otherwise
     # rm it
     btrfs subvolume delete /var/cache/lxc/$CACHE/rootfs-* 2>/dev/null || rm 
-rf /var/cache/lxc/$CACHE/rootfs-*
+    # remove leftover .new container if present
+    if lxc-ls | grep -q ${NAME}.new ; then
+      lxc-destroy --force --name=${NAME}.new
+    fi
     # create a new rootfs in a temp container
     $LXC_CREATE_PREFIX lxc-create -B best --name=${NAME}.new $LXC_ARGS
     setup ${NAME}.new

--- End Message ---
--- Begin Message ---
Source: autopkgtest
Source-Version: 5.15
Done: Paul Gevers <[email protected]>

We believe that the bug you reported is fixed in the latest version of
autopkgtest, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Paul Gevers <[email protected]> (supplier of updated autopkgtest package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 26 Oct 2020 21:27:25 +0100
Source: autopkgtest
Architecture: source
Version: 5.15
Distribution: unstable
Urgency: medium
Maintainer: Debian CI team <[email protected]>
Changed-By: Paul Gevers <[email protected]>
Closes: 918882 958727 960267 970513 971749
Changes:
 autopkgtest (5.15) unstable; urgency=medium
 .
   [ Sebastien Delafond ]
   * Remove left over .new containers before trying to generate a new one
     (Closes: #971749)
 .
   [ Antonio Terceiro ]
   * virt-lxc: extract common initial argument list for lxc-copy
   * virt-lxc: add option to limit disk usage by tests
 .
   [ Paul Gevers ]
   * tests/lxd: mark test skippable and exit 77 in stead of 0 in case of
     balling-out
   * Add support for Architecture field (Closes: #970513)
   * Check for empty Tests field (Closes: #918882)
   * With --test-name, don't report when other tests are skipped
     (Closes: #960267)
 .
   [ Simon McVittie ]
   * Check restrictions with testbed compat, not during initialization
   * Allow restrictions to be ignored from the command line
 .
   [ Ivo De Decker ]
   * Assume root-on-testbed with autopkgtest-virt-ssh and improve debugging
     (Closes: #958727)
Checksums-Sha1:
 c44e68692c0d0a67ab5af477c4dc210922b1f3d1 1695 autopkgtest_5.15.dsc
 cd8435a57b5aed546e4801d64e238413321d087a 186748 autopkgtest_5.15.tar.xz
Checksums-Sha256:
 c5192a929d93fc281efe258b6337c4cd942507c7c74d170c3198147bb4b48275 1695 
autopkgtest_5.15.dsc
 1b3d12264034405f5d88cdce555e64a08fb0567e5a9256d382f034cd371f35dd 186748 
autopkgtest_5.15.tar.xz
Files:
 899d2bce385a145a35da8522d46f268a 1695 devel optional autopkgtest_5.15.dsc
 f1f86b3efe11fe090cf487678d565764 186748 devel optional autopkgtest_5.15.tar.xz

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEWLZtSHNr6TsFLeZynFyZ6wW9dQoFAl+XMqYACgkQnFyZ6wW9
dQo3PAgAmBSquBbrFHCgozRTYzXQZX4NlwRcEC0sUPpqI+pVPHbWwKLc8YxCydeI
PkL8kbF0JGTPpSrxqSSpV9SwlVu9rK69UL1T+fAFe81lR2aDvpkMCwC5P9b+XqOg
MFUuxnpIVYnGg+3OfZVCt6mbKn+Br55FvuRzxWMSeZ4w/KxdwJXjdvgVXu6vzMH8
nJPaH2fLSCfkL4lWLcjBJoQ1csXq2AORGZ43W8BqaWACphvKhHqypV5ut9MvZ/0w
4Ta4y6/kv+oZiLYwJeUX+kawHo0Ve67TimX3IwU4wWsgBRQN5Ikeg78FOz6dDubs
OBAUPmeEzYOBm5NZI3PzISwMUgonsw==
=7CVJ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to