Bug 1266078
Summary: | Audit log entries for hot(un)plugged memory devices are sometimes incorrect | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Peter Krempa <pkrempa> |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7.2 | CC: | dyuan, lhuang, mzhan, pkrempa, rbalakri, virt-bugs |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.3.1-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1226234 | Environment: | |
Last Closed: | 2016-11-03 18:25: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: | |||
Bug Depends On: | 1226234 | ||
Bug Blocks: |
Description
Peter Krempa
2015-09-24 12:27:33 UTC
$ git desc 8f8031df1998725ac34a9a3138705c4f7cdf0488 v1.2.19-rc1 Verify this bug with libvirt-1.3.4-1.el7.x86_64: 1. test hot-plug success: # virsh list --all Id Name State ---------------------------------------------------- 57 rhel72-test running # cat memdevice1G.xml <memory model='dimm'> <target> <size unit='G'>1</size> <node>0</node> </target> </memory> # virsh dominfo rhel72-test Id: 57 Name: rhel72-test UUID: 855670a9-34e6-4da2-a1ec-1993de100d79 OS Type: hvm State: running CPU(s): 10 CPU time: 61.0s Max memory: 4194304 KiB Used memory: 2145728 KiB Persistent: yes Autostart: disable Managed save: no Security model: selinux Security DOI: 0 Security label: system_u:system_r:svirt_t:s0:c735,c1014 (permissive) # virsh attach-device rhel72-test memdevice1G.xml Device attached successfully # virsh dominfo rhel72-test Id: 57 Name: rhel72-test UUID: 855670a9-34e6-4da2-a1ec-1993de100d79 OS Type: hvm State: running CPU(s): 10 CPU time: 73.3s Max memory: 5242880 KiB Used memory: 3194304 KiB Persistent: yes Autostart: disable Managed save: no Security model: selinux Security DOI: 0 Security label: system_u:system_r:svirt_t:s0:c735,c1014 (permissive) # ausearch -ts recent -m VIRT_RESOURCE | grep 'mem' type=VIRT_RESOURCE msg=audit(1464770792.893:26047): pid=8698 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg='virt=kvm resrc=mem reason=start vm="rhel72-test" uuid=855670a9-34e6-4da2-a1ec-1993de100d79 old-mem=0 new-mem=4194304 exe="/usr/sbin/libvirtd" hostname=? addr=? terminal=? res=success' type=VIRT_RESOURCE msg=audit(1464770836.216:26050): pid=8698 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg='virt=kvm resrc=mem reason=update vm="rhel72-test" uuid=855670a9-34e6-4da2-a1ec-1993de100d79 old-mem=4194304 new-mem=5242880 exe="/usr/sbin/libvirtd" hostname=? addr=? terminal=? res=success' 2. test hot-plug fail: # virsh list --all Id Name State ---------------------------------------------------- 57 rhel72-test running # cat memdevice0.xml <memory model='dimm'> <target> <size unit='G'>0</size> <node>0</node> </target> </memory> # virsh attach-device rhel72-test memdevice0.xml error: Failed to attach device from memdevice0.xml error: internal error: unable to execute QEMU command 'object-add': Property 'memory-backend-ram.size' doesn't take value '0' # ausearch -ts recent -m VIRT_RESOURCE | grep 'mem' ... type=VIRT_RESOURCE msg=audit(1464771123.151:26051): pid=8698 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg='virt=kvm resrc=mem reason=update vm="rhel72-test" uuid=855670a9-34e6-4da2-a1ec-1993de100d79 old-mem=5242880 new-mem=5242880 exe="/usr/sbin/libvirtd" hostname=? addr=? terminal=? res=failed' 3. test hot-unplug success: # virsh list --all Id Name State ---------------------------------------------------- 57 rhel72-test running # cat memdevice3.xml <memory model='dimm'> <target> <size unit='KiB'>131072</size> <node>0</node> </target> </memory> # virsh attach-device rhel72-test memdevice3.xml Device attached successfully # virsh detach-device rhel72-test memdevice3.xml Device detached successfully # ausearch -ts recent -m VIRT_RESOURCE | grep 'mem' ... type=VIRT_RESOURCE msg=audit(1464771788.700:26089): pid=8698 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg='virt=kvm resrc=mem reason=update vm="rhel72-test" uuid=855670a9-34e6-4da2-a1ec-1993de100d79 old-mem=5242880 new-mem=5373952 exe="/usr/sbin/libvirtd" hostname=? addr=? terminal=? res=success' type=VIRT_RESOURCE msg=audit(1464771802.020:26090): pid=8698 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg='virt=kvm resrc=mem reason=update vm="rhel72-test" uuid=855670a9-34e6-4da2-a1ec-1993de100d79 old-mem=5373952 new-mem=5242880 exe="/usr/sbin/libvirtd" hostname=? addr=? terminal=? res=success' 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. https://rhn.redhat.com/errata/RHSA-2016-2577.html |