Bug 544664
| Summary: | fence_virsh reports vm status incorrectly | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Etzion Bar-Noy <etzion.bar-noy> | ||||
| Component: | cman | Assignee: | Christine Caulfield <ccaulfie> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 5.4 | CC: | cluster-maint, djansa, edamato, jkortus | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | cman-2.0.115-28.el5.src.rpm | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2010-03-30 08:41:03 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: | |||||||
| Attachments: |
|
||||||
Created attachment 379646 [details]
Possible fix
Resolved in git commit # d83cb1da1c62bf8837a93a3f8dac35df8ece41da http://git.fedorahosted.org/git/?p=cluster.git;a=commit;h=d83cb1da1c62bf8837a93a3f8dac35df8ece41da Reassigned to package owner for build 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/RHBA-2010-0266.html |
Description of problem: Running 'fence_virsh' on Xen community machines results in status 'off' when their status is 'idle' Version-Release number of selected component (if applicable): Virsh 0.3.3 on RHEL 5.2 with xen-3.0.3-51 FENCE_RELEASE_NAME="2.0.115"; BUILD_DATE="(built Mon Nov 23 04:10:31 EST 2009)"; How reproducible: Run 'fence_virsh' manually with a name of VM and check the results Steps to Reproduce: Actual results: fence_virsh -vv -o status -a kruvi -l root -S "cat /tmp/passwd" -x -n rhcs5-1 root.org.il's password: [EXPECT]# virsh list --all Id Name State ---------------------------------- 0 Domain-0 running 1 beeri-mailgw idle 2 cacti-new idle 3 ivy idle 4 rafael idle 5 rock idle 12 rhcs5-1 idle - rhcs5-2 shut off [EXPECT]# Status: OFF Expected results: fence_virsh -vv -o status -a kruvi -l root -S "cat /tmp/passwd" -x -n rhcs5-1 root.org.il's password: [EXPECT]# virsh list --all Id Name State ---------------------------------- 0 Domain-0 running 1 beeri-mailgw idle 2 cacti-new idle 3 ivy idle 4 rafael idle 5 rock idle 12 rhcs5-1 running - rhcs5-2 shut off [EXPECT]# Status: ON Additional info: Adding "idle" to the list of options it seeks will result in a correct answer. These are the diff results: diff /sbin/fence_virsh /tmp/fence_virsh 40c40 < result[domain.group(2)]=("",(domain.group(3).lower() in ["running","blocked"] and "on" or "off")) --- > result[domain.group(2)]=("",(domain.group(3).lower() in ["running","blocked","idle"] and "on" or "off"))