Bug 1808294

Summary: libvirtd crashed after setting blkio weight
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: Lili Zhu <lizhu>
Component: libvirtAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: chhu, pkrempa, virt-maint, xuzhang, yisun
Target Milestone: rcKeywords: Automation, Regression
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-28 08:38:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lili Zhu 2020-02-28 08:22:42 UTC
Description of problem:
libvirtd crashed after setting blkio weight

Version-Release number of selected component (if applicable):
libvirt-daemon-6.0.0-7.el8.x86_64
qemu-kvm-4.2.0-12.module+el8.2.0+5858+afd073bc.x86_64
kernel-4.18.0-184.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
1. check whether the blkio cgroup is mounted
# mount | grep cgroup | grep blkio
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,blkio)

2. check libvirtd pid
# pidof libvirtd
56249

3. set blkio weight 
# virsh blkiotune rhel8.2 --weight 300
error: Disconnected from qemu:///system due to end of file
error: Unable to change blkio parameters
error: End of file while reading data: Input/output error

4. check libvirtd pid again
# pidof libvirtd
57792

Actual results:
libvirtd crashed

Additional info:
1. get blkio parameters
# virsh blkiotune rhel8.2 
error: Unable to get blkio parameters
error: Requested operation is not valid: blkio cgroup isn't mounted

Comment 1 Peter Krempa 2020-02-28 08:38:15 UTC

*** This bug has been marked as a duplicate of bug 1808293 ***