Wind River Support Network

HomeDefectsLIN8-5002
Fixed

LIN8-5002 : lxc : lxc_console_cb_tty_master: 672 Input/output error - failed to read while run 'poweroff' in container

Created: Oct 28, 2016    Updated: Dec 3, 2018
Resolved Date: Jan 4, 2017
Found In Version: 8.0
Fix Version: 8.0.0.13
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Kernel

Description

      Start testcase lxc-console testing
 
root@SDP_Basking-Ridge-3:~# systemctl status lxc-net
? lxc-net.service - LXC network bridge setup
   Loaded: loaded (/lib/systemd/system/lxc-net.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
root@SDP_Basking-Ridge-3:~# systemctl start lxc-net
root@SDP_Basking-Ridge-3:~# 
root@SDP_Basking-Ridge-3:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:13:20:ff:73:aa  
          inet addr:128.224.165.170  Bcast:128.224.165.255  Mask:255.255.255.0
          inet6 addr: fe80::213:20ff:feff:73aa/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:46306 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22221 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:53107228 (50.6 MiB)  TX bytes:3864614 (3.6 MiB)
          Interrupt:20 Memory:d1100000-d1120000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:325 errors:0 dropped:0 overruns:0 frame:0
          TX packets:325 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:24709 (24.1 KiB)  TX bytes:24709 (24.1 KiB)

lxcbr0    Link encap:Ethernet  HWaddr c6:98:37:44:cb:3b  
          inet addr:10.0.3.1  Bcast:0.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::c498:37ff:fe44:cb3b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:3645 (3.5 KiB)

root@SDP_Basking-Ridge-3:~# 
root@SDP_Basking-Ridge-3:~# lxc-create -n bb -t busybox
setting root password to "root"
Password for 'root' changed
root@SDP_Basking-Ridge-3:~# 
root@SDP_Basking-Ridge-3:~# lxc-start -n bb  --logfile ulxc.log --logpriority DEBUG
root@SDP_Basking-Ridge-3:~# 
root@SDP_Basking-Ridge-3:~# 
root@SDP_Basking-Ridge-3:~# lxc-console -n bb

Connected to tty 1
Type <Ctrl+a q> to exit the console, <Ctrl+a Ctrl+a> to enter Ctrl+a itself

bb login: root
Password: 
~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3E:BC:EA:90  
          inet6 addr: fe80::216:3eff:febc:ea90/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:648 (648.0 B)  TX bytes:648 (648.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
~ # ls /
bin      etc      lib      mnt      root     selinux  tmp      var
dev      home     lib64    proc     sbin     sys      usr
~ # poweroff
~ # lxc-console: /buildarea1/wgao/ovp/new/bitbake_build/tmp/work/corei7-64-wrs-linux/lxc/1.1.4-r0/lxc-1.1.4/src/lxc/console.c: lxc_console_cb_tty_master: 672 Input/output error - failed to read

      End testcase lxc-console testing

Steps to Reproduce

1. kts-dev layer : 
# git clone git://git.wrs.com/git/projects/wassp-repos/testcases/wrlinux

2. kts test-plan
# cd wr-testing/kts-dev/tools/
# ./gen_kernel_plan.py -s wr-kts -b intel-x86-64 -k "standard,preempt-rt" -a x86-64
# cd -
Edit below files, just keep lxc cases in list.
wr-testing/kts-dev/test-plan/intel-x86-64/preempt-rt_wr-kts.ini
wr-testing/kts-dev/test-plan/intel-x86-64/standard_wr-kts.ini

3. configure with your test layer.
wrlinux-8/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc-std --with-layer=/net/pek-lpgtest16/buildarea1/xxxx/wrlinux/wr-testing/kts-dev --with-template=feature/wr-kts --enable-jobs=8 --enable-parallel-pkgbuilds=8 --enable-reconfig=yes ; make 

Here maybe some issues exist, 
Fix, please copy /net/pek-lpgtest16/buildarea1/xxxx/wrlinux/wr-testing/common_test_framework/classes/test_conf_parser.bbclass to your test layer.
and rebuild again.

Follow descriptions' steps.

Other Downloads


Live chat
Online