Bug 2171973
Summary: | Unexpected error show in virtqemud log when detaching a virtiofs device | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | yafu <yafu> |
Component: | libvirt | Assignee: | Ján Tomko <jtomko> |
libvirt sub component: | General | QA Contact: | Lili Zhu <lizhu> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | unspecified | ||
Priority: | unspecified | CC: | jdenemar, jsuchane, lizhu, lmen, mprivozn, virt-maint |
Version: | 9.2 | Keywords: | Triaged |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-9.2.0-1.el9 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-11-07 08:30:47 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: | 9.2.0 |
Embargoed: |
Description
yafu
2023-02-21 03:45:13 UTC
This is because qemuVirtioFSStop() which is called internally to kill virtiofsd, calls virPidFileForceCleanupPathFull() -> virPidFileAcquirePath() which reports error if it failed to lock PID file. In case virtiofsd is still running (and thus has the PID file locked), it is expected that libvirt fails to lock the PID file. No report should be reported though. Patches posted upstream: https://listman.redhat.com/archives/libvir-list/2023-March/238504.html commit 7e94712699546b0dc9ec8307b19a39775761627c Author: Ján Tomko <jtomko> CommitDate: 2023-03-08 12:16:56 +0100 util: do not report errors in virPidFileForceCleanupPathFull Use the quiet version of virPidFileAcquirePath and remove the error reset, since there's nothing to reset anymore. https://bugzilla.redhat.com/show_bug.cgi?id=2171973 Signed-off-by: Ján Tomko <jtomko> Reviewed-by: Martin Kletzander <mkletzan> git describe: v9.1.0-162-g7e94712699 Tested with: libvirt-9.2.0-1.el9.x86_64 Repeat Step1 to Step3 in https://bugzilla.redhat.com/show_bug.cgi?id=2171973#c0 4. check the log # grep -ni "Failed to acquire pid" /var/log/libvirt/virtqemud.log (no output) Tested with: libvirt-9.3.0-1.el9.x86_64 qemu-kvm-8.0.0-1.el9.x86_64 Testing steps are the same with those in Comment #4 As the testing result matches with the expected one, mark the bug as verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: libvirt security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:6409 |