[buildd-tools-devel] Bug#751574: autopkgtest: adt-virt-schroot fails to find non-existent schroot session

Martin Pitt mpitt at debian.org
Sun Jun 15 16:26:42 UTC 2014


reassign 751574 autopkgtest 2.18
retitle 751574 schroot: refuse to work in non-ephemeral schroots
thanks

Hello Neil again,

Martin Pitt [2014-06-15 18:13 +0200]:
> Neil Williams [2014-06-15 12:56 +0100]:
> > neil at sylvester:~$ schroot -qb -c unstable
> > unstable64
> 
> OK, this doesn't quite look like a regular session ID, I get
> something like
> 
>   $ schroot -c sid -b
>   sid-amd64-cf55a0df-a987-47ed-b4b4-7afaed7becec

Ooh, I just had an idea: In your original bug report you wrote

However, schroot --location -c unstable does work:

> $ schroot --location -c unstable
> /srv/chroot/unstable

This is definitively not a session ID, but the original chroot I
assume. So I suppose what happens here is that you use
"type=directory", but *no* "union-type". With "type=file" you'd get a
tarball, which is unpacked into a temp dir, and after exiting the temp
dir is removed. With union-type=aufs/overlayfs/unionfs you get an
ephemeral overlay. But it seems you don't use either, thus anything
which is done to that chroot stays around and never gets cleaned up.

Thus this isn't an adequate schroot for using autopkgtest or
sbuilding. You really want to only keep the pristine minimal chroot
(tarball or dir) around permanently, and everything you do in it
should be transient and gone after exiting the schroot.

Thus I reassign this back to autopkgtest, and will add check that will
just refuse working in such permanent schroots. This almost certainly
also explains #751575, as I suppose schroot doesn't apply the
profile's fstab/bind mounts in the "static chroot" case.

Thanks,

Martin

P.S. You should really take another look at mk-sbuild. Whatever you
did to generate your "unstable" chroot gave you something ridiculously
broken :-(

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20140615/d397cfa2/attachment.sig>


More information about the Buildd-tools-devel mailing list