Bug 1271107
Summary: | The vaule of Used memory in 'virsh dominfo' is 0 when the guest is shut off | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | lijuan men <lmen> |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.2 | CC: | dyuan, lhuang, mzhan, pkrempa, rbalakri, xuzhang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.3.1-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-03 18:26:10 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
lijuan men
2015-10-13 07:55:16 UTC
Already fixed upstream: commit 60acb38abbee1636a9cddf8d296f700d115c8f77 Author: Jim Fehlig <jfehlig> Date: Mon Aug 10 12:49:55 2015 -0600 Revert "LXC: show used memory as 0 when domain is not active" This reverts commit 1ce7c1d20cfd5afb26d2dbc88201085d52415d0e, which introduced a significant semantic change to the virDomainGetInfo() API. Additionally, the change was only made to 2 of the 15 virt drivers. Conflicts: src/qemu/qemu_driver.c Signed-off-by: Jim Fehlig <jfehlig> Verify this bug with libvirt-1.3.4-1.el7.x86_64: 1. prepare a inactive guest: # virsh list --all Id Name State ---------------------------------------------------- - rhel7.0-rhel shut off 2. check guest current memory: # virsh dumpxml rhel7.0-rhel <domain type='kvm'> <name>rhel7.0-rhel</name> <uuid>67c7a123-5415-4136-af62-a2ee098ba6cd</uuid> <maxMemory slots='16' unit='KiB'>15243264</maxMemory> <memory unit='KiB'>1818624</memory> <currentMemory unit='KiB'>1798144</currentMemory> 3. check dominfo output: # virsh dominfo rhel7.0-rhel Id: - Name: rhel7.0-rhel UUID: 67c7a123-5415-4136-af62-a2ee098ba6cd OS Type: hvm State: shut off CPU(s): 12 Max memory: 1818624 KiB Used memory: 1798144 KiB Persistent: yes Autostart: disable Managed save: no Security model: selinux Security DOI: 0 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 |