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.
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.
Hi!
On Tue, Mar 05, 2019 at 05:24:37PM +0800, cnspring2002 wrote:
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've not tried to directly reproduce your problem, but this command line looks suspect. You're telling lxc-create to make an Ubuntu image (with Xenial) but you're pointing it at a Debian mirror. I would never expect that to work. What are you trying to do?
Cheers,
Ok, I remove the mirror when submit job, but things same.
BTW, I see this, http://git.linaro.org/lava/lava-lxc-mocker.git/tree/lxc-create
it will not use release or mirror, it just a simulate, so I guess the issue not related with what you said I afraid. I not use lxc in fact, But lxc mocker...
在 2019年3月6日,01:38,Steve McIntyre steve.mcintyre@linaro.org 写道:
Hi!
On Tue, Mar 05, 2019 at 05:24:37PM +0800, cnspring2002 wrote: 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've not tried to directly reproduce your problem, but this command line looks suspect. You're telling lxc-create to make an Ubuntu image (with Xenial) but you're pointing it at a Debian mirror. I would never expect that to work. What are you trying to do?
Cheers,
Steve McIntyre steve.mcintyre@linaro.org http://www.linaro.org/ Linaro.org | Open source software for ARM SoCs
Fix, I use gdb to debug the apt & find it hang because of my tty setting. You can ignore this problem now, thanks.
Program received signal SIGTTOU, Stopped (tty output). 0x00007fa6d0b286b8 in __GI_tcsetattr (fd=0, optional_actions=<optimized out>, termios_p=0x55c74ed94168) at ../sysdeps/unix/sysv/linux/tcsetattr.c:83 83 ../sysdeps/unix/sysv/linux/tcsetattr.c: No such file or directory. ------------------------------------------------------------------ 发件人:cnspring2002 cnspring2002@aliyun.com 发送时间:2019年3月6日(星期三) 03:49 收件人:Steve McIntyre steve.mcintyre@linaro.org 抄 送:lava-users lava-users@lists.lavasoftware.org 主 题:Re: [Lava-users] apt get install hang
Ok, I remove the mirror when submit job, but things same.
BTW, I see this, http://git.linaro.org/lava/lava-lxc-mocker.git/tree/lxc-create
it will not use release or mirror, it just a simulate, so I guess the issue not related with what you said I afraid. I not use lxc in fact, But lxc mocker...
在 2019年3月6日,01:38,Steve McIntyre steve.mcintyre@linaro.org 写道:
Hi!
On Tue, Mar 05, 2019 at 05:24:37PM +0800, cnspring2002 wrote: 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've not tried to directly reproduce your problem, but this command line looks suspect. You're telling lxc-create to make an Ubuntu image (with Xenial) but you're pointing it at a Debian mirror. I would never expect that to work. What are you trying to do?
Cheers,
lava-users@lists.lavasoftware.org