Bug 593120
Summary: | Discrepancy between xm and virsh output when listing active Xen domains | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Nandini Chandra <nachandr> |
Component: | libvirt | Assignee: | Jiri Denemark <jdenemar> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | urgent | ||
Version: | 5.4 | CC: | berrange, dallan, dyuan, herrold, jdenemar, jwest, llim, samuel.kielek, smayhew, tao, virt-maint, weizhan, xen-maint, xhu, yoyzhang |
Target Milestone: | rc | Keywords: | ZStream |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.8.2-1.el5 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-01-13 23:12:37 UTC | Type: | --- |
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: | 618200 |
Description
Nandini Chandra
2010-05-17 21:03:37 UTC
I am not convinced that this quoted changeset: http://libvirt.org/git/?p=libvirt.git;a=commit;h=7c34bb2681f48e2a4e76de7f54c58b630a861777 can actually fix the issue described in the initial report, on its own. That changeset would generally make libvirt report *fewer* guests, making it even less likely to match 'xm' output. I believe it probably needs to be combined with commit 2659b3f5aab0e64c150a8fb4e656aa7f4f4a91ed Author: Jonas Eriksson <jonas.j.eriksson> Date: Fri Oct 9 10:23:23 2009 +0100 Fix logic in xenUnifiedNumOfDomains to match xenUnifiedListDomains The xenUnifiedNumOfDomains and xenUnifiedListDomains methods work together as a pair, so it is critical they both apply the same logic. With the current mis-matched logic it is possible to sometimes get into a state when you miss certain active guests. * src/xen/xen_driver.c: Change xenUnifiedNumOfDomains ordering to match xenUnifiedListDomains. Good, I was able to reproduce this issue. Luckily enough, once there is a difference between virsh list and xm list, it doesn't disappear and once can just install different versions of libvirt (no need to even restart libvirtd) to test if they fix the issue or not. If yes, the discrepancy disappears and after installing an older libvirt without the fix, the issue can be observed again. The funny thing is that both change sets (the one mentioned in bug report and the one mentioned by Dan) fix the issue... Fixed in libvirt-0.8.2-1.el5 *** Bug 514902 has been marked as a duplicate of this bug. *** For reproduce steps, pls refer to https://bugzilla.redhat.com/show_bug.cgi?id=618200#c9 Verified the bug PASSED with libvirt-0.8.2-8.el5 on Server-x86_64-xen, Client-i386-xen, Server-ia64-xen. 1. Turn on dump switch in /etc/xen/xend-config.sxp, and restart xend service. (enable-dump yes) 2. on guest of pv, removing the last character of the LV name in the 'root' arg of the domU's kernel command line 3. on xml, <on_crash>restart</on_crash> 4. # virsh list; xm list Id Name State ---------------------------------- 0 Domain-0 running 41 crash2 idle 42 crash1 idle Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 4425 4 r----- 2885.2 crash1 42 1024 1 -b---- 0.6 crash2 41 1024 1 -b---- 0.6 Verified on RHEL5u6-Client-i386-xen and it passed: kernel-2.6.18-228.el5xen libvirt-0.8.2-9.el5 xen-3.0.3-117.el5 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2011-0060.html |