And if I manually install "lxc-create -t xxx" in container, everything ok, no hang.

BTW, if pull 2019.03 image, it will report: error pulling image configuration: received unexpected HTTP status: 530
So I cannot verify on newest, just use 2019.01.

------------------------------------------------------------------
发件人:cnspring2002 <cnspring2002@aliyun.com>
发送时间:2019年3月5日(星期二) 17:24
收件人:lava-users <lava-users@lists.lavasoftware.org>
主 题:apt get install hang

I use lxc-mocker in docker container, everything is ok.

Just if the package did not install in advance, then next command will hang in web:

lxc-create -t ubuntu -n test_lava -- --release xenial --mirror http://mirror.bytemark.co.uk/debian --packages systemd,systemd-sysv --arch amd64

I enter the container, see:

root@df67cf292479:/# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 17:20 pts/0    00:00:00 /usr/bin/python3 /usr/bin/lava-slave --level DEBUG --log-file - --master tcp://192.168.1.10:5556 --socket-a
root         8     0  0 17:20 pts/1    00:00:00 /bin/bash
root        13     1  0 17:20 pts/0    00:00:00 lava-run [job: 837]
root        19    13  0 17:20 pts/0    00:00:00 /bin/bash /usr/bin/lxc-create -q -t ubuntu -n test_lava -- --release xenial --mirror http://mirror.bytemark.c
root       261    19  1 17:20 pts/0    00:00:00 apt-get -q install -y systemd systemd-sysv
root       473     8  0 17:21 pts/1    00:00:00 ps -ef

Seems "apt-get install" hang, but if I pre-install the systemd,etc, then everything will ok, the lxc-create will not hang. The same for lxc-attach mocker etc, all will hang if do "apt-get install" & no pakcage preinstall.

Please suggest, thanks.