Bug 21695 - [Anolis 23.3][RC1]开启libvirtd服务,有报错提示:内部错误:无法从 mdevctl 查询 mdevs :Error: Required directory "/usr/lib/mdevctl/scripts.d/callouts" doesn't exist. This may indicate>
Summary: [Anolis 23.3][RC1]开启libvirtd服务,有报错提示:内部错误:无法从 mdevctl 查询 mdevs :Error: Requir...
Status: CLOSED FIXED
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.2
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: happy_orange
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
: 21808 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-06-09 17:30 UTC by liqianwen
Modified: 2025-06-25 13:01 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description liqianwen loongson_group 2025-06-09 17:30:33 UTC
【问题描述】
开启libvirtd服务,有报错提示:内部错误:无法从 mdevctl 查询 mdevs :Error: Required directory "/usr/lib/mdevctl/scripts.d/callouts" doesn't exist. This may indicate>

【内核版本】
6.6.88-4_rc1.an23.loongarch64

【iso下载】
http://build.openanolis.cn/kojifiles/output/nightly/anolis-23-20250605.1/compose/os/loongarch64/iso/anolis-23-loongarch64-dvd1-20250605.1.iso

【软件版本】
libvirt-9.10.0-12.an23.loongarch64
qemu-8.2.0-27.an23.loongarch64
mdevctl-1.3.0-1.an23.loongarch64

【复现步骤】
1、yum install libvirt
2、systemctl start libvirtd
3、systemctl status libvirtd

【实际结果】
[root@bogon ~]# systemctl status libvirtd
● libvirtd.service - libvirt legacy monolithic daemon
     Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; disabled; preset: enabled)
     Active: active (running) since Mon 2025-06-09 14:57:13 CST; 1s ago
TriggeredBy: ● libvirtd-admin.socket
             ● libvirtd.socket
             ● libvirtd-ro.socket
       Docs: man:libvirtd(8)
             https://libvirt.org/
   Main PID: 47440 (libvirtd)
      Tasks: 21 (limit: 32768)
     Memory: 20.1M (peak: 24.5M)
        CPU: 643ms
     CGroup: /system.slice/libvirtd.service
             ├─47440 /usr/sbin/libvirtd --timeout 120
             ├─47538 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
             └─47539 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper

6月 09 14:57:14 bogon dnsmasq-dhcp[47538]: DHCP, IP range 192.168.122.2 -- 192.168.122.254, lease time 1h
6月 09 14:57:14 bogon dnsmasq-dhcp[47538]: DHCP, sockets bound exclusively to interface virbr0
6月 09 14:57:14 bogon dnsmasq[47538]: reading /etc/resolv.conf
6月 09 14:57:14 bogon dnsmasq[47538]: using nameserver 127.0.0.53#53
6月 09 14:57:14 bogon dnsmasq[47538]: read /etc/hosts - 8 names
6月 09 14:57:14 bogon dnsmasq[47538]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 names
6月 09 14:57:14 bogon dnsmasq-dhcp[47538]: read /var/lib/libvirt/dnsmasq/default.hostsfile
6月 09 14:57:14 bogon libvirtd[47440]: libvirt version: 9.10.0, package: 12.an23 (OpenAnolis Community, 2025-05-27-19:57:49, )
6月 09 14:57:14 bogon libvirtd[47440]: hostname: bogon
6月 09 14:57:14 bogon libvirtd[47440]: 内部错误:无法从 mdevctl 查询 mdevs :Error: Required directory "/usr/lib/mdevctl/scripts.d/callouts" doesn't exist. This may indicate>
[root@bogon ~]# 


【期望结果】
libvirtd服务开启后,无报错
Comment 1 gaochang alibaba_cloud_group 2025-06-24 10:26:35 UTC
mdevctl 包的 bug,已修复
Comment 2 liqianwen loongson_group 2025-06-24 15:01:23 UTC
已验证  已解决

软件包下载路径:
http://8.131.87.1/kojifiles/repos/dist-an23.3-build/latest/loongarch64/toplink/packages/mdevctl/1.3.0/2.an23/loongarch64/

软件包版本:
mdevctl-debugsource-1.3.0-2.an23.loongarch64
mdevctl-debuginfo-1.3.0-2.an23.loongarch64
mdevctl-1.3.0-2.an23.loongarch64
Comment 3 gaochang alibaba_cloud_group 2025-06-25 13:01:50 UTC
*** Bug 21808 has been marked as a duplicate of this bug. ***