Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #11163

Bug#916428: autopkgtest-virt-qemu: Fails to set up test environment when run with python3.7

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Simon McVittie <smcv@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.python
Subject Bug#916428: autopkgtest-virt-qemu: Fails to set up test environment when run with python3.7
Date Fri, 14 Dec 2018 12:40:02 +0100
Message-ID <x4TZ0-7jx-3@gated-at.bofh.it> (permalink)
X-Original-To Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Fri Dec 14 11:33:11 2018
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -4.199
Reply-To Simon McVittie <smcv@debian.org>, 916428@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc debian-python@lists.debian.org, Debian CI team <team+ci@tracker.debian.org>
X-Debian-Pr-Message report 916428
X-Debian-Pr-Package autopkgtest
X-Debian-Pr-Source autopkgtest
X-Spam-Bayes score:0.0000 Tokens: new, 25; hammy, 150; neutral, 261; spammy, 0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--autopkgtest, 0.000-+--H*F:U*smcv, 0.000-+--XDebbugsCc, 0.000-+--X-Debbugs-Cc
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
X-Mutt-Fcc =.lists.debian/
X-Reportbug-Version 7.5.1
User-Agent Mutt/1.10.1 (2018-07-13)
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1505354
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 115
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Fri, 14 Dec 2018 11:31:02 +0000
X-Original-Message-ID <20181214112828.GA8930@espresso.pseudorandom.co.uk>
Xref csiph.com linux.debian.bugs.dist:933144 linux.debian.maint.python:11163

Cross-posted to 2 groups.

Show key headers only | View raw


Package: autopkgtest
Version: 5.6
Severity: important
File: /usr/bin/autopkgtest-virt-qemu
Control: found -1 5.7
Control: user debian-python@lists.debian.org
Control: usertags -1 + python3.7
X-Debbugs-Cc: debian-python@lists.debian.org

tl;dr: autopkgtest-virt-qemu doesn't work with python3.7. A short-term
workaround is to run it with python3.6, for example by using
"autopkgtest ... -- /usr/bin/python3.6 /usr/bin/autopkgtest-virt-qemu ...",
or changing its first line.

Steps to reproduce (minimal reproducer with just autopkgtest-virt-qemu,
not autopkgtest itself):

* Have an autopkgtest-virt-qemu VM image that previously worked (or see
  the man page for instructions to make one)
* Have python3.6 and python3.7, with python3.7 as default
* python3.7 /usr/bin/autopkgtest-virt-qemu --debug .../autopkgtest.qcow2
* wait for "ok"
* enter the command "open"
* wait for timeout or "ok /tmp/autopkgtest.XXXXXX" response
* if still running, enter the command "close", wait for "ok" response,
  and enter the command "quit"
* python3.6 /usr/bin/autopkgtest-virt-qemu --debug .../autopkgtest.qcow2
* wait for "ok"
* type "open"
* wait for timeout or "ok /tmp/autopkgtest.XXXXXX" response
* if still running, enter the command "close", wait for "ok" response,
  and enter the command "quit"

Expected result:

* In both cases you eventually get "ok /tmp/autopkgtest.XXXXXX" where
  XXXXXX is a random string

Actual result:

* With python3.6, we get the expected result
* With python3.7, setup_shared() times out (symptoms are similar to #892023):

$ autopkgtest-virt-qemu --debug ~/.cache/vectis/amd64/debian/sid/autopkgtest.qcow2
ok
open
autopkgtest-virt-qemu: DBG: executing open
autopkgtest-virt-qemu: DBG: Creating temporary overlay image in /tmp/autopkgtest-qemu.r20th32n/overlay.img
autopkgtest-virt-qemu: DBG: execute-timeout: qemu-img create -f qcow2 -b /home/smcv/.cache/vectis/amd64/debian/sid/autopkgtest.qcow2 /tmp/autopkgtest-qemu.r20th32n/overlay.img
autopkgtest-virt-qemu: DBG: find_free_port: trying 10022
autopkgtest-virt-qemu: DBG: find_free_port: 10022 is free
autopkgtest-virt-qemu: DBG: Forwarding local port 10022 to VM ssh port 22
autopkgtest-virt-qemu: DBG: Detected KVM capable Intel host CPU, enabling nested KVM
autopkgtest-virt-qemu: DBG: expect: " login: "
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
autopkgtest-virt-qemu: DBG: expect: found ""login prompt on ttyS0""
autopkgtest-virt-qemu: DBG: expect: "ok"
autopkgtest-virt-qemu: DBG: expect: found ""b'ok'""
autopkgtest-virt-qemu: DBG: setup_shell(): there already is a shell on ttyS1
qemu-system-x86_64: terminating on signal 15 from pid 10760 (/usr/bin/python3)
autopkgtest-virt-qemu: DBG: cleanup...
<VirtSubproc>: failure: timed out on client shared directory setup

Hacking in some extra debug shows that the thing that is timing out,
similar to #892023, is that the done_shared flag file in the 9p shared
file system is never created.

I tried applying the patches from
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892023#10 to make our
shell screen-scraping more robust, but they didn't help.

When I added echo=True to all the expect() calls, I didn't see any output
from the commands that set up the shared directory (starting with
"mkdir -p -m 1777 /run/autopkgtest/shared").

I initially thought this was a regression with the new qemu 3, but this
was not the case: qemu 2 from testing exhibits the same symptoms.

    smcv

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

Kernel: Linux 4.18.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages autopkgtest depends on:
ii  apt-utils       1.8.0~alpha2
ii  libdpkg-perl    1.19.2
ii  procps          2:3.3.15-2
ii  python3         3.7.1-2
ii  python3-debian  0.1.33

Versions of packages autopkgtest recommends:
ii  autodep8  0.17

Versions of packages autopkgtest suggests:
pn  lxc               <none>
pn  lxd               <none>
ii  ovmf              0~20181115.85588389-2
ii  qemu-efi-aarch64  0~20181115.85588389-2
pn  qemu-efi-arm      <none>
ii  qemu-system       1:3.1+dfsg-1
ii  qemu-utils        1:3.1+dfsg-1
ii  schroot           1.6.10-6+b1
pn  vmdb2             <none>

-- no debconf information

Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#916428: autopkgtest-virt-qemu: Fails to set up test environment when run with python3.7 Simon McVittie <smcv@debian.org> - 2018-12-14 12:40 +0100
  Bug#916428: autopkgtest-virt-qemu: Fails to set up test environment when run with python3.7 Simon McVittie <smcv@debian.org> - 2018-12-14 13:00 +0100
    Bug#916428: autopkgtest-virt-qemu: Fails to set up test environment when run with python3.7 Matthias Klose <doko@debian.org> - 2018-12-14 20:30 +0100
      Bug#916428: autopkgtest-virt-qemu: Fails to set up test environment when run with python3.7 Simon McVittie <smcv@debian.org> - 2018-12-15 00:40 +0100

csiph-web