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

Neil Williams codehelp at debian.org
Sat Jun 14 12:40:44 UTC 2014

Package: autopkgtest
Version: 2.18
Severity: normal

adt-virt-schroot fails:

$ adt-run -d json-schema-validator_2.3.1-3.dsc --- schroot unstable
adt-run1: options: {'timeout_short': None, 'gnupghome': '~/.autopkgtest/gpg', 'vserver': ['adt-virt-schroot', 'unstable'], 'binary': None, 'built_tree': None, 'binaries_forbuilds': 'auto', 'VSERVER_DUMMY': None, 'source': None, 'user': None, 'actions': [<Action dsc dsc0 json-schema-validator_2.3.1-3.dsc>], 'gainroot': None, 'set_lang': 'C', 'debuglevel': 1, 'apt_pocket': [], 'logfile': None, 'timeout_copy': None, 'timeout_factor': 1.0, 'timeout_install': None, 'shell_fail': None, 'binaries_fortests': 'auto', 'timeout_test': None, 'summary': None, 'quiet': False, 'unbuilt_tree': None, 'binaries': 'auto', 'timeout_build': None, 'shell': None, 'output_dir': None, 'built_binaries_filter': None, 'apt_source': None, 'setup_commands': []}; timeouts: {'short': 100, 'build': 100000, 'install': 3000, 'test': 10000, 'copy': 300}
adt-run1: ** init
adt-run [2014-06-14 13:33:54]: version 2.18
adt-run: $ vserver: adt-virt-schroot unstable
adt-run1: ** open, scratch=None
<VirtSubproc>: failure: could not find our session in ""
adt-run1: ** bomb unexpected eof from the testbed
adt-run1: ** stop
adt-run1: ** close, scratch=None
adt-run1: ** bomb cannot send to testbed: ['BrokenPipeError: [Errno 32] Broken pipe\n']
adt-run1: ** stop
adt-run: testbed failed: cannot send to testbed: ['BrokenPipeError: [Errno 32] Broken pipe\n']
adt-run1: ** stop

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

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

$ schroot --location -c unstable

Which is, I assume, what autopkgtest is trying to find.

I only have on schroot for use with adt-run, so I hacked my location into
place as /srv/chroot/unstable hardcoded to restore functionality in
/usr/bin/adt-virt-schroot at line 143.

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

Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages autopkgtest depends on:
ii  apt-utils       1.0.4
ii  libdpkg-perl    1.17.10
ii  python3         3.4.1-1
ii  python3-debian  0.1.22

autopkgtest recommends no packages.

Versions of packages autopkgtest suggests:
pn  lxc          <none>
pn  qemu-system  <none>
ii  qemu-utils   2.0.0+dfsg-6+b1
ii  schroot      1.6.10-1+b1

-- no debconf information

More information about the autopkgtest-devel mailing list