Bug 11873 - 测试:an23.2 执行ping 127.0.0.1失败,疑似有用例破坏
Summary: 测试:an23.2 执行ping 127.0.0.1失败,疑似有用例破坏
Status: CLOSED FIXED
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yunmeng365524
QA Contact:
URL:
Whiteboard:
Keywords: Function
Depends on:
Blocks:
 
Reported: 2024-11-14 16:01 UTC by zhf668260
Modified: 2024-11-18 10:37 UTC (History)
1 user (show)

See Also:


Attachments
shapshot (1.96 MB, image/jpeg)
2024-11-14 16:02 UTC, zhf668260
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zhf668260 alibaba_cloud_group 2024-11-14 16:01:15 UTC
[问题描述]:
Anolis23.2环境,执行ping 127.0.0.1失败

[环境信息]:
机器类型:ECS

[内核信息]:
uname -r
6.6.25-2.2_rc1.an23.x86_64


[操作系统信息]:
cat /etc/os-release
NAME="Anolis OS"
VERSION="23.1"
ID="anolis"
VERSION_ID="23.1"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23.1"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"



[重现步骤]:
前置条件: N/A

测试步骤:
- 执行ping 127.0.0.1

期望结果:
- 执行ping 127.0.0.1成功

实际执行结果:
执行ping 127.0.0.1失败

1.执行ping localhost是成功的

2.有lo
[root@iZbp17oe2ne3ldnhi1xsjtZ anolis-sys-tests]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever

3. /etc/hosts里有127.0.0.1       localhost配置
[root@iZbp17oe2ne3ldnhi1xsjtZ anolis-sys-tests]# cat /etc/hosts
# Loopback entries; do not change.
# For historical reasons, localhost precedes localhost.localdomain:
127.0.0.1       localhost       localhost.localdomain   localhost4      localhost4.localdomain4
::1     localhost       localhost.localdomain   localhost6      localhost6.localdomain6

4. 检查系统参数icmp_echo_ignore_all
[root@iZbp17oe2ne3ldnhi1xsjtZ anolis-sys-tests]# cat /proc/sys/net/ipv4/icmp_echo_ignore_all
0

5. iptables配置
[root@iZbp17oe2ne3ldnhi1xsjtZ anolis-sys-tests]# iptables -L -v -n
# Warning: iptables-legacy tables present, use iptables-legacy to see them
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

6. getenforce
[root@iZbp17oe2ne3ldnhi1xsjtZ anolis-sys-tests]# getenforce
Permissive

7. /etc/resolv.conf的配置和正常的机器也没区别
Comment 1 zhf668260 alibaba_cloud_group 2024-11-14 16:02:27 UTC
Created attachment 1223 [details]
shapshot
Comment 2 yunmeng365524 2024-11-18 10:37:40 UTC
已经找到影响改用例的bug,已修复。