Bug 1131897
Summary: | virDomainSetMemoryFlags doesn't process flag VIR_DOMAIN_MEM_MAXIMUM for LXC | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Jincheng Miao <jmiao> |
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | CC: | dyuan, eskultet, mzhan, rbalakri, shyu, ydu |
Target Milestone: | rc | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.2.8-1.el7 | Doc Type: | Enhancement |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-05 07:42:57 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
Jincheng Miao
2014-08-20 09:00:40 UTC
Fixed upstream: commit bd3b76e35502928a490465bbc1251546c01f00c3 Author: Chen Hanxiao <chenhanxiao.com> Date: Thu Jul 31 11:41:10 2014 +0800 LXC: resolve issues in lxcDomainSetMaxMemory This patch changes the setmaxmem function to support the '--live', '--config', and '--current' flags by revectoring the code through the setmem function using the VIR_DOMAIN_MEM_MAXIMUM flag. The setmem code is refactored to handle both cases depending on the flag. The changed maxmem code for the MEM_MAXIMUM path will not allow modification to the memory values of an active guest unless the --config switch is used. Signed-off-by: Chen Hanxiao <chenhanxiao.com> v1.2.7-55-gbd3b76e Try to verify this bug with libvirt-1.2.8-7.el7.x86_64 Steps: 1. define a lxc and start it # virsh -c lxc:/// list Id Name State ---------------------------------------------------- 2218 helloworld running 2. try setmaxmem with "--config" "--live" "--current" 2.1 lxc is running # virsh -c lxc:/// setmaxmem helloworld 512M --live error: Unable to change MaxMemorySize error: Requested operation is not valid: Cannot resize the max memory on an active domain # virsh -c lxc:/// setmaxmem helloworld 512M --current error: Unable to change MaxMemorySize error: Requested operation is not valid: Cannot resize the max memory on an active domain # virsh -c lxc:/// setmaxmem helloworld 512M --config 2.2 lxc is shut off # virsh -c lxc:/// setmaxmem helloworld 512M --live error: Unable to change MaxMemorySize error: Requested operation is not valid: domain is not running # virsh -c lxc:/// setmaxmem helloworld 512M --current # virsh -c lxc:/// setmaxmem helloworld 512M --config setmaxmem with "--live/--current" to a active lxc or qemu guest is not supported right now(even the upstream). So the result is expected and I would change this bug to verified status. 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-2015-0323.html |