Bug 707147

Summary: virt-manager: The memory value of "change allocation" is always equal with "maximum allocation", and the value of "maximum allocation" is no less than the last value.
Product: Red Hat Enterprise Linux 5 Reporter: Huming Jiang <hjiang>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7CC: dallan, dyuan, llim, mzhan, rwu, yoyzhang, zpeng
Target Milestone: rc   
Target Release: 5.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-17 15:19:10 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:

Description Huming Jiang 2011-05-24 08:28:42 UTC
Description of problem:
Suppose the memory value of "change allocation" and "maximum allocation" is both "1024". Modify the "change allocation" is "512", and it will be "1024" after the guest is powered on; Modify the "Maximum allocation" from "1024" to "2048", the value of "change allocation" and "maximum allocation" will be both "2048"; Then modify "change allocation" to "1024", apply, and modify "maximum allocation" to "1024", the value of "change allocation" and "maximum allocation" will also be "2048". This problem is not existed in rh6.1.

Version-Release number of selected component (if applicable):
libvirt-0.8.2-20.el5
virt-manager-0.6.1-14.el5
kernel-2.6.18-262.el5

How reproducible:
always

Steps to Reproduce:
Suppose "CA" is the abbreviation of memory "change allocation"; and "MA" is the abbreviation of memory "maximum allocation". Suppose the original value of "CA" and "MA" of a gues is both "1024"
1.Modify "CA" and "MA" from "1024","1024" to "512" "1024"; 

2.Modify "CA" and "MA" from "1024","1024" to "512" "2048";

3.Modify "CA" and "MA" from "2048","2048" to "512" "512";

3.Modify "CA" and "MA" from "2048","2048" to "512" "5120";

  
Actual results:
1. The value of "CA" and "MA" is "1024", "1024"

2. The value of "CA" and "MA" is "2048", "2048"

3. The value of "CA" and "MA" is "2048", "2048"

4. The value of "CA" and "MA" is "5120", "5120"

Expected results:
1. The value of "CA" and "MA" is "512", "1024"

2. The value of "CA" and "MA" is "512", "2048"

3. The value of "CA" and "MA" is "512", "512"

4. The value of "CA" and "MA" is "512", "5120"

Additional info:

Comment 1 RHEL Program Management 2011-06-21 05:30:31 UTC
This request was evaluated by Red Hat Product Management for inclusion in Red Hat Enterprise Linux 5.7 and Red Hat does not plan to fix this issue the currently developed update.

Contact your manager or support representative in case you need to escalate this bug.

Comment 3 Cole Robinson 2011-07-12 23:30:04 UTC
*** Bug 712343 has been marked as a duplicate of this bug. ***

Comment 4 Cole Robinson 2011-10-14 21:38:42 UTC
This seems like a libvirt bug.

Starting with a shutoff qemu guest with 1024 MB for both memory and currentMemory, use virsh edit to change currentMemory to say 500000 KB. Change is accepted, verify that dumpxml shows correctly changed value. Start the guest, wait a couple seconds, shut it down. virsh dumpxml now shows currentMemory set to the previous 1024 MB value.

Comment 6 Eric Blake 2011-10-14 21:41:59 UTC
bug 737041 is a similar report against rhel 6