[Bug 2004500] Re: alternative-bin-sh autopkgtest redirect tar to busybox
Paride Legovini
2004500 at bugs.launchpad.net
Wed Feb 1 20:00:44 UTC 2023
Hi Gioele,
AIUI from [1] the breaks-testbed restriction does not ensure that no
further command gets executed on the testbed system.
The alternative-bin-sh autopkgtest works in Debian because autopkgtest-
virt-lxc (like many other virt servers) has the downtmp-host capability,
which allows autopkgtest to retrieve artifacts using a directory which
is shared with the host system. The lxd and qemu virt servers do not
have this capability, so artifacts are retrieved by building a tarball
on the testbed system (executing commands there) and then retrieving it
(I didn't check exactly how). I don't think we have a bug in
autopkgtest(-virt-lxd) here.
I think the trap you suggested should be added to alternative-bin-sh in
Debian.
For downtmp-host see [2]. Thanks for chiming in!
[1] https://salsa.debian.org/ci-team/autopkgtest/-/blob/master/doc/README.package-tests.rst
[2] https://salsa.debian.org/ci-team/autopkgtest/-/blob/master/doc/README.virtualisation-server.rst
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lsb-release-minimal in Ubuntu.
https://bugs.launchpad.net/bugs/2004500
Title:
alternative-bin-sh autopkgtest redirect tar to busybox
Status in lsb-release-minimal package in Ubuntu:
In Progress
Bug description:
The alternative-bin-sh autopkgtest is meant to run a set of tests
using busybox as /bin/sh, however this somehow happens to also
redirect /bin/tar. This causes autopkgtest failures. To reproduce
locally fetch the lsb-release-minimal (12.0-1) source tree and run:
autopkgtest --test-name=alternative-bin-sh -s -U --no-built-binaries
./lsb-release-minimal-12.0/ --apt-pocket=proposed=lsb-release-minimal
-- lxd ubuntu-daily:lunar
Sample error:
autopkgtest [19:09:08]: test alternative-bin-sh: - - - - - - - - - - results - - - - - - - - - -
alternative-bin-sh PASS
tar: unrecognized option '--warning=none'
BusyBox v1.35.0 (Ubuntu 1:1.35.0-4ubuntu1) multi-call binary.
Usage: tar c|x|t [-ZzJjahmvokO] [-f TARFILE] [-C DIR] [FILE]...
Create, extract, or list files from a tar file
c Create
x Extract
t List
-f FILE Name of TARFILE ('-' for stdin/out)
-C DIR Change to DIR before operation
-v Verbose
-O Extract to stdout
-m Don't restore mtime
-o Don't restore user:group
-k Don't replace existing files
-Z (De)compress using compress
-z (De)compress using gzip
-J (De)compress using xz
-j (De)compress using bzip2
--lzma (De)compress using lzma
-a (De)compress based on extension
-h Follow symlinks
--overwrite Replace existing files
--strip-components NUM NUM of leading components to strip
--no-recursion Don't descend in directories
--numeric-owner Use numeric user:group
--no-same-permissions Don't restore access permissions
--to-command COMMAND Pipe files to COMMAND
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
autopkgtest-virt-lxd [19:09:08]: copyup destination failed, status 2
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb-release-minimal/+bug/2004500/+subscriptions
More information about the foundations-bugs
mailing list