Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1049845

Summary: Fail to do S4 after change running guest's memory from 4G to 2G
Product: Red Hat Enterprise Linux 6 Reporter: zhoujunqin <juzhou>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.6CC: acathrow, dyuan, jdenemar, jmiao, mzhan, zhwang
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1049844 Environment:
Last Closed: 2014-01-08 14:16:50 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:
Bug Depends On: 1049844    
Bug Blocks:    

Description zhoujunqin 2014-01-08 10:56:37 UTC
+++ This bug was initially created as a clone of Bug #1049844 +++

Description of problem:
Fail to do S4 after change running guest's memory from 4G to 2G

Version-Release number of selected component (if applicable):
kernel-3.10.0-65.el7.x86_64
libvirt-1.1.1-17.el7.x86_64
qemu-kvm-rhev-1.5.3-31.el7.x86_64
qemu-guest-agent-1.5.3-31.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Prepare a rhel7 guest with qemu-guest-agent service installing and with 4G memory
#virsh start qcow22 (with 4G mem)
# virsh list
 Id    Name                           State
----------------------------------------------------
 35    qcow22                         running
# virsh dominfo qcow22
 Id:             35
 Name:           qcow22
 UUID:           f0295000-dc19-481e-8379-8592c5e437f8
 OS Type:        hvm
 State:          running
 CPU(s):         1
 CPU time:       11.7s
 Max memory:     4194304 KiB
 Used memory:    4194304 KiB
 Persistent:     yes
 Autostart:      disable
 Managed save:   no
 Security model: selinux
 Security DOI:   0
 Security label: system_u:system_r:svirt_t:s0:c53,c111 (enforcing)
2.set the guest's memory to 2G
# virsh setmem qcow22 2G

# virsh dominfo qcow22
 Id:             35
 Name:           qcow22
 UUID:           f0295000-dc19-481e-8379-8592c5e437f8
 OS Type:        hvm
 State:          running
 CPU(s):         1
 CPU time:       12.5s
 Max memory:     4194304 KiB
 Used memory:    2097152 KiB
 Persistent:     yes
 Autostart:      disable
 Managed save:   no
 Security model: selinux
 Security DOI:   0
 Security label: system_u:system_r:svirt_t:s0:c53,c111 (enforcing)

3. DO S3/S4 on the host, the S3 can be excuted successfully, however will fail to do S4.
# virsh dompmsuspend qcow22 --target mem
Domain qcow22 successfully suspended
# virsh list
 Id    Name                           State
----------------------------------------------------
 2     qcow22                          pmsuspended

# virsh dompmwakeup qcow222
Domain qcow22 successfully woken up

# virsh dompmsuspend qcow22 --target disk
error: Domain qcow22 could not be suspended
error: internal error: unable to execute QEMU agent command 'guest-suspend-disk': child process has failed to suspend

4.I can also hit this issue on rhel6.5

Actual Results:
Failed to do S4 after change running guest's memory from 4G to 2G
Expected results:
Succeed in doing S4 after change running guest's memory from 4G to 2G

Additional info:

Comment 2 Jiri Denemark 2014-01-08 14:16:50 UTC
As this seems to be a guest issue (which is rhel7), I'm closing this clone...

*** This bug has been marked as a duplicate of bug 1049844 ***