Bug 847939 - should not allow set a negative and zero value for mem balloon
should not allow set a negative and zero value for mem balloon
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kvm (Show other bugs)
5.9
Unspecified Unspecified
medium Severity low
: rc
: ---
Assigned To: Amit Shah
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-14 02:34 EDT by langfang
Modified: 2012-08-16 06:58 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-08-16 06:58:57 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description langfang 2012-08-14 02:34:40 EDT
Description of problem:

ballooning value reset to original value after setting a negative number,this bug only reflect rhel5 host ,about rhel6 host ,can see https://bugzilla.redhat.com/show_bug.cgi?id=694373--->have fixed for rhel6 host

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.boot guest with balloon device
 /usr/libexec/qemu-kvm -m 4G -smp 4 -cpu qemu64,+sse2 -drive file=/home/rhel5.9-x86_64.qcow2,format=qcow2,media=disk,if=virtio,boot=on,werror=stop -net nic,model=virtio,macaddr=04:16:37:51:37:27,vlan=0 -net tap,sndbuf=0,vlan=0,script=/etc/qemu-ifup,downscript=no -uuid 7e8fabbb-ce86-4b2c-8df7-841b4d3901a4 -vnc :18 -boot c -usbdevice tablet -no-hpet -rtc-td-hack -no-kvm-pit-reinjection -monitor stdio -balloon virtio -serial unix:/tmp/langfang,server,nowait

2.(qemu) info balloon
balloon: actual=4096
(qemu) balloon 2456
(qemu) info balloon
balloon: actual=2456
(qemu) balloon -23424
(qemu) info balloon
balloon: actual=4096
(qemu) balloon 0
(qemu) info balloon
balloon: actual=4096
(qemu) balloon 2100
(qemu) info balloon
balloon: actual=2100
(qemu) balloon 0
(qemu) info balloon
balloon: actual=2100
(qemu) balloon -2134
(qemu) info balloon
balloon: actual=4096
(qemu) info balloon
balloon: actual=4096


  
Actual results:
ballooning value reset to original value after setting a negative number

Expected results:
balloon value should keep the previous value

when input negative or zero value ,should have a tip like on rhel6 host:
(qemu) balloon 0
Parameter 'target' expects a size
(qemu) balloon -1
Parameter 'target' expects a size
(qemu) balloon -10000
Parameter 'target' expects a size


Additional info:
Comment 1 RHEL Product and Program Management 2012-08-14 02:37:29 EDT
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.
Comment 2 langfang 2012-08-14 02:59:55 EDT
addinfo:
Version-Release number of selected component (if applicable):

# uname -r
2.6.18-336.el5
# rpm -q kvm
kvm-83-259.el5
guest:
2.6.18-333.el5
Comment 3 Ronen Hod 2012-08-16 06:58:57 EDT
Closing as WONTFIX.
This bug does not cause any damage, and we prefer not to fix them in RHEL5.

Note You need to log in before you can comment on or make changes to this bug.