Control: reopen -1

On Sun, Jul 29, 2018 at 04:06:05PM +0000, Debian Bug Tracking System wrote:
>
> Closes: 903975 904870
> Changes:
>  autopkgtest (5.4.2) unstable; urgency=medium
>  .
>    [ Martin Pitt ]
>    * doc: Document "test-name" feature
>    * doc/README.package-tests.rst: Fix formatting of previous commit
>  .
>    [ Niko Tyni ]
>    * Fix versioned provides test dependency handling
>    * Refactor _synthesize_deps() parameters
>    * Properly handle virtual packages in alternative test dependencies
>      (Closes: #903975)
>    * Add test cases for alternative test dependencies improvements
>  .
>    [ Antonio Terceiro ]
>    * Always pass a non-empty user string to `su` (Closes: #904870)
[...]
> Package: autopkgtest
> Version: 5.4.1
> Severity: grave
> Justification: renders package unusable
> 
> Dear autopkgtest Maintainers,
> 
> In various situations autopkgtest calls /bin/su with an empty string for
> the username. The old su (from login) ignored this, but newer su
> versions (from util-linux 2.32-0.2) do not accept this, and abort.
> Personally I think autopkgtest got lucky that this worked before, but
> this probably was not a valid thing to do.
> 
> One of the affected lines:
>    https://sources.debian.org/src/autopkgtest/5.4.1/lib/adt_testbed.py/#L1096
> 
> Example output from autopkgtest:
> 
>    autopkgtest [15:52:36]: test supported-algos: [-----------------------
>    su: user  does not exist
>    autopkgtest [15:52:36]: test supported-algos: -----------------------]
>    Unexpected error:
>    Traceback (most recent call last):
>      File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 717, in mainloop
>        command()
>      File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 646, in command
>        r = f(c, ce)
>      File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 584, in cmd_copyup
>        copyupdown(c, ce, True)
>      File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 469, in copyupdown
>        copyupdown_internal(ce[0], c[1:], upp)
>      File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 494, in 
> copyupdown_internal
>        copyup_shareddir(sd[0], sd[1], dirsp, downtmp_host)
>      File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 408, in 
> copyup_shareddir
>        shutil.copy(tb, host)
>      File "/usr/lib/python3.6/shutil.py", line 241, in copy
>        copyfile(src, dst, follow_symlinks=follow_symlinks)
>      File "/usr/lib/python3.6/shutil.py", line 120, in copyfile
>        with open(src, 'rb') as fsrc:
>    FileNotFoundError: [Errno 2] No such file or directory: 
> '/tmp/autopkgtest.zwqy11/supported-algos-stdout'
>    autopkgtest [15:52:36]: ERROR: testbed failure: cannot send to testbed: 
> [Errno 32] Broken pipe
>    autopkgtest [15:52:36]: Binaries: resetting testbed apt configuration
> 
> Note that tests that say "Restrictions: needs-root" do not appear to hit
> those code paths.
> 
> I might try to come up with a patch if no one beats me to it.
> 
> Chris

I ran into this just now with autopkgtest 5.5 (inside LXC, or schroot)
when the host system is using either 4.4 or 5.4.1~bpo9+2.

autopkgtest [07:45:34]: test command1: dh_elpa_test --autopkgtest
autopkgtest [07:45:34]: test command1: [-----------------------                 
su: user  does not exist
autopkgtest [07:45:34]: test command1: -----------------------]
Unexpected error:
Traceback (most recent call last):
  File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 717, in mainloop
    command()
  File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 646, in command
    r = f(c, ce)
  File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 584, in cmd_copyup
    copyupdown(c, ce, True)
  File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 469, in copyupdown
    copyupdown_internal(ce[0], c[1:], upp)
  File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 494, in 
copyupdown_internal
    copyup_shareddir(sd[0], sd[1], dirsp, downtmp_host)
  File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 408, in 
copyup_shareddir
    shutil.copy(tb, host)
  File "/usr/lib/python3.5/shutil.py", line 241, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.5/shutil.py", line 120, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 
'/tmp/autopkgtest-lxc.rg28o5cn/downtmp/command1-stdout'
autopkgtest [07:45:35]: ERROR: testbed failure: cannot send to testbed: [Errno 
32] Broken pipe

Will this be solved if 5.5 is backported?  As a consequence, does this
also mean all stretch systems with sid autopkgtest chroots must switch
to using backported autopkgtests?

Cheers,
Nicholas

Attachment: signature.asc
Description: PGP signature

Reply via email to