shutil.Error: ./results/fifo_log is a named pipe

Bug #1393426 reported by Vincent Ladeuil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Fix Released
Low
Martin Pitt

Bug Description

$ adt-run --output-dir results .// --setup-commands='apt-get update' --- lxc -es adt-utopic

...

adt-run [15:13:25]: @@@@@@@@@@@@@@@@@@@@ unbuilt-tree .//
Unexpected error:
Traceback (most recent call last):
  File "/usr/share/autopkgtest/python/VirtSubproc.py", line 671, in mainloop
    command()
  File "/usr/share/autopkgtest/python/VirtSubproc.py", line 609, in command
    r = f(c, ce)
  File "/usr/share/autopkgtest/python/VirtSubproc.py", line 551, in cmd_copydown
    copyupdown(c, ce, False)
  File "/usr/share/autopkgtest/python/VirtSubproc.py", line 442, in copyupdown
    copyupdown_internal(ce[0], c[1:], upp)
  File "/usr/share/autopkgtest/python/VirtSubproc.py", line 469, in copyupdown_internal
    copydown_shareddir(sd[0], sd[1], dirsp, downtmp_host)
  File "/usr/share/autopkgtest/python/VirtSubproc.py", line 422, in copydown_shareddir
    shutil.copytree(host, host_tmp, symlinks=True)
  File "/usr/lib/python3.4/shutil.py", line 342, in copytree
    raise Error(errors)
shutil.Error: [('./results/fifo_log', '/tmp/adt-virt-lxc.shared.d5duryup/downtmp/ubtree-/results/fifo_log', '`./results/fifo_log` is a named pipe')]
adt-run [15:13:30]: ERROR: testbed failed: cannot send to testbed: ['BrokenPipeError: [Errno 32] Broken pipe\n']

$ adt-run .// --setup-commands='apt-get update' --- lxc -es adt-utopic

runs fine but here I wanted to look at which files were created by adt-run.

Revision history for this message
Martin Pitt (pitti) wrote :

This happens because you put your --output-dir *within* the tested tree. This generally easily leads to recursive effects, as that tests tree needs to be copied to testbeds while having active files in the output dir. It's better to use /tmp/results/ or anything not inside the tests tree.

I'll commit a patch which at least avoids that particular issue.

Changed in autopkgtest (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in git now.

Changed in autopkgtest (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopkgtest - 3.8.1

---------------
autopkgtest (3.8.1) unstable; urgency=medium

  * If the testbed does not have root privileges (e. g. missing sudo
    password), install click packages with pkcon and skip the AppArmor rule
    adjustment. This makes non-root click tests at least work for
    non-Autopilot cases. (LP: #1384417)
  * Make --shell-fail also apply to test dependency installation failure.
  * Run root tests through "su" as well (if possible), to ensure that these
    also get a proper PAM/logind session with all runners. (LP: #1393474)
  * Skip the test_tmp_install tests if apt-get download does not work. This
    might happen in some build environments which completely disable
    networking or don't have working apt-get download for some reason.
    (Closes: #769687)
  * Don't put the log FIFO into the output directory. This avoids keeping it
    in --output-dir, which fails if the output dir happens to be in the tested
    tree itself. (LP: #1393426)
  * adt-setup-vm: Don't purge man-db. It uninstalls way too much on images
    which aren't just minimal environments.
  * adt-setup-vm: Drop bogus "X-Start-Before" line in generated init.d script.
    (Closes: #770517)
  * Respect DEB_BUILD_OPTIONS=nocheck (side issue in #769687)

 -- Martin Pitt <email address hidden> Thu, 27 Nov 2014 10:54:02 +0100

Changed in autopkgtest (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.