#1001857 autopkgtest: running autopkgtest-build-lxc while testing may fail the test

#1001857#5
Date:
2021-12-17 20:39:17 UTC
From:
To:
Hi,

I was just running a test during which I noticed my container was
old. So I started to recreate it with autopkgtest-build-lxc in
parallel (like we do on our infrastructure). I was surprised to
noticed that this seems to fail my running test:

autopkgtest [21:28:22]: test check-all-pages-with-mariadb: preparing testbed
<VirtSubproc>: failure: lxc-copy with exit status 124
autopkgtest [21:33:42]: ERROR: testbed failure: cannot send to testbed: [Errno 32] Broken pipe

Paul

#1001857#10
Date:
2025-12-07 20:35:42 UTC
From:
To:
     # replace the original rootfs; can't make this more atomic
unfortunately
     mv "$LXCDIR/${NAME}.new/rootfs" "$LXCDIR/${NAME}/rootfs.new"
     mv "$LXCDIR/${NAME}/rootfs" "$LXCDIR/${NAME}/rootfs.old"
     mv "$LXCDIR/${NAME}/rootfs.new" "$LXCDIR/${NAME}/rootfs"
     # replace the original config
     sed -e "s/${NAME}.new/${NAME}/g" "$LXCDIR/${NAME}.new/config" >
"$LXCDIR/${NAME}/config"

Paul