Bug 710150
Summary: | Auditing of QEMU driver disk hotunplug events logs is missing and/or incorrect | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Daniel Berrangé <berrange> | |
Component: | libvirt | Assignee: | Eric Blake <eblake> | |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | high | Docs Contact: | ||
Priority: | urgent | |||
Version: | 6.1 | CC: | dallan, dyuan, jwest, mzhan, pm-rhel, rwu, weizhan | |
Target Milestone: | rc | Keywords: | ZStream | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | libvirt-0.9.2-1.el6 | Doc Type: | Bug Fix | |
Doc Text: |
Due to a bug in the qemuAuditDisk() function, hot unplug failures were never audited, and a hot unplug success was audited as a failure. This bug has been fixed, and auditing of disk hot unplug operations now works as expected.
|
Story Points: | --- | |
Clone Of: | ||||
: | 710151 (view as bug list) | Environment: | ||
Last Closed: | 2011-12-06 11:12:26 UTC | Type: | --- | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 712141, 728516 |
Description
Daniel Berrangé
2011-06-02 14:34:37 UTC
RHEL 6.2 will pick this up automatically when rebasing to 0.9.2 or later, thanks to upstream: commit 020342e68debddff641f70f87b5c6991c128648a Author: Daniel P. Berrange <berrange> Date: Thu Jun 2 14:52:24 2011 +0100 Fix auditing of disk hotunplug operations The qemuAuditDisk calls in disk hotunplug operations were being passed 'ret >= 0', but the code which sets ret to 0 was not yet executed, and the error path had already jumped to the 'cleanup' label. This meant hotunplug failures were never audited, and hotunplug success was audited as a failure * src/qemu/qemu_hotplug.c: Fix auditing of hotunplug Additionally, this patch is ready for 6.1.z once the z-stream bz is created: http://post-office.corp.redhat.com/archives/rhvirt-patches/2011-June/msg00030.html This should be fixed by the libvirt-0.9.2-1.el6 rebase verify pass on libvirt-0.9.2-1.el6.x86_64 kernel-2.6.32-156.el6.x86_64 qemu-kvm-0.12.1.2-2.165.el6.x86_64 the steps is as Description shows. *** Bug 712141 has been marked as a duplicate of this bug. *** Two 6.1.z-stream bugs were filed against this; bug 712141 was later reassigned back to 6.2, so only bug 728516 remains to track the fix in 6.1.z. Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Due to a bug in the qemuAuditDisk() function, hot unplug failures were never audited, and a hot unplug success was audited as a failure. This bug has been fixed, and auditing of disk hot unplug operations now works as expected. 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, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1513.html |