Bug#751574: autopkgtest: adt-virt-schroot fails to find non-existent schroot session

Neil Williams codehelp at debian.org
Sun Jun 15 10:26:54 UTC 2014


On Sun, 15 Jun 2014 10:07:49 +0200
Martin Pitt <mpitt at debian.org> wrote:

> Hey Neil,
> 
> Neil Williams [2014-06-14 13:40 +0100]:
> > adt-run: $ vserver: adt-virt-schroot unstable
> > adt-run1: ** open, scratch=None
> > <VirtSubproc>: failure: could not find our session in ""
> 
> Can you please re-run this with "--- schroot -d ...", to get debugging
> output of adt-virt-schroot?

$ adt-run --apt-source json-schema-validator --- schroot -d unstable
adt-run [2014-06-15 11:01:53]: version 2.18
adt-run: $ vserver: adt-virt-schroot -d unstable
<VirtSubproc>: debug: schroot config: {'type': 'plain', 'users': '', 'user-modifiable-keys': '', 'environment-filter': '^(BASH_ENV|CDPATH|ENV|HOSTALIASES|IFS|KRB5_CONFIG|KRBCONFDIR|KRBTKFILE|KRB_CONF|LD_.*|LOCALDOMAIN|NLSPATH|PATH_LOCALE|RES_OPTIONS|TERMINFO|TERMINFO_DIRS|TERMPATH)$', 'directory': '/srv/chroot/unstable', 'root-modifiable-keys': '', 'description': 'unstable amd64 buildd chroot', 'groups': 'sbuild,root,neil', 'profile': 'default', 'setup.nssdatabases': 'default/nssdatabases', 'setup.copyfiles': 'default/copyfiles', 'command-prefix': '', 'root-groups': 'root,sbuild', 'setup.fstab': 'default/fstab', 'root-users': '', 'message-verbosity': 'verbose', 'setup.config': 'default/config', 'aliases': 'unstable-amd64,unstable', 'shell': '', 'preserve-environment': 'false'}
<VirtSubproc>: debug: have "root-on-testbed" capability
<VirtSubproc>: debug: executing open
<VirtSubproc>: debug:  ++ schroot -qb -c unstable
<VirtSubproc>: debug: auxverb = ['schroot', '-r', '-qd', '/', '-c', 'unstable64', '-u', 'root', '--'], downtmp = None
<VirtSubproc>: debug:  ++ schroot -r -qd / -c unstable64 -u root -- mktemp -d /tmp/adt-run.XXXXXX
<VirtSubproc>: debug:  ++ schroot -r -qd / -c unstable64 -u root -- chmod 1777 /tmp/adt-run.n2TxwA
<VirtSubproc>: debug:  ++ schroot --location --all-sessions
<VirtSubproc>: debug: cleanup...
<VirtSubproc>: failure: could not find our session in ""
adt-run: testbed failed: cannot send to testbed: ['BrokenPipeError: [Errno 32] Broken pipe\n']


Using -ddd shows no addition output in this section.

$ schroot --location --all-sessions
$ 

$ schroot -qb -c unstable
unstable64
$ schroot --location --all-sessions
$
$ schroot --location -c unstable64
/srv/chroot/unstable
$ schroot -e -c unstable64
$
$ schroot --location --all-sessions
$ schroot --location -c unstable64
/srv/chroot/unstable


> > I've noted this FIXME:
> >     # determine mount location
> >     # FIXME: "schroot --location -c sessid" really ought to work,
> > but fails; so # grep from --all-sessions until this gets fixed

Perhaps check both? --location -c works for me reliably, for the chroot
name and the alias.

> > However, schroot --location -c unstable does work:
> > 
> > $ schroot --location -c unstable
> > /srv/chroot/unstable
> > 
> > Which is, I assume, what autopkgtest is trying to find.
> 
> Not quite, "unstable" is a chroot name, not a session ID. The latter
> doesn't seem to work:
> 
> $ schroot -c sid -b
> sid-amd64-cf55a0df-a987-47ed-b4b4-7afaed7becec
> 
> $ schroot --location -c sid-amd64-cf55a0df-a987-47ed-b4b4-7afaed7becec
> E: sid-amd64-cf55a0df-a987-47ed-b4b4-7afaed7becec: Chroot not found
> 
> $ schroot --location --all-sessions
> /var/lib/schroot/mount/sid-amd64-cf55a0df-a987-47ed-b4b4-7afaed7becec

Hmm. I'm getting very different results.

$ schroot -c unstable -b
unstable64
$ schroot --location -c unstable64
/srv/chroot/unstable
$ schroot --location -c unstable
/srv/chroot/unstable
$ schroot --location --all-sessions
$ 

$ cat /etc/schroot/chroot.d/unstable
[unstable64]
description=unstable amd64 buildd chroot
directory=/srv/chroot/unstable
groups=sbuild,root,neil
root-groups=root,sbuild
aliases=unstable-amd64,unstable
message-verbosity=verbose

I think the adt sbuild code is going to have to cope with more
variation in the results of these commands.

$ grep -v '#' ~/.sbuildrc |sort -u

1;

$ grep -v '#' /etc/sbuild/sbuild.conf |sort -u

1;



-- 


Neil Williams
=============
http://www.linux.codehelp.co.uk/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20140615/c83a8317/attachment.sig>


More information about the autopkgtest-devel mailing list