Bug 480178
Summary: | fence_xvmd Fails to Reboot VM | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Gavin Edwards <gaedward> | ||||||||
Component: | cman | Assignee: | Lon Hohberger <lhh> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | ||||||||
Severity: | urgent | Docs Contact: | |||||||||
Priority: | urgent | ||||||||||
Version: | 5.2 | CC: | cfeist, cluster-maint, djansa, edamato, gaedward, kmoriwak, rlerch | ||||||||
Target Milestone: | rc | ||||||||||
Target Release: | 5.3 | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | cman-2.0.100-1.el5 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2009-09-02 11:06:33 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: |
|
Description
Gavin Edwards
2009-01-15 16:09:10 UTC
So, it looks like this was introduced with the rebase from libvirt 0.2.x to 0.3.x. The solution is to try both ways: * First, try virDomainCreateLinux() assuming the unmodified domain description will work, * after that, remove the <os/> block as was previously required and attempt to do it that way. This is important, but as I have found, not deemed 'critical' since the most important function of fencing is 'off'. 'On' (i.e. the other half of reboot) is not a critical action from a cluster perspective. Created attachment 329116 [details]
Fix
Patch which implements a fix.
Created attachment 329117 [details]
Logs
Note that the fix works (the domain is still operational and was restarted). Furthermore, virDomainCreateLinux() works with the unaltered XML description. Unfortunately, it appears virDomainCreateLinux() doesn't return a successful return code.
Created attachment 329119 [details]
Fixed patch.
Corrected fix. Logic error.
I have been unable to reproduce on libvirt versions going back to 0.1.8 from the RHEL5 channel. Cause: Attempting to reboot a VM using fence_xvm Consequence: The VM would remain shut off in stead of restarting. Fix: An issue was addressed preventing correct VM creation. Result: The VM is now correctly restarted when an administrator wishes for the domain to reboot. 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/RHSA-2009-1341.html |