RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 833674 - Deactivate memory balloon with type of none get wrong error info
Summary: Deactivate memory balloon with type of none get wrong error info
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Osier Yang
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-20 06:38 UTC by EricLee
Modified: 2013-02-21 07:17 UTC (History)
9 users (show)

Fixed In Version: libvirt-0.9.13-3.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 07:17:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0276 0 normal SHIPPED_LIVE Moderate: libvirt security, bug fix, and enhancement update 2013-02-20 21:18:26 UTC

Description EricLee 2012-06-20 06:38:50 UTC
Description
Deactivate memory balloon with type of none get wrong error info

Version
qemu-kvm-rhev-0.12.1.2-2.295.el6.x86_64
kernel-2.6.32-279.el6.x86_64
libvirt-0.9.10-21.el6_3.1.x86_64

How reproducible:
100%

Steps to Reproduce
Setup:
1. Modify the guest xml to deactivate memory balloon, Change memballoon model value as none.

    ...
    <memballoon model='none'>
    </memballoon>
    ...

2. # virsh start test
Domain test started

3. # virsh setmem test 524288
error: Requested operation is not valid: cannot set memory of an active domain
(this error info let we think we can set memory of an inactive domain)

But
4. # virsh destroy test
Domain test destroyed

5. # virsh setmem test 524288
error: Requested operation is not valid: domain is not running

Actual results:
As steps.

Expected results:
Give right error info in cmd line as like:
error: Requested operation is not valid: cannot set memory for memballoon is not active.

Additional info:
when guest running with  <memballoon model='virtio'>, setmem is working well.

# virsh setmem test 524288

# virsh dominfo mig
Id:             25
Name:           test
UUID:           74b67915-0115-fc45-25c2-d6762ed49cdd
OS Type:        hvm
State:          running
CPU(s):         4
CPU time:       22.4s
Max memory:     1048576 kB
Used memory:    524288 kB
Persistent:     yes
Autostart:      disable
Managed save:   no
Security model: selinux
Security DOI:   0
Security label: system_u:system_r:svirt_t:s0:c720,c1022 (enforcing)

Comment 2 Osier Yang 2012-06-25 14:03:02 UTC
968b6c60 in upstream. move to POST.

Comment 4 zhpeng 2012-07-24 05:24:19 UTC
Test with libvirt-0.9.13-3.el6.x86_64:

# virsh dumpxml ccc
    ...
    <memballoon model='none'>
    </memballoon>
    ...

# virsh start ccc
Domain ccc started

# virsh setmem ccc 524288
error: Requested operation is not valid: Unable to change memory of active domain without the balloon device and guest OS balloon driver

# virsh destroy ccc
Domain ccc destroyed

# virsh setmem ccc 524288
error: Requested operation is not valid: domain is not running


These results are expect, so this is verified.

Comment 5 errata-xmlrpc 2013-02-21 07:17:57 UTC
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.

http://rhn.redhat.com/errata/RHSA-2013-0276.html


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