Bug 907409
Summary: | qemu-ga: guest-suspend-ram/disk/hybrid fail when using pm-utils | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Sibiao Luo <sluo> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Milos Malik <mmalik> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | acathrow, chayang, juzhang, lcapitulino, mgrepl, michen, mmalik, mtruneck, qzhang, shu, sluo, virt-maint |
Target Milestone: | rc | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-13 13:27: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: | |||
Bug Blocks: | 923626 |
Description
Sibiao Luo
2013-02-04 10:14:59 UTC
Just to confirm it's really the same issue, can you please do the following: 1. Re-install pm-utils 2. Try again and see it failing 3. Change SELinux to permissive mode: # setenforce 0 4. Try again and report the results Btw, steps 2 and 3 should be done in the guest. (In reply to comment #1) > Just to confirm it's really the same issue, can you please do the following: > > 1. Re-install pm-utils > 2. Try again and see it failing > 3. Change SELinux to permissive mode: > # setenforce 0 > 4. Try again and report the results Luiz, I don't know why i cann't reproduce this issue today with the same steps like comment #0, they are ok and no any error output when do qemu-ga: guest-suspend-ram/disk/hybrid. I aslo tried it as your indicate as following, it also ok and no any error when do qemu-ga: guest-suspend-ram/disk/hybrid. Steps: 1.Re-install pm-utils in guest. 2.Try again and see it failing. 3.Change SELinux to permissive mode in guest: # setenforce 0 4.Try again and report the results. Results: after step 2, not any error output when do qemu-ga: guest-suspend-ram/disk/hybrid. # socat unix-connect:/tmp/qga.sock readline {"execute": "guest-sync", "arguments":{"id":1234}} {"return": 1234} { "execute": "guest-suspend-ram"} {"execute":"guest-ping"} {"return": {}} {"execute": "guest-sync", "arguments":{"id":1234}} {"return": 1234} { "execute": "guest-suspend-hybrid"} {"execute":"guest-ping"} {"return": {}} {"execute": "guest-sync", "arguments":{"id":1234}} {"return": 1234} { "execute": "guest-suspend-disk"} # socat unix-connect:/tmp/qga.sock readline {"execute":"guest-ping"} {"return": {}} after step 4, not any error output when do qemu-ga: guest-suspend-ram/disk/hybrid. {"execute": "guest-sync", "arguments":{"id":1234}} {"return": 1234} { "execute": "guest-suspend-ram"} {"execute":"guest-ping"} {"return": {}} {"execute": "guest-sync", "arguments":{"id":1234}} {"return": 1234} { "execute": "guest-suspend-hybrid"} {"execute":"guest-ping"} {"return": {}} {"execute": "guest-sync", "arguments":{"id":1234}} {"return": 1234} { "execute": "guest-suspend-disk"} # socat unix-connect:/tmp/qga.sock readline {"execute":"guest-ping"} {"return": {}} It's possible that it was something else. Unfortunately, the qemu-ga version we have in RHEL7.0 right now only prints GenericError so it's hard to know the error cause. Things will improve when we get proper error reporting in RHEL7.0. I'll close this as NOTABUG. If you hit this again, please re-open. (In reply to comment #4) > It's possible that it was something else. Unfortunately, the qemu-ga version > we have in RHEL7.0 right now only prints GenericError so it's hard to know > the error cause. Things will improve when we get proper error reporting in > RHEL7.0. > > I'll close this as NOTABUG. If you hit this again, please re-open. Hi Luiz, I hit it again with the pm-utils RPM in guest useing the comment #0 steps. host info: # uname -r && rpm -q qemu-kvm 3.7.0-0.34.el7.x86_64 qemu-kvm-1.3.0-3.el7.x86_64 guest info: kernel-3.7.0-0.34.el7.x86_64 # rpm -qa | grep pm-utils pm-utils-1.4.1-22.el7.x86_64 [root@ibm-x3650m3-05 ~]# nc -U /tmp/qga.sock {"execute": "guest-sync", "arguments":{"id":1234}} {"return": 1234} { "execute": "guest-suspend-hybrid"} {"error": {"class": "GenericError", "desc": "An undefined error has occurred"}} { "execute": "guest-suspend-ram"} {"error": {"class": "GenericError", "desc": "An undefined error has occurred"}} { "execute": "guest-suspend-disk"} [root@ibm-x3650m3-05 ~]# nc -U /tmp/qga.sock {"execute": "guest-sync", "arguments":{"id":1234}} {"error": {"class": "GenericError", "desc": "An undefined error has occurred"}} {"return": 1234} Also tried your steps in the comment #1. (In reply to comment #1) > 1. Re-install pm-utils > 2. Try again and see it failing after step 2, hit it again, [root@ibm-x3650m3-05 ~]# nc -U /tmp/qga.sock {"execute": "guest-sync", "arguments":{"id":1234}} {"return": 1234} { "execute": "guest-suspend-hybrid"} {"error": {"class": "GenericError", "desc": "An undefined error has occurred"}} { "execute": "guest-suspend-ram"} {"error": {"class": "GenericError", "desc": "An undefined error has occurred"}} { "execute": "guest-suspend-disk"} [root@ibm-x3650m3-05 ~]# [root@ibm-x3650m3-05 ~]# nc -U /tmp/qga.sock {"execute": "guest-sync", "arguments":{"id":1234}} {"error": {"class": "GenericError", "desc": "An undefined error has occurred"}} {"return": 1234} > 3. Change SELinux to permissive mode: > > # setenforce 0 [root@localhost ~]# /usr/sbin/getenforce Enforcing [root@localhost ~]# setenforce 0 [root@localhost ~]# /usr/sbin/getenforce Permissive > 4. Try again and report the results after step 4, did not meet this issue with SELinux in permissive mode, it can do guest-suspend-ram/disk/hybrid successfully. {"execute": "guest-sync", "arguments":{"id":1234}} {"return": 1234} { "execute": "guest-suspend-hybrid"} { "execute": "guest-suspend-ram"} { "execute": "guest-suspend-disk"} [root@ibm-x3650m3-05 ~]# nc -U /tmp/qga.sock {"execute": "guest-sync", "arguments":{"id":1234}} {"return": 1234} Base on above, re-open this bug, please correct me if any error. sluo Then it's most probably a SELinux issue, re-assigning. I need to backport all changes from RHEL6. Right, but note that this may be the same issue of bug 881585, which hasn't been fixed yet. What was fixed here? (In reply to Michal Trunecka from comment #10) > What was fixed here? I back ported all changes from RHEL6 https://bugzilla.redhat.com/show_bug.cgi?id=881585 Verified this issue on the latest selinux-policy version with the same steps as comment #0 and comment #5 which the qemu-ga: guest-suspend-ram/disk/hybrid command works fine with SELinux in permissive and Enforcing mode. host info: # uname -r && rpm -q qemu-kvm 3.10.0-123.el7.x86_64 qemu-kvm-1.5.3-60.el7.x86_64 guest info: 3.10.0-123.el7.x86_64 qemu-guest-agent-1.5.3-60.el7.x86_64 selinux-policy-3.12.1-153.el7.noarch selinux-policy-targeted-3.12.1-153.el7.noarch pm-utils-1.4.1-26.el7.x86_64 Base on above, this issue has been fixed correctly. Best Regards, sluo This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |