Bug 2201 - [Anck-5.10 ][Anolis8.6][aarch64]ltp用例host执行fail,host qibo-anolis8-nightly-func-arm-4 on local machine failed
Summary: [Anck-5.10 ][Anolis8.6][aarch64]ltp用例host执行fail,host qibo-anolis8-nightly-fun...
Status: CLOSED INVALID
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: Others (show other bugs) Others
Version: 8.6
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Jacob
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-16 17:33 UTC by yunhe123
Modified: 2023-03-23 11:05 UTC (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yunhe123 alibaba_cloud_group 2022-09-16 17:33:05 UTC
Description of problem:
ltp用例host执行fail,host qibo-anolis8-nightly-func-arm-4 on local machine failed



日志如下:
<<<test_start>>>
tag=host stime=1663320149
cmdline="host01.sh"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
host01 1 TINFO: initialize 'lhost' 'ltp_ns_veth2' interface
host01 1 TINFO: add local addr 10.0.0.2/24
host01 1 TINFO: add local addr fd00:1:1:1::2/64
host01 1 TINFO: initialize 'rhost' 'ltp_ns_veth1' interface
host01 1 TINFO: add remote addr 10.0.0.1/24
host01 1 TINFO: add remote addr fd00:1:1:1::1/64
host01 1 TINFO: Network config (local -- remote):
host01 1 TINFO: ltp_ns_veth2 -- ltp_ns_veth1
host01 1 TINFO: 10.0.0.2/24 -- 10.0.0.1/24
host01 1 TINFO: fd00:1:1:1::2/64 -- fd00:1:1:1::1/64
host01 1 TINFO: timeout per run is 0h 5m 0s
host01 1 TINFO: test basic functionality of the host command
host01 1 TINFO: lhost: qibo-anolis8-nightly-func-arm-4
host01 1 TFAIL: host qibo-anolis8-nightly-func-arm-4 on local machine failed

Summary:
passed   0
failed   1
broken   0
skipped  0
warnings 0
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=13 cstime=3
<<<test_end>>>

版本信息:
cat /etc/os-release
NAME="Anolis OS"
VERSION="8.6"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.6"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.6"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

内核信息:
 uname -r
5.10.134-135.git.340957ba03ef.an8.aarch64

cpu信息:
lscpu
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per cluster: 4
Socket(s):           1
Cluster(s):          1
NUMA node(s):        1
Vendor ID:           ARM
BIOS Vendor ID:      Alibaba Cloud
Model:               1
Model name:          Neoverse-N1
BIOS Model name:     virt-rhel7.6.0
Stepping:            r3p1
BogoMIPS:            50.00
NUMA node0 CPU(s):   0-3
Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs

内存信息:
free -g
              total        used        free      shared  buff/cache   available
Mem:             15           1          11           0           2          13
Swap:             0           0           0

How reproducible:
必现

Steps to Reproduce:
1.安装ltp环境
git clone --mirror -q https://gitee.com/anolis/ltp.git
make autotools
#默认会安装到/opt下
./configure
make
make install
cd /opt/ltp/
export PATH=$PATH:/opt/ltp/testcases/bin
./runltp -f net.tcp_cmds -s host

Actual results:
用例执行失败

Expected results:
用例执行成功

Additional info:
host命令查询域名对应的IP地址失败:
[root@qibo-anolis8-nightly-func-arm-4 ltp]# host qibo-anolis8-nightly-func-arm-4
Host qibo-anolis8-nightly-func-arm-4 not found: 3(NXDOMAIN)
Comment 1 yunhe123 alibaba_cloud_group 2023-03-23 11:04:55 UTC
该用例是执行方法的问题,实际可以执行pass,同https://bugzilla.openanolis.cn/show_bug.cgi?id=3412问题类似,本单关闭。
用例执行pass日志:
Running tests.......
<<<test_start>>>
tag=host stime=1679540370
cmdline="host01.sh"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
host01.sh    0  TINFO  :  test basic functionality of the `host01.sh' command.
host01.sh    2  TPASS  :  Test successful
host01.sh    0  TINFO  :  Cleaning up.
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=2 cstime=10
<<<test_end>>>
INFO: ltp-pan reported all tests PASS
LTP Version: 20200930

       ###############################################################

            Done executing testcases.
            LTP Version:  20200930
       ###############################################################