12 Star 0 Fork 14

src-openEuler / avahi

 / 详情

【22.03-RC2】【arm/x86】avahi服务启动成功,但是使用nss-mdns ping主机名.local失败,提示:未知的名称或服务

已验收
缺陷
创建于  
2022-03-01 18:56

【环境信息】
系统:arm,x86虚拟机
内存:4g
cpu:4核
OS版本:
openeulerversion=openEuler-22.03-LTS
compiletime=2022-02-25-07-53-11
gccversion=10.3.1-20220223.7.oe1
kernelversion=5.10.0-59.0.0.32.oe1
openjdkversion=1.8.0.312.b07-11.oe1

【问题复现步骤】
1、准备两个机器,节点1和节点2分别安装相应包
dnf install nss-mdns avahi -y
2、分别修改两个机器的主机名
节点1:hostnamectl set-hostname wjf
节点2:hostnamectl set-hostname zyy
3、分别启动节点1和节点2的avahi-daemon服务
systemctl start avahi-daemon
4、节点1和节点2分别去ping另一台的主机名.local 预期结果1
节点1:ping -c 4 zyy.local
节点2:ping -c 4 wjf.local

【预期结果】
1、两个节点可以相互ping通

【实际结果】
1、两个节点相互无法ping通,提示:未知的名称或服务,如下图所示:
节点1截图如下:
输入图片说明

节点2截图如下:
输入图片说明

【备注】
在21.09上没有此问题,并且相互可以ping通,可见下图:
节点1截图如下:
输入图片说明

节点2截图如下:
输入图片说明

评论 (5)

Emily_LiuLiu 创建了缺陷

Hi emily_liuliu, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Desktop, and any of the maintainers: @small_leek , @t.feng , @dou33 , @yanan-rock , @Randy.Wang , @薄皮小笼包 , @wenlongd , @weidongkl , @orange-snn

openeuler-ci-bot 添加了
 
sig/Desktop
标签
Emily_LiuLiu 修改了描述
Emily_LiuLiu 修改了标题
Emily_LiuLiu 修改了描述

ping不通是由于dns解析失败,根因是/etc/nsswitch.conf文件中的host项由于nss-mdns软件包的升级变更了配置:
21.09:
输入图片说明

22.03:
输入图片说明

非avahi问题导致,需要由nss-mdns继续定位确认是否正常变更及替代方案

openeuler-ci-bot 任务状态待办的 修改为已完成
Emily_LiuLiu 任务状态已完成 修改为已验收

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(4)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/avahi.git
git@gitee.com:src-openeuler/avahi.git
src-openeuler
avahi
avahi

搜索帮助