2025年Ubuntu换源报错(ubuntu2004换源)

Ubuntu换源报错(ubuntu2004换源)出现类似错误 ERROR neutron agent linux ip lib req Device tap3e 75 cannot be used as it has no MAC address 解决办法 故事起因 本来好好的虚拟机 用了个把月 突然有一天 发现远程连接不上了 但是发现各个网络链接都是好的 只能根据网络链路一段一段的跟踪 看看断哪儿了

大家好,我是讯享网,很高兴认识大家。



出现类似错误 ERROR neutron.agent.linux.ip_lib [req- Device tap3e-75 cannot be used as it has no MAC address 解决办法。

ERROR neutron.agent.linux.ip_lib [req- Device tap3e887199-75 cannot be used as it has no MAC address_openstack
讯享网

故事起因:本来好好的虚拟机,用了个把月,突然有一天,发现远程连接不上了,但是发现各个网络链接都是好的,只能根据网络链路一段一段的跟踪,看看断哪儿了。

查看网路组件都是正常的:

查看日志:

https://blog.51cto.com/u_/server.log:2024-10-17 11:18:52.426 17180 INFO neutron.api.v2.resource [req--76a0-46b5-9501-6f19ef250b11 cbeb54baf9a318bad5ae74e7bb 18fb4b199ddbd1 - default default] delete failed (client error): The resource could not be found.
https://blog.51cto.com/u_/server.log:2024-10-17 11:19:13.954 17173 INFO neutron.pecan_wsgi.hooks.translation [req-0f302ff7-3626-4add-874a-b19a8c66c44d cbeb54baf9a318bad5ae74e7bb 18fb4b199ddbd1 - default default] DELETE failed (client error): There was a conflict when trying to complete your request.
https://blog.51cto.com/u_/server.log:2024-10-17 11:19:15.037 17185 INFO neutron.pecan_wsgi.hooks.translation [req-ff-4667-4538-b694-a73dfecb71e1 cbeb54baf9a318bad5ae74e7bb 18fb4b199ddbd1 - default default] DELETE failed (client error): There was a conflict when trying to complete your request.
https://blog.51cto.com/u_/server.log:2024-10-17 11:19:21.415 17178 INFO neutron.api.v2.resource [req-bfb202ec-30f9-4203-9083-0b265b264d3d cbeb54baf9a318bad5ae74e7bb 18fb4b199ddbd1 - default default] delete failed (client error): There was a conflict when trying to complete your request.
https://blog.51cto.com/u_/dhcp-agent.log:2024-10-17 10:31:22.964 13180 ERROR neutron.agent.linux.ip_lib [req-570ba9b5-c41e-4624-96b8-5e242d0a70e0 - - - - -] Device tap3e-75 cannot be used as it has no MAC address
https://blog.51cto.com/u_/dhcp-agent.log:2024-10-17 10:54:31.474 2768 ERROR neutron.agent.linux.ip_lib [req-bf20aaff-5679-43a8-9ce4-bce2084f1de8 - - - - -] Device tap11e02414-fb cannot be used as it has no MAC address
https://blog.51cto.com/u_/dhcp-agent.log:2024-10-17 10:54:35.326 2768 ERROR neutron.agent.linux.ip_lib [req-85eeaf24-16d3-4ab4-ad99-0c32 - - - - -] Device tape914e27a-41 cannot be used as it has no MAC address
https://blog.51cto.com/u_/dhcp-agent.log:2024-10-17 11:18:08.240 2768 ERROR neutron.agent.linux.ip_lib [req-35413ba7-640a-4fff-bee0-422e1ee7d014 - - - - -] Device tapa7604ba3-ec cannot be used as it has no MAC address
https://blog.51cto.com/u_/dhcp-agent.log:2024-10-17 11:19:34.027 2768 ERROR neutron.agent.linux.ip_lib [req-b6efdcb2-a839-4728-a638-edc42612ddd2 - - - - -] Device tap5a676f1e-b7 cannot be used as it has no MAC address
https://blog.51cto.com/u_/dhcp-agent.log:2024-10-17 11:19:36.889 2768 ERROR neutron.agent.linux.ip_lib [req-7aea3705-a5a6-4727-8077-e7a08e1e0ae3 - - - - -] Device tap608b80fd-d7 cannot be used as it has no MAC address


解决办法:

一般云计算环境中会配置多个网络,先查看出现问题的 网络 和 子网。

查看创建的网络:

查看目标网详情:

查看子网详情:

查看目标网段的端口信息和状态,发现很多 N/A 状态的网口:

查看目标网段的虚拟路由器信息:

通过路由查看网络情况,先进入虚拟路由器:

查看网卡情况:

通过 ping 、telnet等工具测试网络情况,这里测试一下链接网关:

发现网关不通,这个网段有问题,测试解决方法有两种:

方法一,通过更新子网,例如: 禁用之后启用网关,触发neutron 网络子网更新:

更新子网信息:

方法二:删除子网和目标网,并重新建立相同网段的网络:

删除使用到的网络关联的虚拟机设备:

重新创建网络:

查看配置的物理网络映射关系,在 /etc/neutron/ 目录下,不同的版本或者人为配置的文件不同,可以通过 grep遍历目录搜索查看:

类似于:

或者

重新创建 网络 和 子网:

重新部署虚拟机即可。

小讯
上一篇 2025-04-22 13:18
下一篇 2025-05-15 20:19

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/206289.html