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.
Description of problem:
virsh domcontrol will show different result to a inactive guest
Version-Release number of selected component (if applicable):
libvirt-1.2.17-13.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1. prepare a inactive guest:
# virsh dominfo RHEL71-lhuang-novhost
Id: -
Name: RHEL71-lhuang-novhost
UUID: c8c96ca2-adb3-4166-ae97-f97f8b497e13
OS Type: hvm
State: shut off
CPU(s): 4
Max memory: 2097152 KiB
Used memory: 0 KiB
Persistent: yes
Autostart: disable
Managed save: no
Security model: selinux
Security DOI: 0
2. use domcontrol to check this guest:
# virsh domcontrol RHEL71-lhuang-novhost
ok
3. start guest but get failure:
# virsh start RHEL71-lhuang-novhost
error: Failed to start domain RHEL71-lhuang-novhost
error: internal error: early end of file from monitor: possible problem:
2015-11-13T08:06:46.615242Z qemu-kvm: -object memory-backend-file,id=ram-node2,prealloc=yes,mem-path=/dev/hugepages2M/libvirt/qemu,share=yes,size=0,host-nodes=0-1,policy=bind: Property 'memory-backend-file.size' doesn't take value '0'
4. try domcontrol again:
# virsh domcontrol RHEL71-lhuang-novhost
error: monitor failure
# virsh domcontrol RHEL71-lhuang-novhost
error: monitor failure
5. restart libvirtd and recheck:
# service libvirtd restart
Redirecting to /bin/systemctl restart libvirtd.service
# virsh domcontrol RHEL71-lhuang-novhost
ok
Actual results:
virsh domcontrol will show different result to a inactive guest
Expected results:
although guest fail to start but it doesn't mean the current (inactive) guest always have the monitor failure (also i don't think show monitor failure to a inactive geust is ok), both of them should show ok
Additional info:
Fixed upstream by v1.3.2-59-ge53f2dc:
commit e53f2dc875f5c4865a37a2bd936858f45b23ee8e
Author: Jiri Denemark <jdenemar>
AuthorDate: Thu Mar 3 13:26:51 2016 +0100
Commit: Jiri Denemark <jdenemar>
CommitDate: Thu Mar 3 13:26:51 2016 +0100
qemu: Check if domain is active in GetControlInfo
Reporting status of a control connection makes no sense for an inactive
domain.
https://bugzilla.redhat.com/show_bug.cgi?id=1281706
Signed-off-by: Jiri Denemark <jdenemar>
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.
https://rhn.redhat.com/errata/RHSA-2016-2577.html