On Tue, Jun 12, 2018 at 8:39 AM, Po-Hsu Lin <email address hidden> wrote:
> If you leave it there for a long period, it will time out in the end:
> make[1]: Leaving directory '/tmp/autopkgtest.ZiY11u/build.Nic/src'
> FAIL: lxc-tests: lxc-test-api-reboot (9845s)
The API reboot tests will hang indefinitely if the container fails to
reboot properly.
This can happen for a variety of reasons. The most likely are that the
container in
question does either not have its signal handlers set up correctly at
the time it receives
the reboot signal or that this is a broken busybox implementation that
doesn't correctly
handle reboots.
> ---
> Terminated
> ---
>
> Session terminated, terminating shell...bash: line 1: 15305 Terminated /tmp/autopkgtest.ZiY11u/build.Nic/src/debian/tests/exercise 2> >(tee -a /tmp/autopkgtest.ZiY11u/exercise-stderr >&2) > >(tee -a /tmp/autopkgtest.ZiY11u/exercise-stdout)
> ...terminated.
> autopkgtest [06:26:24]: ERROR: timed out on command "su -s /bin/bash root -c set -e; export USER=`id -nu`; . /etc/profile >/dev/null 2>&1 || true; . ~/.profile >/dev/null 2>&1 || true; buildtree="/tmp/autopkgtest.ZiY11u/build.Nic/src"; mkdir -p -m 1777 -- "/tmp/autopkgtest.ZiY11u/exercise-artifacts"; export AUTOPKGTEST_ARTIFACTS="/tmp/autopkgtest.ZiY11u/exercise-artifacts"; export ADT_ARTIFACTS="$AUTOPKGTEST_ARTIFACTS"; mkdir -p -m 755 "/tmp/autopkgtest.ZiY11u/autopkgtest_tmp"; export AUTOPKGTEST_TMP="/tmp/autopkgtest.ZiY11u/autopkgtest_tmp"; export ADTTMP="$AUTOPKGTEST_TMP"; export DEBIAN_FRONTEND=noninteractive; export LANG=C.UTF-8; export DEB_BUILD_OPTIONS=parallel=16; unset LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION LC_ALL;rm -f /tmp/autopkgtest_script_pid; set -C; echo $$ > /tmp/autopkgtest_script_pid; set +C; trap "rm -f /tmp/autopkgtest_script_pid" EXIT INT QUIT PIPE; cd "$buildtree"; export AUTOPKGTEST_NORMAL_USER=; export ADT_NORMAL_USER=; chmod +x /tmp/autopkgtest.ZiY11u/build.Nic/src/debian/tests/exercise; touch /tmp/autopkgtest.ZiY11u/exercise-stdout /tmp/autopkgtest.ZiY11u/exercise-stderr; /tmp/autopkgtest.ZiY11u/build.Nic/src/debian/tests/exercise 2> >(tee -a /tmp/autopkgtest.ZiY11u/exercise-stderr >&2) > >(tee -a /tmp/autopkgtest.ZiY11u/exercise-stdout);" (kind: test)
> autopkgtest [06:26:24]: test exercise: -----------------------]
> autopkgtest [06:26:24]: test exercise: - - - - - - - - - - results - - - - - - - - - -
> exercise FAIL timed out
> autopkgtest [06:26:24]: @@@@@@@@@@@@@@@@@@@@ summary
> exercise FAIL timed out
>
> --
> You received this bug notification because you are a member of Ubuntu
> containers team, which is subscribed to lxc in Ubuntu.
> Matching subscriptions: lxc
> https://bugs.launchpad.net/bugs/1776381
>
> Title:
> lxc-test-api-reboot will hang with autopkgtest
>
> Status in lxc package in Ubuntu:
> New
>
> Bug description:
> Steps:
> 1. Deploy Bionic on a bare-metal system.
> 2. Enable deb-src, install the autopkgtest package
> 3. sudo autopkgtest lxc -- null
>
> Result:
> * The test will hang, a "reboot" lxc container will be created. The last message on the screen will be:
> make[1]: Entering directory '/tmp/autopkgtest.JxRLRE/build.bSQ/src'
> make[1]: Nothing to be done for 'all-am'.
> make[1]: Leaving directory '/tmp/autopkgtest.JxRLRE/build.bSQ/src'
> * Tried to connect to the "reboot" container with "sudo lxc-console reboot", but nothing there:
> Connected to tty 1
> Type <Ctrl+a q> to exit the console, <Ctrl+a Ctrl+a> to enter Ctrl+a itself
> * If you kill the job and run it again, this time the test will go on (fail with the lxc-test-api-reboot test, as the container has already been created)
>
> This issue can be reproduced on an amd64 box and a s390x zKVM.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1776381/+subscriptions
On Tue, Jun 12, 2018 at 8:39 AM, Po-Hsu Lin <email address hidden> wrote: st.ZiY11u/ build.Nic/ src'
> If you leave it there for a long period, it will time out in the end:
> make[1]: Leaving directory '/tmp/autopkgte
> FAIL: lxc-tests: lxc-test-api-reboot (9845s)
The API reboot tests will hang indefinitely if the container fails to
reboot properly.
This can happen for a variety of reasons. The most likely are that the
container in
question does either not have its signal handlers set up correctly at
the time it receives
the reboot signal or that this is a broken busybox implementation that
doesn't correctly
handle reboots.
> --- t.ZiY11u/ build.Nic/ src/debian/ tests/exercise 2> >(tee -a /tmp/autopkgtes t.ZiY11u/ exercise- stderr >&2) > >(tee -a /tmp/autopkgtes t.ZiY11u/ exercise- stdout) "/tmp/autopkgte st.ZiY11u/ build.Nic/ src"; mkdir -p -m 1777 -- "/tmp/autopkgte st.ZiY11u/ exercise- artifacts" ; export AUTOPKGTEST_ ARTIFACTS= "/tmp/autopkgte st.ZiY11u/ exercise- artifacts" ; export ADT_ARTIFACTS= "$AUTOPKGTEST_ ARTIFACTS" ; mkdir -p -m 755 "/tmp/autopkgte st.ZiY11u/ autopkgtest_ tmp"; export AUTOPKGTEST_ TMP="/tmp/ autopkgtest. ZiY11u/ autopkgtest_ tmp"; export ADTTMP= "$AUTOPKGTEST_ TMP"; export DEBIAN_ FRONTEND= noninteractive; export LANG=C.UTF-8; export DEB_BUILD_ OPTIONS= parallel= 16; unset LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION LC_ALL;rm -f /tmp/autopkgtes t_script_ pid; set -C; echo $$ > /tmp/autopkgtes t_script_ pid; set +C; trap "rm -f /tmp/autopkgtes t_script_ pid" EXIT INT QUIT PIPE; cd "$buildtree"; export AUTOPKGTEST_ NORMAL_ USER=; export ADT_NORMAL_USER=; chmod +x /tmp/autopkgtes t.ZiY11u/ build.Nic/ src/debian/ tests/exercise; touch /tmp/autopkgtes t.ZiY11u/ exercise- stdout /tmp/autopkgtes t.ZiY11u/ exercise- stderr; /tmp/autopkgtes t.ZiY11u/ build.Nic/ src/debian/ tests/exercise 2> >(tee -a /tmp/autopkgtes t.ZiY11u/ exercise- stderr >&2) > >(tee -a /tmp/autopkgtes t.ZiY11u/ exercise- stdout) ;" (kind: test) ------- ------- --] @@@@@@@ @@@@@@ summary /bugs.launchpad .net/bugs/ 1776381 st.JxRLRE/ build.bSQ/ src' st.JxRLRE/ build.bSQ/ src' /bugs.launchpad .net/ubuntu/ +source/ lxc/+bug/ 1776381/ +subscriptions
> Terminated
> ---
>
> Session terminated, terminating shell...bash: line 1: 15305 Terminated /tmp/autopkgtes
> ...terminated.
> autopkgtest [06:26:24]: ERROR: timed out on command "su -s /bin/bash root -c set -e; export USER=`id -nu`; . /etc/profile >/dev/null 2>&1 || true; . ~/.profile >/dev/null 2>&1 || true; buildtree=
> autopkgtest [06:26:24]: test exercise: -------
> autopkgtest [06:26:24]: test exercise: - - - - - - - - - - results - - - - - - - - - -
> exercise FAIL timed out
> autopkgtest [06:26:24]: @@@@@@@
> exercise FAIL timed out
>
> --
> You received this bug notification because you are a member of Ubuntu
> containers team, which is subscribed to lxc in Ubuntu.
> Matching subscriptions: lxc
> https:/
>
> Title:
> lxc-test-api-reboot will hang with autopkgtest
>
> Status in lxc package in Ubuntu:
> New
>
> Bug description:
> Steps:
> 1. Deploy Bionic on a bare-metal system.
> 2. Enable deb-src, install the autopkgtest package
> 3. sudo autopkgtest lxc -- null
>
> Result:
> * The test will hang, a "reboot" lxc container will be created. The last message on the screen will be:
> make[1]: Entering directory '/tmp/autopkgte
> make[1]: Nothing to be done for 'all-am'.
> make[1]: Leaving directory '/tmp/autopkgte
> * Tried to connect to the "reboot" container with "sudo lxc-console reboot", but nothing there:
> Connected to tty 1
> Type <Ctrl+a q> to exit the console, <Ctrl+a Ctrl+a> to enter Ctrl+a itself
> * If you kill the job and run it again, this time the test will go on (fail with the lxc-test-api-reboot test, as the container has already been created)
>
> This issue can be reproduced on an amd64 box and a s390x zKVM.
>
> To manage notifications about this bug go to:
> https:/